The Instamart scraper API for local grocery data
Search Swiggy Instamart and get local products as JSON, each with a price and an MRP. Results depend on the delivery location you send. Set a location before you compare any prices.
Instamart Products API at a glance
This API returns Swiggy Instamart products for a delivery location. Send a POST request with a query, then read each item from the products array. Run the example below to see the exact shape.
- Endpoint
POST /v1/data/instamart/products- Authentication
- API key as
Authorization: Bearer wh_… - Stage
- Beta
- Output
- A products array with position, name, brand, spin_id, quantity, price, mrp, rating, availability, delivery time and sponsored status
- Location
- Pick a launch location with location_key, or send an area name, a pincode or exact coordinates
- Search modes
- Search with query or queries, or browse one category with collection_id
- Results per request
- 1 to 200 with num_results, starting from a page between 1 and 5
- Batch searches
- Up to 25 queries in one request, which always runs as a queued job
- Serving store
- Each response names the store_id that served the delivery location
- Credit weight
- 4. See the pricing page for current rates.
One request, structured JSON.
This request searches for milk at the Koramangala launch location. The response below shows two of the five products returned. Our live call returned a queued job first, then the finished result from its status URL. Copy the request to try it yourself.
curl -X POST "https://api.datablue.dev/v1/data/instamart/products" \
-H "Authorization: Bearer wh_..." \
-H "Content-Type: application/json" \
-d '{
"query": "milk",
"location_key": "blr_koramangala",
"num_results": 5
}'{
"success": true,
"query": "milk",
"city": "Bangalore",
"requested_location": "Koramangala Bangalore",
"location_key": "blr_koramangala",
"store_id": "1396284",
"latitude": 12.9352,
"longitude": 77.6245,
"serviceable": true,
"products": [
{
"position": 3,
"name": "Nandini Pasteurised Toned Milk",
"brand": "Nandini",
"spin_id": "Q3L8WG2OTP",
"product_id": "863CFASSXJ",
"quantity": "500 ml",
"price": 27,
"mrp": 27,
"price_per_unit": "5.4/100 ml",
"rating": 4.4,
"rating_count": 123400,
"in_stock": true,
"availability": "in_stock",
"delivery_eta_minutes": 8,
"is_sponsored": false,
"category": "Milk",
"sub_category": "Fresh Milk"
},
{
"position": 4,
"name": "Amul Taaza Milky Milk",
"brand": "Amul",
"spin_id": "D9PNFAT8MI",
"product_id": "9KOG9Y2NY9",
"quantity": "500 ml x 4",
"price": 120,
"mrp": 120,
"price_per_unit": "6/100 ml",
"rating": 4.4,
"rating_count": 528800,
"in_stock": true,
"availability": "in_stock",
"delivery_eta_minutes": 8,
"is_sponsored": true,
"category": "Milk",
"sub_category": "Fresh Milk"
}
]
}What a product returns.
Each product arrives as one object with named fields.
Identity and rank
Every product has a name, a brand and a position. The spin_id field is the key you pass to Instamart Product to get full detail. Do not pass the product_id from a search row, because that value does not work there.
Price and MRP
Each product returns a price and an mrp in rupees. Our sample showed savings of 0 and a null discount, so check both fields before you rely on them. Use price_per_unit to compare pack sizes, because it gives a rate such as 5.4/100 ml.
Stock and availability
The in_stock flag and the availability value tell you whether a pack is on the shelf. The cart_allowed_quantity field shows how many units one order accepts. Filter out rows that are not in stock first.
Delivery time
Each product carries delivery_eta_minutes and an sla string. Our sample showed 8 minutes at the Koramangala store on the day we ran it. Track the value hourly to watch delivery times move.
Sponsored status
The is_sponsored flag marks paid placements in the results. Two of the five products in our sample carried it, and both were Amul listings. Use it to split organic rank from paid rank.
Category and rating
Products carry a category and a super_category. Both rating and rating_count show how shoppers score an item. Sort rows by category to see which aisles lead.
Location context
The response echoes the store_id and the coordinates it resolved. The serviceable flag tells you whether that spot is covered. Keep the store_id beside every price you save.
Images
Each product returns an image_url and a gallery in image_urls. Keep the URLs in your catalogue for later use, and fetch the files when your own page needs them.
Options that shape your search.
A search needs a query or a collection_id. Add the rest when you need tighter control.
Search query
Set query to the product you want, such as milk. Send queries to run up to 25 searches at once. A request with queries always runs as a queued job. Check the status URL in the response until it finishes.
Category browse
Pass collection_id to browse one category instead of searching. The value is the ID from an Instamart collection URL. Use it to pull a whole aisle at once, which saves you from guessing keywords for each product.
Delivery location
Set location_key to pick a launch location. The values are blr_koramangala and blr_indiranagar, plus mum_bandra and del_connaught_place. The default location is blr_koramangala when you send nothing else.
Area, pincode and coordinates
Put an area name or pincode in the location field. DataBlue geocodes it and resolves the serving store. Unknown areas return an error instead of a default area. A city on its own returns an HTTP 422 error. Send latitude and longitude together for an exact point.
Result count and pages
Ask for 1 to 200 products with num_results. The default is 20 products for each request. Pass page from 1 to 5 to begin deeper. Keep num_results low while you test a new query.
Advanced store overrides
Pass store_id to target a decoded Instamart store directly. A primary_store_id needs a store_id beside it. Most requests never need these advanced fields. Set timeout_ms between 3000 and 60000 for the provider deadline.
What teams build with it.
Local grocery data feeds pricing and assortment work.
Price monitoring
Search your core products on a schedule and store price and mrp for each run. Compare runs to see when a price moves, then alert your team when it crosses a threshold.
Brand shelf tracking
Search a category term and count products by brand. Watch how a brand holds its rank over time.
Sponsored placement audits
Flag rows where is_sponsored is true and log their position. Report how often paid items lead a search, then compare that rate between two brands.
Hyperlocal availability
Send one query to two locations and compare their stock. Plan promotions around the gaps you find, and send that report to your category team.
Why use an API instead of scraping Instamart yourself.
Instamart results depend on the delivery location. That means every query needs a location beside it. DataBlue turns an area or pincode into coordinates, then finds the store that serves them.
One request returns products already parsed into named fields. Your code reads price, mrp and availability as plain values. This API also reports whether a row is sponsored, which a bare price list never shows.
Every field above appears in a live response from Koramangala. Build against those fields before you add filters. Start with one query at one launch location.
Your first Instamart search in a minute.
Get a key, then send your first search.
Create an account
Sign up to get your API key.
Send a search
Send a POST request to /v1/data/instamart/products with your Bearer key. Add a query plus a location_key for one delivery spot.
Read the products
Our live call came back as a queued job. Check the status URL until it completes. Read price and availability straight off each object.
Instamart scraper API questions.
Short answers about data and billing before you start.
It reads Swiggy Instamart search results for one delivery location. Each product comes back as one object in products.
Still have a question?Ask us anything
Send a POST request to the products endpoint with a query and your Bearer key. Add a location_key or location to match one delivery address.
The fields section above lists every value a product carries. Compare it with the sample response above.
Yes, results depend on the delivery location. Price and stock belong to the store serving that address. Send the same location each time when you compare runs.
Four launch locations are available through location_key. Other areas go through the location field. Unknown areas return an error instead of a default area.
Yes, each row carries an is_sponsored flag. Filter on it to separate paid placements from organic ones.
Use Instamart Product with a spin_id from this API. It returns pack variants and details for one item.
Use Instamart Autocomplete for suggestions on a partial query.
This API is in beta today, and fields could still change as we improve it. Build against the documented fields, then read the changelog before each upgrade you ship to production.
This API has a credit weight of 4. Check the pricing page for current rates.
Run an Instamart search in a minute.
Create an account to get your key. Then run the example request with your own location.
Start free
