Meijer product search
Search Meijer products by keywords or browse a category, priced and stocked for one store, with the shop's filters (values from filters), a price range and five sorts. Each product: UPC, product id, name, link, images, price, regular price, unit prices, clearance price, sale flag and price text, savings, sale end date, stock status, promotions, sold-by unit, mPerks, sponsored, WIC, delivery and pickup flags, plus raw. Also returns the filter options with counts and the matching categories. A keyword the shop sends to another page answers redirect_url and no items. Pass next_cursor back as cursor; null on the last page.
Every response includes credits_used: the credits this call cost.
Part of the Meijer API: 7 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
q | string | Keywords. Optional when category is set. Example: milk |
category | string | Category group id from a search's categories, e.g. L1-865; alone it browses the category. |
filters | string | Filters as name:value pairs from a search's filters, comma-separated, e.g. brand:Meijer. |
min_price | number | Lowest price (USD). |
max_price | number | Highest price (USD). |
sort | relevance | price_asc | price_desc | name_asc | name_desc | Order. |
store_id | string | Meijer store number the prices and stock are for (default 265; see /meijer/v1/stores). Example: 265 |
limit | integer | Results per page (default 52, max 100). |
cursor | string | next_cursor from the previous page. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/meijer/v1/search?q=milk" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/meijer/v1/search",
params={"q": "milk"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/meijer/v1/search");
url.searchParams.set("q", "milk");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).
Example response (real call, trimmed: lists cut to 2 items, long text shortened, raw left out)
{"query": "milk","category": null,"store_id": 265,"sort": "relevance","applied_filters": [],"total": 973,"count": 52,"items": [{"upc": "4125010200","product_id": "504293","name": "Meijer Whole Milk, Gallon","url": "https://www.meijer.com/shopping/product/meijer-whole-milk-gallon/4125010200.html","image": "https://www.meijer.com/content/dam/meijer/product/0041/25/0102/00/0041250102007_2_A1C1_0200.jpg","images": ["https://www.meijer.com/content/dam/meijer/product/0041/25/0102/00/0041250102007_2_A1C1_0080.jpg","https://www.meijer.com/content/dam/meijer/product/0041/25/0102/00/0041250102007_2_A1C1_0100.jpg","… 10 more"],"price": 3.34,"regular_price": 3.34,"price_per_unit": 3.34,"regular_price_per_unit": 3.34,"clearance_price": null,"on_sale": false,"price_text": "$3.34","savings": null,"buy_quantity": 1,"sale_ends": "2099-12-31T23:59:00.000Z","pricing_unit": "EA","deposit": null,"price_shown": true,"stock_status": "inStock","promotions": [],"sold_by": "EA","sold_by_weight": false,"mperks": false,"sponsored": false,"third_party": false,"wic_eligible": null,"delivery": true,"pickup": true,"alcohol": false},{"upc": "4125010210","product_id": "504295","name": "Meijer 2% Reduced Fat Milk, Gallon","url": "https://www.meijer.com/shopping/product/meijer-2-reduced-fat-milk-gallon/4125010210.html","image": "https://www.meijer.com/content/dam/meijer/product/0041/25/0102/10/0041250102106_2_A1C1_0200.jpg","images": ["https://www.meijer.com/content/dam/meijer/product/0041/25/0102/10/0041250102106_2_A1C1_0080.jpg","https://www.meijer.com/content/dam/meijer/product/0041/25/0102/10/0041250102106_2_A1C1_0100.jpg","… 10 more"],"price": 3.34,"regular_price": 3.34,"price_per_unit": 3.34,"regular_price_per_unit": 3.34,"clearance_price": null,"on_sale": false,"price_text": "$3.34","savings": null,"buy_quantity": 1,"sale_ends": "2099-12-31T23:59:00.000Z","pricing_unit": "EA","deposit": null,"price_shown": true,"stock_status": "inStock","promotions": [],"sold_by": "EA","sold_by_weight": false,"mperks": false,"sponsored": false,"third_party": false,"wic_eligible": null,"delivery": true,"pickup": true,"alcohol": false},"… 50 more"],"filters": [{"name": "brand","label": "brand","options": [{"value": "Meijer","label": "Meijer","count": 68,"selected": false},{"value": "TRUE GOODNESS","label": "True Goodness","count": 31,"selected": false},"… 187 more"]},{"name": "discountSalePriceValue","label": "price","options": [{"value": "\"-inf\"-\"5\"","label": "5 and less","count": 413,"selected": false},{"value": "\"5\"-\"10\"","label": "5 - 10","count": 297,"selected": false},"… 9 more"]},"… 13 more"],"categories": [{"id": "L1-865","name": "Grocery","count": 643},{"id": "L1-914","name": "Halloween","count": 3},"… 11 more"],"sorts": ["relevance","price_asc","… 3 more"],"next_cursor": "eyJPZmZzZXQiOjUxLCJJZGVudGl0eSI6eyJTZWFyY2hJZCI6Ijk5ODljNjIxLWFkMDktNDk2Zi1iMTc1LTEzNDU1N2NmYjI2YyIsIkNyZWF0ZWRBdCI6IjIwMjYtMTEtMDZUMDk6MTI6…","cached": false,"credits_used": 1}