curl --request POST \
--url https://api.scrapeunblocker.com/marketplace/costco-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/marketplace/costco-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/marketplace/costco-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Scrape Costco product search
Searches Costco (costco.com, or costco.ca with domain=ca) for query and returns products: productId, itemNumber, title, brand, url, image, price (and priceMax for a price range), wasPrice, currency, promotions, marketingStatement, rating, reviewCount, memberOnly, onlineOnly, warehouseOnly, badges, availability, inWarehouse, shipIt, buyableOnline, priceShownInCartOnly, model, features, category, categoryPath and variantCount, plus totalResults. A keyword Costco sends to a category page (e.g. ‘tv’) returns that category, named in redirectedTo. availability is for the delivery location in deliveryLocation. Sort with sort, start at page and collect up to max_results.
curl --request POST \
--url https://api.scrapeunblocker.com/marketplace/costco-search \
--header 'x-scrapeunblocker-key: <api-key>'import requests
url = "https://api.scrapeunblocker.com/marketplace/costco-search"
headers = {"x-scrapeunblocker-key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {'x-scrapeunblocker-key': '<api-key>'}};
fetch('https://api.scrapeunblocker.com/marketplace/costco-search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Your ScrapeUnblocker API key. Apply on every request.
Query Parameters
What to search for, e.g. 'paper towels', 'kirkland coffee' or 'tv'.
Result order: relevance, price_low, price_high, rating, newest, brand.
1-based results page to start from (24 products per page, as on costco.com).
Products to collect from page on, 1-240. Up to 120 are billed as one request.
Also return products that are out of stock (Costco hides them by default).
Costco storefront: com, ca ('com' is costco.com, 'ca' is costco.ca).
Proxy country the request is sent from (ISO-2, e.g. 'US'). Leave blank to let the API pick. Costco computes availability for the delivery location it derives from the visitor; it is named in deliveryLocation.
Response
JSON with a products array. A search with no matches answers 200 with an empty products list.

