Instacart API endpoint
Returns Instacart's own search-term autosuggestions for a keyword across every retailer serving a postal code at once, rather than one specific store. Public data sourced from Instacart's own cross-retailer search.
/instacart/search-nearbyQuery parameters:
postal_code (required) — US postal/ZIP code to search near.q (required) — free-text search term.Notable response behavior:
suggestions: [] with a 200, not
an error.| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| term | 10 | “milk” and 9 other values |
| thumbnail_url | 10 | d2lnr5mha7bycj.cloudfront.net |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| postal_code | string | Yes | US postal/ZIP code to search near | 94105 | |
| q | string | Yes | Free-text search term | milk | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/instacart/search-nearby?postal_code=94105&q=milk" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"postal_code": "94105",
"query": "milk",
"suggestions": [
{
"term": "milk",
"thumbnail_url": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/thumb_b4aaab37-66cf-46e3-9638-f37987fca803.jpg"
},
{
"term": "almond milk",
"thumbnail_url": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/thumb_example.jpg"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/instacart.searchNearbyResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | instacart.SearchNearbyResponse | No | ||||
| data.postal_code | string | No | ||||
| data.query | string | No | ||||
| data.suggestions | array | No | ||||
| data.suggestions[].relative_url | string | No | ||||
| data.suggestions[].term | string | No | ||||
| data.suggestions[].thumbnail_url | string | No | ||||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/instacart/search-nearby?postal_code=94105&q=milk" \
-H "x-api-key: $CRAWLORA_API_KEY"