Menards
Learn how to start scraping Menards.
With Web Scraper API, you can scrape various types of Menards pages; below is an overview of all supported scrapers and their respective source values. The response returns the page HTML in content, in the standard response structure described in Realtime and Push-Pull.
menards_search
Search page for a search term of your choice.
menards_product
Product page of a product ID of your choice.
Any other Menards page can be scraped by passing its url alone, no source needed.
Search
Request samples
curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
"source": "menards_search",
"query": "shower"
}'import requests
from pprint import pprint
# Structure payload.
payload = {
'source': 'menards_search',
'query': 'shower'
}
# 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
source
Sets the scraper.
menards_search
query
The keyword or phrase to search for products.
-
start_page
Starting page number.
1
store_id, pickup_at_store_eligible, in_stock_today, fulfillment_center, delivery_eligible
Optional localization and availability filters, see Localization and Filtering.
-
- mandatory parameter
Product
Request samples
Request parameter values
source
Sets the scraper.
menards_product
product_id
The numeric product ID from the product page URL, the digits after p-, e.g. menards.com/main/…/p-1642874368501448-c-19565.htm.
-
- mandatory parameter
Localization and Filtering
store_id
menards_search, menards_product
Store number as a string, taken from the store's page URL on menards.com, e.g. "3045" from /store.html?store=3045. Prices and availability are shown for that store.
-
pickup_at_store_eligible
menards_search
Set to true to show only products available for pickup at the store.
-
in_stock_today
menards_search
Set to true to show only products in stock today.
-
fulfillment_center
menards_search
Set to true to show only products shipped from a Menards fulfillment center.
-
delivery_eligible
menards_search
Set to true to show only products eligible for home delivery.
-
The four filters accept true only; leave a filter out to turn it off.
Last updated
Was this helpful?