Product
See how to scrape Menards product pages by product ID.
The menards_product source is designed to retrieve Menards product pages. The API returns the HTML for any Menards product you like.
Currently, our API only provides HTML output for this page type. However, 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 a Menards product page.
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "menards_product",
"product_id": "1642874368501448"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'menards_product',
'product_id': '1642874368501448'
}
# 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
- mandatory parameter
Localization
Adapt results based on store locations.
store_id
Specify a store ID. For example, 3045 from the store's URL: /store.html?store=3045.
-
String
Last updated
Was this helpful?

