Search
Learn how to collect Costco search results page data using the costco_search source with Web Scraper API.
The costco_search source is designed to retrieve Costco search result pages. We can return the HTML for any Costco page you like.
Request samples
The samples below illustrates how you can get a Costco search result.
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "costco_search",
"query": "tv"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'costco_search',
'query': 'tv'
}
# Get response.
response = requests.request(
'POST',
'https://realtime.oxylabs.io/v1/queries',
auth=('USERNAME', 'PASSWORD'),
json=payload,
)
# Instead of response with job status and results url, this will return the
# JSON response with the result.
pprint(response.json())We use synchronous Realtime integration method in our examples. If you would like to use Proxy Endpoint or asynchronous Push-Pull integration, refer to the integration methods section.
Request parameter values
Generic
source
Sets the scraper.
costco_search
query
The keyword or phrase to search for products.
-
domain
Domain localization options. Available values are:
com, ca, co.uk, com.au, com.mx, fr, co.jp, is, co.nz, co.kr, es, com.tw.
com
start_page
Starting page number.
1
- mandatory parameter
Last updated
Was this helpful?

