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.
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
| 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. |
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.
- 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
| 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 |