Publix product
One Publix product by id or link: the search fields plus its nutrition label and the finished products it is part of. Prices appear where the shop shows them.
Every response includes credits_used: the credits this call cost.
Part of the Publix API: 6 endpoints with prices, use cases and example responses.
Parameters
| name | type | description |
|---|---|---|
product_idrequired | string | The id at the end of a product link, e.g. RIO-PCI-113569, or the link. Example: RIO-PCI-113569 |
store_id | string | Publix store number (default 1083; see /publix/v1/stores). Example: 1651 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/publix/v1/product?product_id=RIO-PCI-113569" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/publix/v1/product",
params={"product_id": "RIO-PCI-113569"},
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/publix/v1/product");
url.searchParams.set("product_id", "RIO-PCI-113569");
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)
{"product_id": "RIO-PCI-113569","item_code": 70800,"name": "Publix Milk Whole Grade a","brand": "Publix","size": "1 gal (3.78L)","url": "https://www.publix.com/pd/publix-milk-whole-grade-a/RIO-PCI-113569","image": "https://images.publixcdn.com/pct/images/products/70000/070800-600x600-A.jpg","thumbnail": "https://images.publixcdn.com/pct/images/products/70000/070800-75x75-A.jpg","price_text": null,"price": null,"original_price_text": null,"saving": null,"on_sale": false,"temporary_price_reduction": false,"promo_type": null,"promo": null,"promo_conditions": null,"promo_valid_thru": null,"promo_savings": 0,"has_coupon": false,"aisle": ["Aisle 9 - Milk"],"store_id": 1083,"categories": ["Dairy/Milk and Milk Alternatives"],"description": null,"catering": false,"lead_time": null,"party_size": null,"alert": null,"fda_item": false,"nutrition": [{"title": null,"size": null,"serving_size": null,"overview": null,"group": null,"facts": [{"name": "Serving Size","value": null,"percent_daily": null,"unit": null,"description": null},{"name": "Calories","value": "150cal","percent_daily": "0.00","unit": "cal","description": "Calories"},"… 15 more"]}],"finished_products": [],"cached": false,"credits_used": 1}