Skip to main content
Piloterr
Back to library

Chewy Product API

Read one Chewy product by URL or numeric id. The default mode is expert and returns the historical product cache. simple returns one snake_case product.

Active3 credits = 1 requestGET/v2/chewy/product

Endpoint Overview

Detailed documentation, pricing, and usage examples.

OverviewLink to Overview

Read one Chewy product page.

query is a Chewy product URL, or the numeric id from that URL. A search link returns 400.

mode chooses the JSON. It defaults to expert.

Use simple when you only need the short listing. Use expert when you need the full historical detail.

QuickstartLink to Quickstart

GET https://api.piloterr.com/v2/chewy/product?query=https://www.chewy.com/purina-pro-plan-adult-sensitive-skin/dp/128666
GET https://api.piloterr.com/v2/chewy/product?query=128666&mode=simple

ParametersLink to Parameters

Parameter Type Required Default Description
query string yes Product URL such as https://www.chewy.com/purina-pro-plan-adult-sensitive-skin/dp/128666, or the id 128666. A keyword, a search link, or another website returns 400.
mode string no expert expert or simple. See below.
return_page_source boolean no false true returns the rendered HTML in result instead of JSON. The string false stays false.

modeLink to mode

expert (also when mode is omitted or empty) returns the historical payload. The body is the page Apollo cache. Keys look like Item:... and Product:.... Fields keep Chewy's names, such as entryID, name, advertisedPrice, and __typename. The example shows the selected item and its product entry. The live response includes the rest of the cache as well.

simple returns one flat object. Every key is lowercase snake_case. id is the variant in the URL. price is a number. price_display is that number in dollars, with no trailing dash. title, url, brand, image, and in_stock are included when Chewy prints them. variants lists the other sizes and flavors on the page, with the same snake_case keys, and only when those variants are really on the page.

Expert and simple are accepted in any case. Any other value, including false, returns 400.

Use casesLink to Use cases

  • Read the historical product cache for one Chewy URL or id
  • Track the short price card with mode=simple
  • List the other sizes on the page in simple mode

Error codesLink to Error codes

Code Meaning
400 Empty query, a keyword, another website, a link that is not a product, or a mode other than expert or simple
404 Expert: the page had no Apollo cache. Simple: the variant id was not on the page
500 The page could not be rendered

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