Swiggy Instamart Search Scraper API
The Swiggy Instamart Search Scraper API returns product search results for one Instamart location as structured JSON, with prices, offers, ratings, stock, taxonomy, and the filter and sort rails Instamart offers for the query. Every request is tied to a location, and sponsored placements are flagged with is_sponsored rather than removed.
Endpoint:
https://api.scrapingdog.com/swiggy/instamart/searchAPI Parameters
π
Scrapingdog Parameters
api_keyRequiredYour personal API key. Available on your dashboard.
Type: String
π
Search
queryRequiredThe search term to look up on Swiggy Instamart (e.g.,rice).
Type: String
π
Location
pincodeOptionalIndian pincode to resolve a location from. Eitherpincode, or bothlatandlng, is required.
Without a location the page still loads but every price comes back as0, so treat a location as required.
Type: StringlatOptionalLatitude to search from. Use together withlngin place ofpincode.
Type: NumberlngOptionalLongitude to search from. Note Instamart takeslngβ Blinkit takeslon.
Type: Number
API Examples

Code to Integrate
curl "https://api.scrapingdog.com/swiggy/instamart/search?api_key=APIKEY&query=rice&pincode=302018"
import requests url = "https://api.scrapingdog.com/swiggy/instamart/search" params = { "api_key": "APIKEY", "query": "rice", "pincode": "302018" } response = requests.get(url, params=params) if response.status_code == 200: data = response.json() print(data["products"]) else: print(f"Request failed with status code: {response.status_code}")
const axios = require('axios'); axios.get('https://api.scrapingdog.com/swiggy/instamart/search', { params: { api_key: 'APIKEY', query: 'rice', pincode: '302018' } }).then(response => console.log(response.data.products)) .catch(error => console.error(error.message));
<?php $url = 'https://api.scrapingdog.com/swiggy/instamart/search?' . http_build_query([ 'api_key' => 'APIKEY', 'query' => 'rice', 'pincode' => '302018', ]); echo file_get_contents($url);
require 'net/http' require 'uri' url = URI.parse("https://api.scrapingdog.com/swiggy/instamart/search") url.query = URI.encode_www_form('api_key' => 'APIKEY', 'query' => 'rice', 'pincode' => '302018') http = Net::HTTP.new(url.host, url.port) http.use_ssl = true puts http.request(Net::HTTP::Get.new(url)).body
import java.io.*; import java.net.*; public class Main { public static void main(String[] args) throws Exception { String apiUrl = "https://api.scrapingdog.com/swiggy/instamart/search?api_key=APIKEY&query=rice&pincode=302018"; URL url = new URL(apiUrl); HttpURLConnection conn = (HttpURLConnection) url.openConnection(); conn.setRequestMethod("GET"); BufferedReader reader = new BufferedReader(new InputStreamReader(conn.getInputStream())); String line; while ((line = reader.readLine()) != null) System.out.println(line); conn.disconnect(); } }
API Response
{
"search_parameters": { "query": "rice", "pincode": "302018", "lat": 26.8573411, "lng": 75.7865653 },
"total_time_taken": 8.75,
"location": { "lat": 26.8573411, "lng": 75.7865653, "address": "Jaipur, Rajasthan 302018, India" },
"store_resolved_from": "pincode",
"total_results": 47,
"total_available": 239,
"next_offset": "1",
"sponsored_count": 19,
"filters": [
{ "name": "Brand", "id": "Brand", "multi_select": true, "options": ["Amul", "Mother Dairy"] }
],
"sort_options": ["Relevance", "Price (Low To High)", "Discount (High To Low)"],
"products": [
{
"position": 1,
"spin_id": "JMFYBBMUSG",
"sku_id": "P8P3Y2QIFI",
"name": "Amul Cow Milk",
"brand": "Amul",
"quantity": "1 ltr",
"description": "Pure and fresh cow milk from Amul.",
"mrp": 61,
"offer_price": 61,
"discount_percent": null,
"offers": [],
"in_stock": true,
"max_order_quantity": 6,
"rating": 4.3,
"rating_count": "12.9k",
"category": "Milk",
"sub_category": "Fresh Milk",
"super_category": "Dairy, Bread and Eggs",
"weight_in_grams": 1000,
"is_sponsored": false,
"images": ["https://media-assets.swiggy.com/..."],
"product_url": "https://instamart.in/p/JMFYBBMUSG"
}
]
}