Flipkart Search API
Scrape Flipkart search result pages by passing any Flipkart search URL. Returns product titles, URLs, prices, discounts, ratings, and product IDs. Each successful request costs 5 API credits.
Endpoint:
https://api.scrapingdog.com/flipkart/searchAPI Parameters
🔑
Scrapingdog Parameters
api_keyRequiredYour personal API key. Available on your dashboard.
Type: String
🔍
Search
urlRequiredURL of the Flipkart search page to scrape (e.g.,https://www.flipkart.com/search?q=laptops).
Type: String
⚙
️ Advanced
htmlOptionalSet totrueto return the full HTML of the Flipkart page instead of parsed JSON. Default:false.
Type: Boolean
API Examples
Code to Integrate
curl "https://api.scrapingdog.com/flipkart/search?api_key=APIKEY&url=https://www.flipkart.com/search?q=laptops"
import requests params = { "api_key": "APIKEY", "url": "https://www.flipkart.com/search?q=laptops" } response = requests.get("https://api.scrapingdog.com/flipkart/search", params=params) print(response.json())
const params = new URLSearchParams({ api_key: "APIKEY", url: "https://www.flipkart.com/search?q=laptops" }); const response = await fetch(`https://api.scrapingdog.com/flipkart/search?${params}`); const data = await response.json(); console.log(data);
<?php $url = 'https://api.scrapingdog.com/flipkart/search?' . http_build_query([ 'api_key' => 'APIKEY', 'url' => 'https://www.flipkart.com/search?q=laptops', ]); echo file_get_contents($url);
API Response
{
"search_results": [
{
"title": "Samsung Galaxy Book4 Metal Intel Core i3 13th Gen 1315U - (8 GB/512 GB SSD/Windows 11 Home) NP750XGJ-LG9IN Thin and Light Laptop",
"url": "https://www.flipkart.com/samsung-galaxy-book4-metal-intel-core-i3-13th-gen-1315u-8-gb-512-gb-ssd-windows-11-home-np750xgj-lg9in-thin-light-laptop/p/itmc29d559898e6f",
"price": "₹34,990",
"previous_price": "₹57,499",
"discount": "39% off",
"rating": "4.4",
"ratings_count": "8,247",
"reviews_count": "813",
"features": [
"Intel Core i3 Processor (13th Gen)",
"8 GB LPDDR4X RAM",
"Windows 11 Operating System",
"512 GB SSD",
"39.62 cm (15.6 Inch) Display",
"1 Year Onsite Warranty"
],
"image": "https://rukminim2.flixcart.com/image/312/312/xif0q/computer/e/3/u/-original-imahgfdfhfyjchah.jpeg?q=70",
"product_id": "COMH4Y6KKRC9YSWE"
},
{
"title": "HP 15s Intel Core i3 12th Gen 1215U - (8 GB/512 GB SSD/Windows 11 Home) 15s-fq5111TU Thin and Light Laptop",
"url": "https://www.flipkart.com/hp-15s-intel-core-i3-12th-gen-1215u-8-gb-512-gb-ssd-windows-11-home-15s-fq5111tu/p/itm67b8a3b2c4d5e",
"price": "₹31,990",
"previous_price": "₹49,999",
"discount": "36% off",
"rating": "4.2",
"ratings_count": "5,631",
"reviews_count": "512",
"features": [
"Intel Core i3 Processor (12th Gen)",
"8 GB DDR4 RAM",
"Windows 11 Home",
"512 GB SSD",
"39.62 cm (15.6 Inch) Display"
],
"image": "https://rukminim2.flixcart.com/image/312/312/xif0q/computer/h/p/s/-original-imah3fdgjhkyqheh.jpeg?q=70",
"product_id": "COMH3Y5KKRC8YSWE"
}
]
}