Costco Warehouse Prices API returns the price of one item for up to two warehouses in one request. online_price is the warehouse price, delivered_price is the price with delivery. Warehouse 847 is the online price in the US, 894 in Canada.
This route takes the item number (item_numbers in the product answer), not the product id. Costs 1 credit per successful request.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
3 optional filters available.
string
Required
Item number from the product answer, 4 to 12 digits.
example
string
Optional
Up to 2 comma separated warehouse numbers (default: the main warehouse and the online price).
example
string
Optional
us (default) or ca. Selects costco.com or costco.ca.
US
string
Optional
en-US, en-CA or fr-CA. Canadian French works with country ca. Default is the English locale of the country.
en-US
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"prices": [
{
"currency": "USD",
"discount": 0,
"warehouse": "243",
"item_number": "2051888",
"online_price": 799.99,
"delivered_price": 799.99
},
{
"currency": "USD",
"discount": 0,
"warehouse": "847",
"item_number": "2051888",
"online_price": 799.99,
"delivered_price": 799.99
}
],
"country": "us",
"item_number": "2051888"
},
"meta": {
"credits": 1,
"billable": true,
"endpoint_family": "product_price"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required parameter or a value is invalid. This response is not billable.
{
"errors": {
"query": [
"A search text is required, e.g. laptop."
]
},
"message": "The request validation failed"
}Not Found
The product, item or warehouse does not exist. This response is not billable.
{
"meta": {
"billable": false,
"retryable": false,
"endpoint_family": "product_price"
},
"error": {
"code": "NOT_FOUND",
"message": "The requested resource was not found."
},
"success": false
}Upstream Unavailable
Costco could not be reached after several tries. This response is not billable. Retry shortly.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "product_price"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "Costco could not be reached. Please retry shortly."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.