Publix
Publix Search Suggestions API
The suggestions the Publix search box shows for what a user typed: up to 10 popular searches and, with a store_id, up to 4 products with item code, title, description, savings text, image and url. Use it for keyword research or to autocomplete a Publix search in your own app. Costs 1 credit per request.
POST/api/v1/publix/suggestions
Authorizations
AuthorizationstringheaderrequiredBearer authentication header of the form Bearer <token>, where <token> is your Scavio API key (e.g. Bearer sk_live_your_key).
Body
application/jsonquerystringrequiredWhat the user has typed so far, 1-100 characters.
Example: chick
store_idstring | integerOptional. A Publix store number (stores[].store_id of the stores endpoint), 1-5 digits.
Example: 1614
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
r = client.publix.suggestions(query="chick", store_id="1614")["data"]
print([s["text"] for s in r["suggestions"]])
for p in r["products"]:
print(p["item_code"], p["title"])Response
"query": "chick",
"store_id": 1614,
"count": 10,
},
"response_time": 2950
}