Instacart API endpoint
Returns Instacart's own popular/trending search terms across every retailer serving a postal code -- the same blank-state suggestions shown before a user types anything into the search box. Public data sourced from Instacart's own cross-retailer search.
/instacart/trendingQuery parameters:
postal_code (required) — US postal/ZIP code to search near.Notable response behavior:
terms does not carry a relative_url field (unlike
GET /instacart/search and
GET /instacart/search-nearby's
suggestions) — popular terms are not tied to a specific search-results
page link.| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| term | 10 | “kit kat” and 8 other values |
| thumbnail_url | 10 | instacart.com and 1 other host |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| postal_code | string | Yes | US postal/ZIP code to search near | 94105 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/instacart/trending?postal_code=94105" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"postal_code": "94105",
"terms": [
{
"term": "kit kat",
"thumbnail_url": "https://www.instacart.com/assets/generic_items/autosuggestions/placeholder.png"
},
{
"term": "wine",
"thumbnail_url": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/thumb_a23cbed9-9122-4850-8d98-453fe6283dad.png"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/instacart.trendingResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | instacart.TrendingResponse | No | ||||
| data.postal_code | string | No | ||||
| data.terms | array | No | ||||
| data.terms[].relative_url | string | No | ||||
| data.terms[].term | string | No | ||||
| data.terms[].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/trending?postal_code=94105" \
-H "x-api-key: $CRAWLORA_API_KEY"