Costco Search API Documentation
The Costco Search API returns the products Costco lists for a search on its online stores in the United States, Canada, the United Kingdom, Mexico, Australia, Japan, South Korea, Taiwan, Iceland and New Zealand. Results come with the Costco product code, title and link, and, where Costco shows them, the image, price, saving, rating, review count, the promotions running, such as a reduction applied at checkout, and the labels it shows, such as Online Only. Outside the United States and Canada, results also carry the price per unit, the highlights on the product's card and its purchase minimum and limit, sold-out products and products whose card offers more options, such as colour swatches, are flagged, and the sites that show them add the energy grade and the English title.
Prices are in the site's currency, as Costco shows them and as numbers. Some products show their price only to signed-in members, and is_price_hidden marks them. Outside the United States and Canada, products Costco sells only in its warehouses carry is_warehouse_only. A price Costco hides from signed-out visitors is left out, with its saving and promotions. The response also lists the filters Costco offers for the search, and each option carries a filter_value to send back in filters.
On costco.com and costco.ca, prices and stock are the ones Costco shows a shopper without a chosen location, in Seattle, WA and in Toronto, ON. A keyword for which these sites open a category page, such as tv, returns that category's products, and one they send to a brand page or another Costco service, such as samsung or tires, returns no products, with or without filters. Results on costco.ca are in English, except for a keyword it sends to one of its French pages, such as laveuse et sécheuse. On the other sites the results are those of Costco's product search, and for some keywords the Costco website opens a category page whose list can differ. On every site, search_information.redirect_link is the page the Costco website opens for such a keyword.
API Parameters
Search Query
-
- Name
-
q - Required
- Required
- Description
-
Parameter defines the text you want to search for, up to 200 characters. Costco refuses some text, such as script tags or code. The search then returns an
errorand costs a credit.
Localization
-
- Name
-
costco_domain - Required
- Required
- Description
-
Parameter defines the Costco site to search, which sets the products, the language and the currency. Supported values are
costco.co.uk,costco.com.mx,costco.com.au,costco.co.jp,costco.co.kr,costco.com.tw,costco.is,costco.co.nz,costco.com, andcostco.ca.costco.comandcostco.cashow the prices and stock Costco shows a shopper without a chosen location, in Seattle, WA and in Toronto, ON.
Filters
-
- Name
-
filters - Required
- Optional
- Description
-
Parameter defines the filters to apply, comma-separated, each a
filter_valuefrom thefiltersof an earlier response, such asbrand:Samsung,screenTechnology:QLED, orbrands:Kirkland Signature,price:25-50oncostco.comandcostco.ca. Values of one filter widen the results, and values of different filters narrow them. Oncostco.comandcostco.ca,priceandratingtake one value each. Up to 10 values. A filter Costco does not offer for the search returns an error.
Sorting
-
- Name
-
sort_by - Required
- Optional
- Description
-
Parameter defines how the results are sorted. Options are:
best_match- Costco's own order (default)price_low_to_high- lowest price firstprice_high_to_low- highest price firstrating_high_to_low- highest rating firstrating_low_to_high- lowest rating firstbest_selling- most sold firstname_a_to_z- product name from A to Zname_z_to_a- product name from Z to Anewest- newest products first
costco.com.tw. Each site offers its own sorts, and another sort returns a 400 error:costco.co.uk:best_match,price_low_to_high,price_high_to_low,rating_high_to_low,rating_low_to_high,best_selling,name_a_to_z, andname_z_to_acostco.com.mx:best_match,price_low_to_high,price_high_to_low,rating_high_to_low,rating_low_to_high,name_a_to_z, andname_z_to_acostco.com.au:best_match,price_low_to_high,price_high_to_low,rating_high_to_low,best_selling,name_a_to_z, andname_z_to_acostco.co.jp:best_match,price_low_to_high,price_high_to_low,rating_high_to_low, andbest_sellingcostco.co.kr:best_match,price_low_to_high,price_high_to_low,rating_high_to_low,rating_low_to_high,name_a_to_z, andname_z_to_acostco.com.tw:best_match,price_low_to_high, andprice_high_to_lowcostco.is:best_match,price_low_to_high,price_high_to_low,rating_high_to_low,rating_low_to_high,best_selling,name_a_to_z, andname_z_to_acostco.co.nz:best_match,price_low_to_high,price_high_to_low,name_a_to_z, andname_z_to_acostco.com:best_match,price_low_to_high,price_high_to_low,rating_high_to_low, andnewestcostco.ca:best_match,price_low_to_high,price_high_to_low,rating_high_to_low, andnewest
Pagination
-
- Name
-
page - Required
- Optional
- Description
-
Parameter defines the page of results, from 1 to 500, with 24 products a page. The last page is the one whose
paginationhas nonext. Costco'sbest_matchorder can shift between pages, so a product can appear on two pages.
Engine
-
- Name
-
engine - Required
- Required
- Description
-
Parameter defines an engine that will be used to retrieve real-time data. It must be set to
costco_search.
API key
-
- Name
-
api_key - Required
- Required
- Description
-
The
api_keyauthenticates your requests. Use it as a query parameter (https://www.searchapi.io/api/v1/search?api_key=YOUR_API_KEY) or in the Authorization header (Bearer YOUR_API_KEY).
Zero Data Retention
-
- Name
-
zero_retention - Enterprise Only
- Enterprise Only
- Required
- Optional
- Description
-
Set this parameter to
trueto disable all logging and persistent storage. No request parameters, HTML, or JSON responses are stored or logged. Suitable for high-compliance use cases. Debugging and support may be limited while enabled.
API Examples
Full Response
https://www.searchapi.io/api/v1/search?costco_domain=costco.co.uk&engine=costco_search&q=samsung+tv
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "costco_search",
"q": "samsung tv",
"costco_domain": "costco.co.uk"
}
response = requests.get(url, params=params)
print(response.text)
{
"search_metadata": {
"id": "search_MJQGykEzoKXOSK73aB6bl2NK",
"status": "Success",
"created_at": "2026-11-22T08:35:06Z",
"request_time_taken": 0.87,
"parsing_time_taken": 0.01,
"total_time_taken": 0.88,
"request_url": "https://www.costco.co.uk/search?q=samsung+tv%3Arelevance",
"html_url": "https://www.searchapi.io/api/v1/searches/search_MJQGykEzoKXOSK73aB6bl2NK.html",
"json_url": "https://www.searchapi.io/api/v1/searches/search_MJQGykEzoKXOSK73aB6bl2NK"
},
"search_parameters": {
"engine": "costco_search",
"q": "samsung tv",
"costco_domain": "costco.co.uk"
},
"search_information": {
"query_displayed": "samsung tv",
"total_results": 30,
"currency": "GBP"
},
"organic_results": [
{
"position": 1,
"product_id": "656011",
"title": "Samsung QE55S93HAEXXU 55 Inch OLED 4K Ultra HD Smart TV",
"link": "https://www.costco.co.uk/TVs-Electronics-Security/Televisions-Projectors/Televisions/Samsung-QE55S93...",
"thumbnail": "https://www.costco.co.uk/medias/sys_master/images/h4a/h9e/471695120007198.jpg",
"price": "£1,099.99",
"extracted_price": 1099.99,
"rating": 5.0,
"reviews": 1,
"promotions": [
"A further £130 reduction automatically applied at checkout"
],
"highlights": [
"NQ4 AI Gen3 Processor",
"Object Tracking Sound Lite & Dolby Atmos®",
"Motion Xcelerator 165Hz",
"..."
],
"energy_rating": "G",
"information_sheet_link": "https://www.costco.co.uk/medias/sys_master/pdf/he6/h21/471492105404446.pdf",
"is_price_hidden": false,
"is_warehouse_only": false,
"is_out_of_stock": false,
"has_variants": false,
"has_membership_restrictions": false,
"has_shipping_restrictions": false,
"is_free_shipping": true
},
"..."
],
"filters": [
{
"type": "Category",
"options": [
{
"text": "Televisions",
"items": 30,
"filter_value": "category:cos_1.1.1",
"is_selected": false
}
]
},
"..."
],
"pagination": {
"current": 1,
"next": 2,
"total_pages": 2
}
}
Highest Price First with a Filter
https://www.searchapi.io/api/v1/search?costco_domain=costco.co.uk&engine=costco_search&filters=type%3ACoffee&q=coffee&sort_by=price_high_to_low
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "costco_search",
"q": "coffee",
"costco_domain": "costco.co.uk",
"sort_by": "price_high_to_low",
"filters": "type:Coffee"
}
response = requests.get(url, params=params)
print(response.text)
{
"organic_results": [
{
"position": 1,
"product_id": "632035",
"title": "TrueStart Barista Grade Instant Coffee Sticks, 4 x 200 x 2g",
"link": "https://www.costco.co.uk/Grocery-Household/Tea-Coffee-Hot-Drinks/Tea-Coffee/TrueStart-Barista-Grade-...",
"thumbnail": "https://www.costco.co.uk/medias/sys_master/images/h5e/h1e/432099468967966.jpg",
"price": "£69.99",
"extracted_price": 69.99,
"unit_price": "£43.75 per kg",
"extracted_unit_price": 43.75,
"unit": "kg",
"max_quantity": 4,
"highlights": [
"100% Arabica Freeze-Dried Premium Coffee",
"Rich Smooth Taste",
"Mixes Hot or Cold"
],
"is_price_hidden": false,
"is_warehouse_only": false,
"is_out_of_stock": false,
"has_variants": false,
"has_membership_restrictions": false,
"has_shipping_restrictions": false,
"is_free_shipping": true
},
"..."
]
}
Costco United States
https://www.searchapi.io/api/v1/search?costco_domain=costco.com&engine=costco_search&q=paper+towels
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "costco_search",
"q": "paper towels",
"costco_domain": "costco.com"
}
response = requests.get(url, params=params)
print(response.text)
{
"organic_results": [
{
"position": 1,
"product_id": "100234271",
"title": "Kirkland Signature Paper Towels, 2-Ply, 160 Sheets, 12 Individually Wrapped Rolls",
"link": "https://www.costco.com/p/-/kirkland-signature-paper-towels-2-ply-160-sheets-12-individually-wrapped-rolls/100234271",
"thumbnail": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:742eba68-7706-48b1-b5c9-9730e77a7910/as/100234271-847__1.avif?width=350&height=350&fit=contain",
"price": "$23.99",
"extracted_price": 23.99,
"rating": 4.8096,
"reviews": 41687,
"is_price_hidden": false
},
{
"position": 2,
"product_id": "4000346087",
"title": "Bounty Advanced Paper Towels, 2-Ply, 103 Sheets, 12-count",
"link": "https://www.costco.com/p/-/bounty-advanced-paper-towels-2-ply-103-sheets-12-count/4000346087",
"thumbnail": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:8af70991-77d3-4a34-8962-76191759ecb3/as/4000346087-847__1.avif?width=350&height=350&fit=contain",
"price": "$27.39",
"extracted_price": 27.39,
"original_price": "$32.99",
"extracted_original_price": 32.99,
"savings": "$5.60",
"extracted_savings": 5.6,
"rating": 4.7855,
"reviews": 2429,
"promotions": [
"$5.60 OFF"
],
"badges": [
"Black Friday Deal"
],
"is_price_hidden": false
},
"..."
]
}
Costco Canada with a Brand Filter
https://www.searchapi.io/api/v1/search?costco_domain=costco.ca&engine=costco_search&filters=brands%3AKirkland+Signature&q=coffee
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "costco_search",
"q": "coffee",
"costco_domain": "costco.ca",
"filters": "brands:Kirkland Signature"
}
response = requests.get(url, params=params)
print(response.text)
{
"organic_results": [
{
"position": 1,
"product_id": "4000145876",
"title": "Kirkland Signature Organic Breakfast Blend Fair Trade Coffee K-Cup Pods, 120-count",
"link": "https://www.costco.ca/p/-/kirkland-signature-organic-breakfast-blend-fair-trade-coffee-k-cup-pods-120-count/4000145876",
"thumbnail": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:99d71504-b339-4a48-8d97-44069229221a/as/4272377-894__1.avif?width=350&height=350&fit=contain",
"price": "$49.99",
"extracted_price": 49.99,
"rating": 4.6943,
"reviews": 566,
"is_price_hidden": false
},
{
"position": 2,
"product_id": "4000145861",
"title": "Kirkland Signature Organic Pacific Bold Fair Trade Coffee K-Cup Pods, 120-count",
"link": "https://www.costco.ca/p/-/kirkland-signature-organic-pacific-bold-fair-trade-coffee-k-cup-pods-120-count/4000145861",
"thumbnail": "https://gdx-assets.costco.com/adobe/assets/urn:aaid:aem:58aaf115-78d5-447a-b08a-63695f611f29/as/4272378-894__1.avif?width=350&height=350&fit=contain",
"price": "$49.99",
"extracted_price": 49.99,
"rating": 4.6875,
"reviews": 656,
"is_price_hidden": false
},
"..."
]
}
Costco South Korea
https://www.searchapi.io/api/v1/search?costco_domain=costco.co.kr&engine=costco_search&q=tv
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "costco_search",
"q": "tv",
"costco_domain": "costco.co.kr"
}
response = requests.get(url, params=params)
print(response.text)
{
"organic_results": [
{
"position": 1,
"product_id": "648137",
"title": "핀란디아 루비스 TV 장식장",
"english_title": "Finlandia Lubis High Cabinet TV Stand",
"link": "https://www.costco.co.kr/FurnitureBeddingHome/Living-Room/Living-Room-Furniture/Finlandia-Lubis-High...",
"thumbnail": "https://www.costco.co.kr/medias/sys_master/images/h0f/h93/81960062877726.jpg",
"price": "639,000원",
"extracted_price": 639000.0,
"rating": 4.7,
"reviews": 29,
"is_price_hidden": false,
"is_warehouse_only": false,
"is_out_of_stock": false,
"has_variants": true,
"has_membership_restrictions": false,
"has_shipping_restrictions": false,
"is_free_shipping": true
},
"..."
]
}
Savings in Mexico
https://www.searchapi.io/api/v1/search?costco_domain=costco.com.mx&engine=costco_search&q=pantalla
- Python
- Node
- Ruby
- Java
- Go
- PHP
- Bash
- R
- Kotlin
- Swift
- C#
- C
- C++
- requests
import requests
url = "https://www.searchapi.io/api/v1/search"
params = {
"engine": "costco_search",
"q": "pantalla",
"costco_domain": "costco.com.mx"
}
response = requests.get(url, params=params)
print(response.text)
{
"organic_results": [
{
"position": 1,
"product_id": "682807",
"title": "Blackrock Onix Soporte de Pantalla de 40\" a 75\"",
"link": "https://www.costco.com.mx/Electronicos/Pantallas-y-Proyectores/Soporte-para-Pantallas/Blackrock-Onix...",
"thumbnail": "https://www.costco.com.mx/medias/sys_master/products/h2f/h5b/189901911883806.jpg",
"price": "$764.15",
"extracted_price": 764.15,
"original_price": "$899.00",
"extracted_original_price": 899.0,
"savings": "$134.85",
"extracted_savings": 134.85,
"savings_ends_at": "2026-11-23T05:59:59.999Z",
"rating": 4.7,
"reviews": 12,
"is_price_hidden": false,
"is_warehouse_only": false,
"is_out_of_stock": false,
"has_variants": false,
"has_membership_restrictions": false,
"has_shipping_restrictions": false,
"is_free_shipping": true
},
"..."
]
}