Costco API endpoint
Returns a Costco product's detail: title, description, manufacturer, image, price, stock status, and rating. Public data sourced from Costco's own product backend.
/costco/product/{id}Path parameters:
id (required) — a Costco product id, e.g. from a
/costco/search result's id field, or a product
page URL's .product.<id>.html segment.Notable response behavior:
description is Costco's own long-form description field for the
product; for many products this is legal/compliance boilerplate (e.g.
a California Prop 65 warning) rather than marketing copy — treat it as
supplementary, not guaranteed to be useful prose.buyable reflects Costco's own purchase-eligibility flag for the
product, independent of rating/rating_count.membership_required is true for a small number of products that
require an active Costco membership to purchase online.id returns 404.id returns 400 before any upstream request is made.| Field | In the sample | Value in the sample |
|---|---|---|
| id | Has a value | |
| title | Has a value | 102 characters |
| description | Has a value | 753 characters |
| manufacturer | Has a value | “LG ELECTRONICS USA INC” |
| image_url | Has a value | gdx-assets.costco.com |
| price | Has a value | 1,399.99 |
| buyable | Has a value | true |
| rating | Has a value | 4.43 |
| rating_count | Has a value | 479 |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| id (path) | string | Yes | Costco product id, e.g. from a search result's id field or a product page URL's \ | 4000103922 | |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/costco/product/4000103922" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"id": "4000103922",
"title": "LG 26 cu. ft. Smart Mirror InstaView Counter-Depth MAX French Door Refrigerator with Four Types of Ice",
"manufacturer": "LG ELECTRONICS USA INC",
"image_url": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:941ed14a-3b6f-48af-a0b3-a354e55869a2/as/4000103922-847__1.avif",
"price": 1399.99,
"buyable": true,
"rating": 4.44,
"rating_count": 477
}
}Request schema
No body schema
Response schema
#/definitions/costco.productResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | costco.Product | No | ||||
| data.buyable | boolean | No | Whether Costco marks the product as eligible for purchase. | |||
| data.description | string | No | Long-form product description from Costco, which for some products is mostly legal notices. | |||
| data.id | string | No | Costco product id. | |||
| data.image_url | string | No | URL of the main product image. | |||
| data.list_price | number | No | List price of the product as listed by Costco. | |||
| data.manufacturer | string | No | Name of the product's manufacturer. | |||
| data.membership_required | boolean | No | Whether buying the product online requires a Costco membership. | |||
| data.price | number | No | Current selling price of the product as listed by Costco. | |||
| data.rating | number | No | Average customer rating of the product. | |||
| data.rating_count | integer | No | Number of customer ratings the product has received. | |||
| data.title | string | No | Product title as shown on Costco. | |||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Bad Request | #/definitions/app.Response |
| 404 | Not Found | #/definitions/app.Response |
| 500 | Internal Server Error | #/definitions/app.Response |
| 503 | Service Unavailable | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/costco/product/4000103922" \
-H "x-api-key: $CRAWLORA_API_KEY"