Meijer products by UPC
Up to 50 Meijer products by UPC in one call, priced and stocked for one store (the search fields for each product). UPCs the shop does not know come back in missing.
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 |
|---|---|---|
upcsrequired | string | Comma-separated UPCs (up to 50). Example: 4125010200,4125010201 |
store_id | string | Meijer store number the prices and stock are for (default 265; see /meijer/v1/stores). Example: 265 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/meijer/v1/products?upcs=4125010200%2C4125010201" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/meijer/v1/products",
params={"upcs": "4125010200,4125010201"},
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/products");
url.searchParams.set("upcs", "4125010200,4125010201");
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)
{"store_id": 265,"count": 2,"items": [{"upc": "4125010200","product_id": null,"name": "Meijer Whole Milk, Gallon","url": null,"image": "https://www.meijer.com/content/dam/meijer/product/0041/25/0102/00/0041250102007_2_A1C1_0200.jpg","images": [],"price": null,"regular_price": null,"price_per_unit": 3.34,"regular_price_per_unit": 3.34,"clearance_price": null,"on_sale": false,"price_text": null,"savings": null,"buy_quantity": null,"sale_ends": null,"pricing_unit": null,"deposit": null,"price_shown": true,"stock_status": "inStock","promotions": [],"sold_by": "EA","sold_by_weight": false,"mperks": false,"sponsored": null,"third_party": false,"wic_eligible": null,"delivery": true,"pickup": true,"alcohol": false},{"upc": "4125010201","product_id": null,"name": "Meijer Whole Milk, 1/2 Gallon","url": null,"image": "https://www.meijer.com/content/dam/meijer/product/0041/25/0102/01/0041250102014_2_A1C1_0200.jpg","images": [],"price": null,"regular_price": null,"price_per_unit": 2.29,"regular_price_per_unit": 2.29,"clearance_price": null,"on_sale": false,"price_text": null,"savings": null,"buy_quantity": null,"sale_ends": null,"pricing_unit": null,"deposit": null,"price_shown": true,"stock_status": "inStock","promotions": [],"sold_by": "EA","sold_by_weight": false,"mperks": false,"sponsored": null,"third_party": false,"wic_eligible": null,"delivery": true,"pickup": true,"alcohol": false}],"missing": [],"cached": false,"credits_used": 1}