The Costco Product API returns full product page data from Costco regional sites. Pass a numeric product ID, a full product URL, or an ID with region and receive structured JSON with pricing, availability, ratings, images, and breadcrumbs.
Piloterr uses browser rendering (wait_for=#costco-consent-manager) and parses Next.js RSC productDetailsData, JSON-LD Product, and DOM stock status.
CA and UK use dedicated search URL formats; other regions follow the US-like /s?keyword= pattern.
GET https://api.piloterr.com/v2/costco/product?query=4000266385
GET https://api.piloterr.com/v2/costco/product?query=4000268598®ion=ca
GET https://api.piloterr.com/v2/costco/product?query=https://www.costco.com/p/-/mohawk-home-6mm-thick-94in-x-478in-22-mil-waterproof-luxury-vinyl-plank-flooring-1565-sq-ftctn/4000266385
Via POST:
POST https://api.piloterr.com/v2/costco/product
Content-Type: application/json
{"query": "4000266385", "region": "us", "return_page_source": false}
| Parameter |
Type |
Required |
Description |
query |
string |
yes |
Product ID or full regional product URL |
region |
string |
no |
Region code or host when query is a numeric ID only (default: US) |
return_page_source |
boolean |
no |
Raw HTML as {"result": "..."} (default: false) |
| Field |
Type |
Description |
product_id |
string |
Catalog product ID |
item_number |
string | null |
Selected item / SKU number |
name |
string |
Product title |
url |
string |
Canonical product URL |
brand |
string | null |
Brand (JSON-LD) |
description |
string | null |
Long description / features (RSC, ;-separated) |
image_url |
string | null |
First image (images[0]) |
images |
string[] | null |
All image URLs found |
price |
number | null |
Online display price |
currency |
string | null |
ISO 4217 code |
availability |
string | null |
e.g. in_stock, out_of_stock |
rating |
number | null |
Average rating / 5 |
review_count |
integer | null |
Review count |
breadcrumbs |
string[] | null |
Category breadcrumb trail |
region |
string |
Regional host |
- Costco Search: discover listings and product URLs
- Costco Product: fetch full PDP JSON (this endpoint)
| Code |
Meaning |
400 |
Missing or invalid query |
404 |
Product page not parseable |
500 |
Rendering or parsing error |
- Product parsing uses RSC + JSON-LD; search remains DOM-based.
images may include multiple resolutions and color variants.
- Costs 2 credits per call (browser rendering).
- PDP enrichment: extract brand, specs, and all gallery images
- Availability monitoring: track stock status across regions
- Price intelligence: compare online prices on Costco regional stores