Instamart Autocomplete Endpoint
Return Swiggy Instamart search suggestions for partial text at a delivery location.
Getting Started
Send your API key as a bearer token. Start with the smallest request below.
Run Instamart Autocomplete
Send the smallest useful request and read the structured response.
curl -X POST "https://api.datablue.dev/v1/data/instamart/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prefix": "mil"
}'{
"success": true,
"source": "instamart",
"prefix": "mil",
"location_key": "blr_koramangala",
"requested_location": "Koramangala Bangalore",
"city": "Bangalore",
"latitude": 12.9352,
"longitude": 77.6245,
"store_id": "1396284",
"serviceable": true,
"captured_at": "2026-11-15T08:58:55.399531Z",
"time_taken": 2.04,
"count": 7,
"suggestions": [
{
"position": 1,
"keyword": "Milk",
"type": "category",
"image_url": "https://media-assets.swiggy.com/swiggy/image/upload/NI_CATALOG/IMAGES/ciw/2025/12/17/02bfb139-2185-4..."
},
{
"position": 2,
"keyword": "Country Delight Milk",
"type": "query",
"image_url": "https://media-assets.swiggy.com/swiggy/image/upload/NI_CATALOG/IMAGES/CIW/2026/8/11/ffc1698f-7024-47..."
}
],
"credits_used": 1
}Options
Results and Pagination
Control how many records or pages are returned.
curl -X POST "https://api.datablue.dev/v1/data/instamart/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prefix": "mil",
"limit": 10
}'{
"success": true,
"source": "instamart",
"prefix": "mil",
"location_key": "blr_koramangala",
"requested_location": "Koramangala Bangalore",
"city": "Bangalore",
"latitude": 12.9352,
"longitude": 77.6245,
"store_id": "1396284",
"serviceable": true,
"captured_at": "2026-11-15T08:58:55.399531Z",
"time_taken": 2.04
}Location and Language
Localize results with country, language, coordinates, or delivery-location fields.
curl -X POST "https://api.datablue.dev/v1/data/instamart/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prefix": "mil",
"location_key": "blr_koramangala",
"location": "New York, NY",
"city": "example",
"latitude": 40.7128
}'{
"success": true,
"source": "instamart",
"prefix": "mil",
"location_key": "blr_koramangala",
"requested_location": "Koramangala Bangalore",
"city": "Bangalore",
"latitude": 12.9352,
"longitude": 77.6245,
"store_id": "1396284",
"serviceable": true,
"captured_at": "2026-11-15T08:58:55.399531Z",
"time_taken": 2.04
}Request Controls
Set device, timeout, and request-specific controls.
curl -X POST "https://api.datablue.dev/v1/data/instamart/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prefix": "mil",
"timeout_ms": 30000
}'{
"success": true,
"source": "instamart",
"prefix": "mil",
"location_key": "blr_koramangala",
"requested_location": "Koramangala Bangalore",
"city": "Bangalore",
"latitude": 12.9352,
"longitude": 77.6245,
"store_id": "1396284",
"serviceable": true,
"captured_at": "2026-11-15T08:58:55.399531Z",
"time_taken": 2.04
}Additional Options
Set endpoint-specific options for this request.
curl -X POST "https://api.datablue.dev/v1/data/instamart/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"prefix": "example"
}'{
"success": true,
"source": "instamart",
"prefix": "mil",
"location_key": "blr_koramangala",
"requested_location": "Koramangala Bangalore",
"city": "Bangalore",
"latitude": 12.9352,
"longitude": 77.6245,
"store_id": "1396284",
"serviceable": true,
"captured_at": "2026-11-15T08:58:55.399531Z",
"time_taken": 2.04
}Response
Read success first, then consume the endpoint-specific records and pagination fields shown below.
Error Handling
Handle 401 for authentication, 422 for invalid input, 429 for limits, and retry only transient failures.
