PetSmart
PetSmart Store Locator API
The 12 PetSmart stores nearest a US ZIP code, nearest first: store number, name, address, phone, coordinates, distance in miles, time zone, opening date, the next 7 days of opening hours and services (grooming, PetsHotel, training, adoptions and more). Pass a sku and one call returns that SKU's unit count at every store in the list. Costs 1 credit per request.
POST/api/v1/petsmart/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: 60601
radiusintegerSearch radius in miles, 1-100. Defaults to 30.
Example: 30
skustringA SKU. When set, every store also carries its unit count of that SKU.
Example: 5252900
Request
from scavio import ScavioClient
client = ScavioClient(api_key="sk_live_your_key")
res = client.petsmart.stores(zip="60601", sku="5252900")["data"]
# One call: the SKU's unit count at the 12 nearest stores
for s in res["stores"]:
print(s["store_id"], s["name"], s["distance_miles"], "mi", "units:", s["quantity"])Response
"zip": "60601",
"radius_miles": 30,
"sku": "5252900",
"count": 12,
"stores_in_stock": 12,
},
"response_time": 2358
}