Piloterr

PetSmart Search

GET
/v2/petsmart/search

Search PetSmart by keyword or search URL. Page through pet food, litter, and supplies with dollar prices.

Credit cost: 1 credit per call

Autorización

ApiKeyAuth
headerx-api-key<token>

Your API key. Include it in the x-api-key header for every request.

Parámetros de consulta

query*string

What to look for. A word, or a PetSmart search link.

Examples:

dog food
https://www.petsmart.com/search/?q=dog+food

A product link returns 400.

page?number

Which page of results, starting at 1. Page 2 returns a different set of products.

Range1 <= value
return_page_source?boolean

Set to true to get the raw HTML in result instead of the parsed JSON.

Cuerpo de la respuesta

Successful response

application/json
  1. response
results?array<>
pagination?
Example Request
curl -X GET 'https://api.piloterr.com/v2/petsmart/search?query=string'
Example Response
{  "results": [    {      "id": "5252900",      "url": "https://www.petsmart.com/dog/food/dry-food/purina-pro-plan-sensitive-skin-and-stomach-dry-dog-food-adult-salmon-and-rice-formula-digestive-health-36648.html",      "brand": "Purina Pro Plan",      "image": "https://s7d2.scene7.com/is/image/PetSmart/5252900?$sclp-prd-main_large$&fmt=webp&qlt=80",      "price": 20.68,      "title": "Purina Pro Plan Sensitive Skin and Stomach Dry Dog Food Adult Salmon & Rice Formula Digestive Health",      "rating": 4.5,      "currency": "USD",      "in_stock": true,      "price_max": null,      "price_label": "Options from",      "rating_count": 9221,      "price_display": "$20.68",      "variant_count": 4,      "original_price": 21.99,      "master_product_id": "36648",      "price_max_display": null,      "original_price_display": "$21.99"    }  ],  "pagination": {    "next": "https://www.petsmart.com/search/?q=dog+food&page=2",    "page": 1,    "per_page": 40,    "total_pages": 83,    "total_results": 3317  }}