Publix store
GET https://api.api.sh/publix/v1/store
One Publix store by number, with the same fields as the store locator.
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 |
|---|---|---|
store_idrequired | string | Publix store number. Example: 1651 |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/publix/v1/store?store_id=1651" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/publix/v1/store",
params={"store_id": "1651"},
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/store");
url.searchParams.set("store_id", "1651");
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": 1651,"name": "Grove Park Shopping Center","address": "1617 US Hwy 98 S","city": "Lakeland","state": "FL","zip": "33801","phone": "+1 555 010 0000","pharmacy_phone": "+1 555 010 0000","liquor_phone": "+1 555 010 0000","hours": "Sun 7:00 AM - 10:00 PM,Mon 7:00 AM - 10:00 PM,Tues 7:00 AM - 10:00 PM,Wed 7:00 AM - 10:00 PM,Thurs 7:00 AM - 10:00 PM,Fri 7:00 AM - 10:00 PM…","pharmacy_hours": "-","liquor_hours": "-","latitude": 28.023309,"longitude": -81.92622,"distance_miles": 0,"type": "Publix","status": null,"departments": [],"services": [],"opened": "6/27/2019 12:00:00 AM","image": "https://images.publixcdn.com/pct/images/static/StoreFront/001651-828x498.png","short_name": "Grove Park","time_zone": "Eastern Standard Time","cached": false,"credits_used": 1} The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.