For the complete documentation index, see llms.txt. This page is also available as Markdown.

Bodega Aurrerá

Learn how to start scraping Bodega Aurrerá.

With Web Scraper API, you can scrape various types of Bodega Aurrerá 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.

Source
Description

bodegaaurrera_search

Search page for a search term of your choice.

bodegaaurrera_product

Product page of a product ID of your choice.

Any other Bodega Aurrerá page can be scraped by passing its url alone, no source needed.

Besides the parameters listed below, you can include additional parameters such as user_agent_type, geo_location, render, and more to customize your scraping request. Read more here.

Request samples

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "bodegaaurrera_search",
        "query": "samsung s25"
    }'
import requests
from pprint import pprint

# Structure payload.
payload = {
    'source': 'bodegaaurrera_search',
    'query': 'samsung s25'
}

# 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

Parameter
Description
Default Value

source

Sets the scraper.

bodegaaurrera_search

query

The keyword or phrase to search for products.

-

subdomain, delivery_zip, store_id, fulfillment_type

Optional localization and availability filters, see Localization and Filtering.

-

- mandatory parameter

Product

Request samples

Request parameter values

Parameter
Description
Default Value

source

Sets the scraper.

bodegaaurrera_product

product_id

The 14-digit product ID at the end of the product page URL, e.g. bodegaaurrera.com.mx/ip/-/00880609585365.

-

subdomain, delivery_zip, store_id, fulfillment_type

Optional localization and availability filters, see Localization and Filtering.

-

- mandatory parameter

Localization and Filtering

Bodega Aurrerá runs two online stores: the general store at www.bodegaaurrera.com.mx and the grocery store at despensa.bodegaaurrera.com.mx. Store and delivery settings apply to the grocery store only, so pair them with subdomain: despensa.

Parameter
Applies to
Description
Default

subdomain

bodegaaurrera_search, bodegaaurrera_product

Store version. Available values: www (general store), despensa (grocery store).

www

delivery_zip

bodegaaurrera_search, bodegaaurrera_product

Mexican postal code, e.g. 44100. Selects the grocery store that serves that area. Applies with subdomain: despensa only.

-

store_id

bodegaaurrera_search, bodegaaurrera_product

ID of a grocery store, e.g. 5740. Applies with subdomain: despensa only. The available store IDs are listed in the file below.

-

fulfillment_type

bodegaaurrera_search, bodegaaurrera_product

Shows only items available for the chosen method at the selected store. Available values: pickup, delivery.

-

Without store_id or delivery_zip, a despensa request may be redirected by the site to the general store. An unknown store_id is not an error: the site falls back to its guest store or redirects to the general store.

Find the available Bodega Aurrerá store IDs below:

Last updated

Was this helpful?