Costco Products
Costco products across every category — names, prices, descriptions and images.
11,121 rows in the dataset · last run Oct 10, 2026
Download the dataset
Get every row this scraper has collected as one CSV or JSONL file. If the data is older than maxAgeHours, the scraper is re-run with its configured settings first. The key needs the datasets:export scope.
DOWNLOAD_ID=$(curl -s -X POST "https://api.pandorlabs.com/v1/datasets/costco-products/downloads" \ -H "Authorization: Bearer $PANDORLABS_KEY" \ -H "Content-Type: application/json" \ -d '{"maxAgeHours":24,"format":"csv"}' | jq -r '.id')while true; do STATUS=$(curl -s "https://api.pandorlabs.com/v1/downloads/$DOWNLOAD_ID" \ -H "Authorization: Bearer $PANDORLABS_KEY" | jq -r '.status') [ "$STATUS" != "refreshing" ] && break sleep 5donecurl -s "https://api.pandorlabs.com/v1/downloads/$DOWNLOAD_ID/file" \ -H "Authorization: Bearer $PANDORLABS_KEY" \ -o dataset.csvAt its current 11,121 rows, this download costs 112 credits when the data is fresh enough, or 224 credits when it has to be refreshed first.
The rate is 1 credit per 100 rows cached and 2 credits live, charged on the rows in the dataset when the download becomes ready. A failed refresh is not charged. The file stays downloadable for 24 hours. See pricing.
Start a run
To choose the targets yourself, send the parameters below as input. The call returns 202 with the run; the key needs the scrapers:run scope and the account a positive credit balance.
curl -X POST "https://api.pandorlabs.com/v1/scrapers/costco-products/runs" \ -H "Authorization: Bearer $PANDORLABS_KEY" \ -H "Content-Type: application/json" \ -d '{ "input": { "mode": "categories", "categoryUrls": [ "/laptops.html", "/cooktops.html" ], "maxCategories": 250, "maxProductsPerCategory": 2000 } }'A run is billed at the live rate once it finishes: 2 credits per 100 rows it collected. A run that collects nothing costs nothing.
Parameters
Every parameter is optional. Anything you leave out uses the default shown here; an unknown name or an invalid value is rejected with a 400 that lists each problem.
Targeting
modeenum
Enumeration mode
Categories pages each megamenu leaf and takes the taxonomy from Costco’s own breadcrumb. Catalog asks the search app for everything at once — the complete shippable catalogue in ~61 requests — and names the taxonomy from the megamenu instead.
- Default
categories- Allowed values
categoriescatalog
categoryUrlsstring[]
Category paths
Leave empty to discover every leaf category from Costco’s megamenu. Full costco.com URLs are accepted and reduced to their path.
- Default
- none
- Example
/laptops.html, /cooktops.html
maxCategoriesnumber
Max categories (discovery only)
The megamenu yields ~995 leaf entries, 847 of them distinct. Ignored when category paths are given explicitly, and in catalog mode.
- Default
250- Range
- 1 to 2000
maxProductsPerCategorynumber
Max products per category
Paging stops at this many, or when the category runs out. The deepest category measured holds 1,978 products and pages to the last one, so the default clears it.
- Default
2000- Range
- 1 to 20000
maxProductsnumber
Max products per run
Across every category together. The whole shippable catalogue is ~12,100 products, so the default does not bite on a full run. Hitting it ends the run with a truncation warning.
- Default
25000- Range
- 1 to 200000
shipItOnlyboolean
Shippable items only
Applies the storefront’s ShipIt eligibility filter. Turning it off also returns warehouse-only and grocery-delivery items, which have no shippable price.
- Default
true
Advanced
pageSizenumber
Products per request
Verified 2026-09-03: 200 is honoured exactly, 201 already falls back to 24. Clamped for that reason.
- Default
200- Range
- 1 to 200
requestDelayMsnumber
Delay between requests (ms)
Costco throttles by resetting the connection rather than returning a status code, so a run that suddenly reports fetch errors is usually going too fast.
- Default
750- Range
- 0 to 60000
userLocationstring
User state
Together with the postal code, decides regional pricing and availability.
- Default
NJ
userPostalstring
User postal code
- Default
07094
locationsstring[]
Inventory nodes (Solr `loc`)
Which fulfilment nodes are joined onto each product. Trimming this changes which products come back and at what price — leave it alone unless you are deliberately re-targeting the run.
- Default
["729-bd","306-wh","1260-3pl","1321-wm","1477-3pl","283-wm","561-wm","725-wm","731-wm","758-wm","759-wm","847_0-cor","847_0-cwt","847_0-edi","847_0-ehs","847_0-membership","847_0-mpt","847_0-spc","847_0-wm","847_1-cwt","847_1-edi","847_d-fis","847_lg_n1a-edi","847_lux_us81-edi","847_NA-cor","847_NA-pharmacy","847_NA-wm","847_ss_u360-edi","847_wp_r428-edi","951-wm","952-wm","9847-wcs"]
warehousestring
Reporting warehouse (`whloc`)
- Default
306-wh
apiKeystring
Search API key
The key costco.com ships to every browser. Set only if Costco rotates it; the environment variable is the better place for that.
- Default
- none
- Example
defaults to COSTCO_SEARCH_API_KEY, then the storefront’s public key
Input as JSON Schema
The same schema the API validates against. Use it as a tool input schema or to generate a typed client.
{ "type": "object", "additionalProperties": false, "properties": { "mode": { "type": "string", "enum": [ "categories", "catalog" ], "title": "Enumeration mode", "description": "Categories pages each megamenu leaf and takes the taxonomy from Costco’s own breadcrumb. Catalog asks the search app for everything at once — the complete shippable catalogue in ~61 requests — and names the taxonomy from the megamenu instead.", "default": "categories" }, "categoryUrls": { "type": "array", "items": { "type": "string" }, "maxItems": 1000, "title": "Category paths", "description": "Leave empty to discover every leaf category from Costco’s megamenu. Full costco.com URLs are accepted and reduced to their path.", "default": [], "examples": [ "/laptops.html, /cooktops.html" ] }, "maxCategories": { "type": "number", "minimum": 1, "maximum": 2000, "title": "Max categories (discovery only)", "description": "The megamenu yields ~995 leaf entries, 847 of them distinct. Ignored when category paths are given explicitly, and in catalog mode.", "default": 250 }, "maxProductsPerCategory": { "type": "number", "minimum": 1, "maximum": 20000, "title": "Max products per category", "description": "Paging stops at this many, or when the category runs out. The deepest category measured holds 1,978 products and pages to the last one, so the default clears it.", "default": 2000 }, "maxProducts": { "type": "number", "minimum": 1, "maximum": 200000, "title": "Max products per run", "description": "Across every category together. The whole shippable catalogue is ~12,100 products, so the default does not bite on a full run. Hitting it ends the run with a truncation warning.", "default": 25000 }, "shipItOnly": { "type": "boolean", "title": "Shippable items only", "description": "Applies the storefront’s ShipIt eligibility filter. Turning it off also returns warehouse-only and grocery-delivery items, which have no shippable price.", "default": true }, "pageSize": { "type": "number", "minimum": 1, "maximum": 200, "title": "Products per request", "description": "Verified 2026-09-03: 200 is honoured exactly, 201 already falls back to 24. Clamped for that reason.", "default": 200 }, "requestDelayMs": { "type": "number", "minimum": 0, "maximum": 60000, "title": "Delay between requests (ms)", "description": "Costco throttles by resetting the connection rather than returning a status code, so a run that suddenly reports fetch errors is usually going too fast.", "default": 750 }, "userLocation": { "type": "string", "maxLength": 2000, "title": "User state", "description": "Together with the postal code, decides regional pricing and availability.", "default": "NJ" }, "userPostal": { "type": "string", "maxLength": 2000, "title": "User postal code", "default": "07094" }, "locations": { "type": "array", "items": { "type": "string" }, "maxItems": 1000, "title": "Inventory nodes (Solr `loc`)", "description": "Which fulfilment nodes are joined onto each product. Trimming this changes which products come back and at what price — leave it alone unless you are deliberately re-targeting the run.", "default": [ "729-bd", "306-wh", "1260-3pl", "1321-wm", "1477-3pl", "283-wm", "561-wm", "725-wm", "731-wm", "758-wm", "759-wm", "847_0-cor", "847_0-cwt", "847_0-edi", "847_0-ehs", "847_0-membership", "847_0-mpt", "847_0-spc", "847_0-wm", "847_1-cwt", "847_1-edi", "847_d-fis", "847_lg_n1a-edi", "847_lux_us81-edi", "847_NA-cor", "847_NA-pharmacy", "847_NA-wm", "847_ss_u360-edi", "847_wp_r428-edi", "951-wm", "952-wm", "9847-wcs" ] }, "warehouse": { "type": "string", "maxLength": 2000, "title": "Reporting warehouse (`whloc`)", "default": "306-wh" }, "apiKey": { "type": "string", "maxLength": 2000, "title": "Search API key", "description": "The key costco.com ships to every browser. Set only if Costco rotates it; the environment variable is the better place for that.", "examples": [ "defaults to COSTCO_SEARCH_API_KEY, then the storefront’s public key" ] } }}Run, poll, read rows
The run is asynchronous. Poll it until it reaches a terminal status and its billing is paid, then page through its rows. Until then the rows endpoint answers 409 (still queued or running) or 402 (payment required).
RUN_ID=$(curl -s -X POST "https://api.pandorlabs.com/v1/scrapers/costco-products/runs" \ -H "Authorization: Bearer $PANDORLABS_KEY" \ -H "Content-Type: application/json" \ -d '{ "input": { "mode": "categories", "categoryUrls": [ "/laptops.html", "/cooktops.html" ], "maxCategories": 250, "maxProductsPerCategory": 2000 } }' | jq -r '.id')while true; do RUN=$(curl -s "https://api.pandorlabs.com/v1/runs/$RUN_ID" \ -H "Authorization: Bearer $PANDORLABS_KEY") STATUS=$(echo "$RUN" | jq -r '.status') BILLING=$(echo "$RUN" | jq -r '.billing.status') case "$STATUS" in queued|running) ;; *) [ "$BILLING" != "pending" ] && break ;; esac sleep 5doneecho "$RUN" | jq '{status, rowCount, billing}'curl -s "https://api.pandorlabs.com/v1/runs/$RUN_ID/rows?page=1&limit=100" \ -H "Authorization: Bearer $PANDORLABS_KEY"See the API reference for pagination, cancelling and listing runs.
Output fields
Rows have no fixed schema; these are the fields observed in the rows collected so far. Coverage is the share of rows where the field is present.
| Field | Type | Coverage |
|---|---|---|
| availability | string | 100% |
| badges | array | 100% |
| brand | string | 87% |
| buyable | boolean | 100% |
| category | string | 100% |
| categoryPaths | array | 100% |
| colors | array | 100% |
| createdAt | date | 100% |
| currency | string | 100% |
| deliveryStatus | string | 100% |
| description | string | 100% |
| discountedPrice | number | 9% |
| fsaEligible | boolean | 100% |
| fulfillment | array | 100% |
| fulfillmentLocation | string | 95% |
| groupId | string | 100% |
| hasVariants | boolean | 100% |
| images | array | 100% |
| inStock | boolean | 100% |
| itemNumber | string | 100% |
| listedAt | date | 97% |
| marketplace | string | 100% |
| materials | array | 100% |
| maxQty | number | 100% |
| memberOnly | boolean | 100% |
| merchandisingKeywords | array | 100% |
| minQty | number | 100% |
| modelNumber | string | 37% |
| name | string | 100% |
| price | number | 100% |
| priceInCartOnly | boolean | 100% |
| priceMax | number | 100% |
| priceMin | number | 100% |
| pricePerUnit | number | 100% |
| promotion | string | 26% |
| promotions | array | 100% |
| rating | number | 91% |
| reviewCount | number | 100% |
| specs | object | 100% |
| stockStatus | string | 95% |
| subCategory | string | 100% |
| subSubCategory | string | 89% |
| upcs | array | 100% |
| updatedAt | date | 100% |
| warehousePrice | number | 23% |
| warehouseStockStatus | string | 17% |
| created_at | date | 100% |
| updated_at | date | 100% |
| _id | string | 100% |
