Petco
Petco Store Locator API
Petco stores nearest a US ZIP code, up to 10, nearest first: store_id (the id /api/v1/petco/store-inventory takes), store number, name, store type, address, phone, coordinates, distance in miles, in-store pickup and opening hours for each weekday. Costs 1 credit per request.
POST/api/v1/petco/stores
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/jsonzipstringrequiredUS ZIP code to search around (5 digits, or ZIP+4).
Example: 10001
limitintegerNumber of stores, nearest first. Defaults to 5, at most 10.
Example: 10
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.petco.stores(zip="10001")["data"]
for s in res["stores"]:
print(s["store_id"], s["name"], s["address"], s["city"], s["distance_miles"], "mi")Response
"zip": "10001",
"latitude": 40.75074,
"longitude": -73.99653,
"limit": 5,
"count": 5,
},
"response_time": 14503
}