Skip to main content
Piloterr
Back to library

PetSmart Search API

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

Active1 credit = 1 requestGET/v2/petsmart/search

Endpoint Overview

Detailed documentation, pricing, and usage examples.

OverviewLink to Overview

Search PetSmart for pet food, treats, and supplies. The listing page is read with the website crawler.

query is a keyword, or a PetSmart search link. page starts at 1. Page 2 uses page=2.

A product link returns 400. Another website returns 400.

QuickstartLink to Quickstart

GET https://api.piloterr.com/v2/petsmart/search?query=dog+food
GET https://api.piloterr.com/v2/petsmart/search?query=cat+litter&page=2
GET https://api.piloterr.com/v2/petsmart/search?query=https://www.petsmart.com/search/?q=dog+food

ParametersLink to Parameters

Parameter Type Required Description
query string yes Keyword or PetSmart search URL. Placeholder: dog food. A product URL returns 400.
page integer no Page number from 1. Placeholder: 1.
return_page_source boolean no When true, the response is the raw HTML in result.

Response fieldsLink to Response fields

Each item in results is one product card. price is the selling price shown on the card. price_display is that number in dollars. original_price is the crossed-out price when it is higher. price_label is text such as Options from when PetSmart prints it.

pagination.next is the next page URL, or null on the last page.

Use casesLink to Use cases

  • Compare dog-food prices on PetSmart
  • Page through a large litter search
  • Turn a keyword into a product id and URL

Error codesLink to Error codes

Code Meaning
400 Empty query, another website, a product link, or a page below 1
404 The page had no product cards
500 The fetch failed

Related APIs

Expand your data capabilities with these complementary tools.

Ready to get started?

Your web scraping API is one click away. Start with +500 credits, no infrastructure to set up, no proxies to manage, and no credit card required.

  • +500 credits
  • No credit card required
  • All endpoints included