URL
Scrape any Walmart URL of your choice.
The walmart source is designed to retrieve the content of direct URLs of various Walmart pages. Instead of sending multiple parameters, you can provide us with a direct URL for the required Walmart page. We do not strip any parameters or alter your URLs in any other way.
Parsing is limited to search pages and product pages.
For other page types, we can return the HTML content. You can easily build your own parser if you would like to get JSON-structured data.
Request samples
The samples below illustrate how you can get Walmart pages.
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "walmart",
"url": "https://www.walmart.com/cp/new-arrivals/2593086"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'walmart',
'url': 'https://www.walmart.com/cp/new-arrivals/2593086'
}
# 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.
walmart
url
Direct URL (link) to any page.
-
- mandatory parameter
Last updated
Was this helpful?

