Skip to main content

Walmart Category API

The Walmart Category API is a REST API that allows you to access data from Walmart category pages using the walmart/category endpoint.

You can query the API by passing in the category_id of the category you want to scrape.

curl -GET "https://proxy.scrapeops.io/v1/structured-data/walmart/category?api_key=YOUR_API_KEY&category_id=1007039&country=us"

Or you can pass in the url of the category page you want to scrape (make sure to encode the URL).

curl -GET "https://proxy.scrapeops.io/v1/structured-data/walmart/category?api_key=YOUR_API_KEY&url=https%3A%2F%2Fwww.walmart.com%2Fbrowse%2Felectronics%2F1007039"

Authorisation - API Key

To use the ScrapeOps proxy, you first need an API key which you can get by signing up for a free account here.

Your API key must be included with every request using the api_key query parameter otherwise the API will return a 403 Forbidden Access status code.


API Parameters

The following parameters are available for the Walmart Category API:

ParameterDescription
api_keyRequired. The API key to use for the request.
category_idThe Walmart Category ID of the category you want to scrape.
urlThe URL of the category page you want to scrape. If a URL is provided, the URL will take priority over the category_id.
countryThe 2 letter country code of the where you want the category data to be scraped from. Example: us, ca, mx, etc.
tldThe Walmart domains to scrape from. Example: com, ca, com.mx, etc.

The below table outlines the valid TLDs for Walmart domains.

TLDWalmart Domain
comwalmart.com
cawalmart.ca
com.mxwalmart.com.mx
clwalmart.cl
com.brwalmart.com.br