Target
Target Store Availability API
In-store stock for one Target product at every store near a US ZIP: units available, in-store, pickup, curbside and ship-to-store status, distance, address, phone and opening hours. Narrow to one store with store_id. Costs 1 credit per request.
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/jsontcinstringrequiredTarget catalog id (TCIN) - the number after A- in a target.com /p/ URL, or the tcin field from Target search.
Example: 85978609
zipstringrequired5-digit US ZIP code to search around.
Example: 79407
radiusintegerdefault:25Search radius in miles, 1-100. Target returns at most 20 stores, nearest first.
Example: 25
store_idstringReturn only this Target store. It must be within radius of zip; otherwise stores comes back empty.
Example: 2190
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
stock = client.target.availability("85978609", zip="79407")
for store in stock["data"]["stores"]:
print(store["name"], store["in_store"], store["quantity"])Response