URL
Learn how to get data from any Petco URL using the Web Scraper API. Find out more about its request parameters and see an example request.
Request samples
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "petco",
"url": "https://www.petco.com/shop/en/petcostore/product/pro-plan-savor-shredded-blend-beef-and-rice-adult-dog-food",
"render": "html"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'petco',
'url': 'https://www.petco.com/shop/en/petcostore/product/pro-plan-savor-shredded-blend-beef-and-rice-adult-dog-food'
'render': 'html'
}
# 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())Request parameter values
Generic
Parameter
Description
Default Value
Localization
Parameter
Description
Type
Last updated
Was this helpful?

