GithubHelp home page GithubHelp logo

rahulyhg / flipkart-api-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xaneem/flipkart-api-php

0.0 1.0 0.0 13 KB

A simple PHP wrapper for the official Flipkart API

License: MIT License

PHP 100.00%

flipkart-api-php's Introduction

PHP Wrapper for Flipkart API

A simple PHP wrapper for the official Flipkart API. Helps you integrate the API for any custom use.

Flipkart has a Product Feeds API (still in beta). There isn't any official wrappers for PHP (yet?) - so I decided to go ahead and build one.

To see this in action, check out the live demo.

The API seems complicated to use, but I've managed to build a simple demo where you can select a category, and products in the category that are in stock are displayed in a table.

New: Deal of the Day (DOTD) offers and Top Offers are also included in demo.php (Not available in the live demo yet)

For the code to work, you'll need to generate an access token through your affiliate account.

Note that it is recommended to save the useful data retrieved from the API to a database first, and then update this database at certain intervals. This way, you won't exceed the API limits, and your site will load faster.

Feel free to use it, fork it, and send pull requests for any improvements!

Alternative

If you're trying to scrape the site instead of using the API, there's something else that I'm working on, which you should take a look at: Flipbot

It is a simple tool that is built in JavaScript. It opens pages in a headless browser and reads the data. Note that it is still in development and might not fit your purpose.

License

MIT License

flipkart-api-php's People

Contributors

xaneem avatar himanshugarg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.