The Costco Search API returns product listings from Costco regional sites. Pass a keyword, a full search URL, or a keyword with region and receive structured JSON with prices, availability, review counts, and pagination.
Piloterr uses browser rendering (wait_for=#costco-consent-manager, ~8s) to load search result tiles across supported regional hosts.
Use each result url with Costco Product for full PDP data (brand, description, images, breadcrumbs).
CA and UK use dedicated search URL formats; other regions follow the US-like /s?keyword= pattern.
GET https://api.piloterr.com/v2/costco/search?query=home
GET https://api.piloterr.com/v2/costco/search?query=home®ion=fr
GET https://api.piloterr.com/v2/costco/search?query=https://www.costco.co.uk/search?text=sonos
GET https://api.piloterr.com/v2/costco/search?query=https://www.costco.ca/CatalogSearch?keyword=home¤tPage=2
Via POST:
POST https://api.piloterr.com/v2/costco/search
Content-Type: application/json
{"query": "home", "region": "fr", "return_page_source": false}
| Parameter |
Type |
Required |
Description |
query |
string |
yes |
Keyword or full regional search URL |
region |
string |
no |
Region code or host when query is a keyword only (default: US) |
page |
integer |
no |
1-based page override (currentPage or page depending on region) |
return_page_source |
boolean |
no |
Raw HTML as {"result": "..."} (default: false) |
| Format |
Example |
| Keyword (US) |
home → https://www.costco.com/s?keyword=home |
| Keyword + region |
home + region=fr → https://www.costco.fr/s?keyword=home |
| Full URL |
https://www.costco.co.uk/search?text=sonos |
| Paginated URL |
https://www.costco.ca/CatalogSearch?keyword=home¤tPage=2 |
| Field |
Type |
Description |
product_id |
string |
Catalog product ID |
title |
string |
Product title |
url |
string |
Product page URL |
image_url |
string | null |
Main thumbnail |
price |
number | null |
Display price |
currency |
string | null |
ISO 4217 code |
review_count |
integer | null |
Review count |
availability |
string | null |
e.g. delivery, in_stock |
region |
string |
Regional host |
| Field |
Type |
Description |
page |
integer |
Current page |
per_page |
integer |
Listings on this page |
total_results |
integer | null |
Total matching products |
total_pages |
integer | null |
Total pages |
next |
string | null |
Rebuilt next-page URL (respects regional page param) |
region |
string |
Regional host |
- Costco Search: discover listings by keyword or URL (this endpoint)
- Costco Product: fetch full PDP JSON from any result
url or product ID
| Code |
Meaning |
400 |
Missing or invalid query |
404 |
Search page not parseable |
500 |
Rendering or parsing error |
- UK pagination uses
page=; most other regions use currentPage=.
- Costs 2 credits per call (browser rendering).
- Multi-region repricing: monitor Costco prices across US, CA, UK, FR, and more
- Catalog discovery: harvest
product_id and URLs at scale
- Search rank tracking: track listing visibility by keyword and region