Instacart: Search
Search from Instacart as JSON. 1 credit per successful call.
GET /v1/instacart/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Required | Up to 120 characters |
retailer | string | Optional | Up to 80 characters |
zip | string | Optional | Any |
page | integer | Optional | 1 |
Example request
Instacart
GET/v1/instacart/search?query=milk&zip=10016
{
"success": true,
"data": {
"query": "milk",
"page": 1,
"count": 14,
"has_next_page": false,
"items": [
{
"position": 1,
"id": "items_162737-16960830",
"product_id": "16960830",
"name": "Wegmans Vitamin D Whole Milk",
"brand": "wegmans",
"size": "1 gal",
"image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_ac2c5c39-7b3e-44b4-ae2c-f2af97b12025.jpeg",
"availability": "in_stock",
"retailer_id": "231",
"shop_id": "366100",
"price": 4.59,
"currency": "USD",
"unit_price": 0.04,
"unit": "fl oz",
"unit_price_text": "$0.04/fl oz"
},
{
"position": 2,
"id": "items_162737-16960902",
"product_id": "16960902",
"name": "Wegmans Vitamin D Whole Milk",
"brand": "wegmans",
"size": "0.5 gal",
"image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_75cc9c25-7e8f-477c-8f4e-39b2a28cf664.jpeg",
"availability": "in_stock",
"retailer_id": "231",
"shop_id": "366100",
"price": 3.09,
"currency": "USD",
"unit_price": 0.05,
"unit": "fl oz",
"unit_price_text": "$0.05/fl oz"
},
{
"position": 3,
"id": "items_162737-16960897",
"product_id": "16960897",
"name": "Wegmans 2% Reduced Fat Milk",
"brand": "wegmans",
"size": "0.5 gal",
"image": "https://d2lnr5mha7bycj.cloudfront.net/product-image/file/large_0183ef0a-eb36-4f87-9473-7e12e1a3c002.jpeg",
"availability": "in_stock",
"retailer_id": "231",
"shop_id": "366100",
"price": 3.09,
"currency": "USD",
"unit_price": 0.05,
"unit": "fl oz",
"unit_price_text": "$0.05/fl oz"
}
]
},
"meta": {
"endpoint_family": "search",
"attempts": 1,
"request_id": "req_1b77d461161542e495e1059e45247500",
"credits_charged": 1,
"credits_remaining": 977
}
}200 OKJSONX-Credits-Used: 1
Recorded from our API and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
Each item in data.items has these 15 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
position | integer |
id | string |
product_id | string |
name | string |
brand | string |
size | string |
image | url |
availability | string |
retailer_id | string |
shop_id | string |
price | number |
currency | string |
unit_price | number |
unit | string |
unit_price_text | string |