
Flipkart Scraper
- natanielsantos/flipkart-scraper
- Modified
- Users 32
- Runs 381
- Created by
nathanist
Scrape product data from Flipkart with this unofficial API. Extract price, images, description, sizes, category, reviews, rating and more. Download your data as HTML table, JSON, CSV, Excel, XML, and RSS feed.
What does Flipkart Scraper do?
Flipkart Scraper is a web scraper that collects product information from the Flipkart website.
This actor supports the following features:
- Extract product details - it allows users to scrape information such as product name, prices, sizes, images, seller, rating and more.(more info below)
- Scrape product reviews
- Scrape products by categories and subcategories
Just want to scrape reviews?
Input Parameters
Field | Type | Description |
---|---|---|
start_urls | array | (optional) List of Flipkart URLs. You can provide a product detail URL or any URL that contains a list of products, such as category URL, top rated URL, etc. |
max_items_count | integer | (optional) Maximum number of items you want to scrape per run. |
max_items_per_url | integer | (optional) Instead of specifying Max items, you can specify how many items you want to scrape per URL. It will automatically paginate through to each listing URL that you provide in Start URLs. Leave this field blank or 0 if you want to use Max items instead. |
max_reviews_count | integer | (optional) Maximum number of reviews you want to get. You can scrape up to 3000 per run. Default is 0, which means you don't want to scrape reviews. |
proxySettings | object | (optional) Proxy configuration |
Check the Input Tab for more details.
Tips
- When you want to have a scrape over a specific listing URL, just copy and paste the link as one of the
start_urls
- To avoid getting blocked, it is recommended to use Proxy servers, either your own proxy servers or Apify Proxy.
- You can watch Apify Tutorials on how to use actors.
Input example
{ "start_urls": [ "https://www.flipkart.com/mens-tshirts/pr?sid=clo%2Cash%2Cank%2Cedy&otracker[]=categorytree&otracker[]=nmenu_sub_Men_0_T-Shirts" ], "max_items_count": 0, "max_reviews_count": 0, "proxySettings":{"useApifyProxy": true} }
Output Example
The structure of each item in Flipkart products looks like this:
{ "retail_price": { "amount": 2499.0, "amount_with_symbol": "₹2,499" }, "sale_price": { "amount": 219.0, "amount_with_symbol": "₹219" }, "specs": [ { "name": "Type", "value": "Round Neck" }, { "name": "Sleeve", "value": "Full Sleeve" }, { "name": "Fit", "value": "Regular" }, { "name": "Fabric", "value": "Cotton Blend" }, { "name": "Sales Package", "value": "Pack of 1 T-Shirt" }, { "name": "Pack of", "value": "1" }, { "name": "Style Code", "value": "T653-CGBLWH" }, { "name": "Neck Type", "value": "Round Neck" }, { "name": "Ideal For", "value": "Men" }, { "name": "Size", "value": "XXS" }, { "name": "Pattern", "value": "Color Block" }, { "name": "Suitable For", "value": "Western Wear" }, { "name": "Reversible", "value": "No" }, { "name": "Fabric Care", "value": "Gentle Machine Wash" } ], "available_offers": [ { "name": "Special Price", "description": "Get at flat ₹219" }, { "name": "Partner Offer", "description": "Sign up for Flipkart Pay Later and get Flipkart Gift Card worth up to ₹500*" }, { "name": "Partner Offer", "description": "Purchase now & get 1 surprise cashback coupon in Future" }, { "name": "Combo Offer", "description": "Buy 2 items save 5%; Buy 3 or more save 10%" } ], "seller": { "name": "MenRocks", "rating": 4.8 }, "rating_count": 6782, "review_count": 326, "product_id": "TSHGHYKFHAD7DGFM", "url": "https://www.flipkart.com/eyebogler-color-block-men-round-neck-grey-t-shirt/p/itm6886de85edca9", "name": "Men Color Block Round Neck Grey T-Shirt", "brand": "EyeBogler", "discount_percentage": 91, "rating": 3.8, "images": [ "https://rukminim1.flixcart.com/image/832/832/xif0q/t-shirt/y/t/k/xxs-t653-cgblwh-eyebogler-original-imaghyjv7kppbqxb.jpeg?q=100", "https://rukminim1.flixcart.com/image/832/832/xif0q/t-shirt/y/t/k/xxs-t653-cgblwh-eyebogler-original-imaghyjv7kppbqxb.jpeg?q=100", "https://rukminim1.flixcart.com/image/832/832/xif0q/t-shirt/t/k/o/xxs-t653-cgblwh-eyebogler-original-imaghyjvdx4hy98d.jpeg?q=100" ], "colors": [ "BLACK RED WHITE", "Black-peach- white", "Grey, Peach", "Grey, Yellow", "Light mustard-black-white", "charcoal grey- black-white" ], "sizes": [ "XXS", "XS", "S", "M", "L", "XL", "XXL", "3XL", "4XL", "5XL" ], "breadcrumbs": [ "Home", "Clothing and Accessories", "Topwear", "T-shirts", "Men's T-shirts", "EyeBogler Men's T-shirts", "EyeBogler Color Block Men Round Neck Grey T-Shirt" ], "is_available": true, "has_discount": true, "reviews": [ { "author": "Arunjit Chakraborty", "date": "Jan, 2023", "rating": 4, "city": "Howrah", "state": "West Bengal", "title": "Wonderful", "text": "I am using the phone from 8 days.... I must say the battery backup is good... Look of the phone is awesome.. gaming is smooth (BGMI).. \\nBack camera is good but front camera is ok ok types.... (Disable auto edit in front camera, otherwise you will look like alien in photos)..\\nSound quality could be improved (if you use headphone it will not bother you)...\\nOverall good purchase ☺️", "url": "https://www.flipkart.com/review-image-fullscreen?pid=MOBGK8VHX6FDJPCE&imageId=blobio-imr_015befb76e2c42c0b26db6d6d5682731.jpg&reviewReferenceId=MOBGK8VHX6FDJPCE:239&language=en", "certified_buyer": true, "upvotes": 773, "downvotes": 184, "id": "f1cb256d-bead-4643-825a-369557063d30", "product_id": "MOBGK8VHX6FDJPCE", "product_url": "https://www.flipkart.com/realme-10-pro-5g-dark-matter-128-gb/p/itm1e672d12a252e", "images": [ "https://rukminim1.flixcart.com/blobio/1160/1160/imr/blobio-imr_015befb76e2c42c0b26db6d6d5682731.jpg?q=100" ] }, { "author": "Neeraj Kumar Jha", "date": "Oct, 2022", "rating": 4, "city": "Darbhanga", "state": "Bihar", "title": "Value-for-money", "text": "In this price range phone is best but ram management is not good 😒 otherwise it is just like 15k phone 😂", "url": "https://www.flipkart.com/reviews/MOBGC2E72ZFW9HBY:705?reviewId=21437475-205e-4411-a163-22ef5e86dd31", "certified_buyer": true, "upvotes": 5, "downvotes": 0, "id": "21437475-205e-4411-a163-22ef5e86dd31", "product_id": "MOBGC2E7QBD3ARH2", "product_url": "https://www.flipkart.com/realme-narzo-50-speed-blue-128-gb/p/itm9d47ef5d10145", "images": [] }, ] }
Integrations and Flipkart Scraper
Last but not least, Flipkart Scraper can be connected with almost any cloud service or web app thanks to integrations on the Apify platform. You can integrate with Make, Zapier, Slack, Airbyte, GitHub, Google Sheets, Google Drive, and more. Or you can use webhooks to carry out an action whenever an event occurs, e.g. get a notification whenever Flipkart Scraper successfully finishes a run.
Using Flipkart Scraper with the Apify API
The Apify API gives you programmatic access to the Apify platform. The API is organized around RESTful HTTP endpoints that enable you to manage, schedule, and run Apify actors. The API also lets you access any datasets, monitor actor performance, fetch results, create and update versions, and more.
To access the API using Node.js, use the apify-client NPM package. To access the API using Python, use the apify-client PyPI package.
Check out the Apify API reference docs for full details.
Giving feedback
If you have any feature requests or bug reports, please create an issue on the Issues page.