> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scrapeunblocker.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scrape Bodega Aurrera (Mexico) product search

> Searches Bodega Aurrera (bodegaaurrera.com.mx, Walmart de Mexico) for `query` and returns `products`, each with `position`, `productId`, `name`, `brand`, `url`, `price` (MXN), `wasPrice` and `savings` (only on a promotion), `unitPrice`, `priceRange`, `rating`, `reviewCount`, `availability` / `availabilityText` / `inStock`, `seller` / `sellerType`, `salesUnit`, `department`, `category` (path), `badges`, `fulfillment` (pickup / delivery labels), `sponsored` and `image`. Also `totalResults`, `storeId` (the store the prices and availability are for: the one the storefront assigns a new visitor - a store or postal code cannot be chosen) and `nextPage`. Sort with `sort` (relevance, price_low, price_high), start at `page` and collect up to `max_results` across pages (about 40 per page, each page billed as one request, see `pagesFetched`). `url` takes a Bodega Aurrera search link instead of `query`. A results page usually takes 1-3 s; a page that has to be rendered in a browser takes 20-60 s.



## OpenAPI

````yaml /api-reference/openapi.json post /groceries/bodegaaurrera-search
openapi: 3.1.0
info:
  title: ScrapeUnblocker API
  description: >-
    Public API for the ScrapeUnblocker proxy/anti-bot service. Authenticate
    every request with the `x-scrapeunblocker-key` header. Documented here:
    page-source extraction, Google SERP scraping, image fetch, and the dedicated
    plugin endpoints (search engines, marketplaces, reviews, travel, social and
    more). All other paths exist for internal operations and are intentionally
    hidden from this spec.
  version: 3.0.0
servers:
  - url: https://api.scrapeunblocker.com
    description: Production
security: []
paths:
  /groceries/bodegaaurrera-search:
    post:
      tags:
        - Plugins
      summary: Scrape Bodega Aurrera (Mexico) product search
      description: >-
        Searches Bodega Aurrera (bodegaaurrera.com.mx, Walmart de Mexico) for
        `query` and returns `products`, each with `position`, `productId`,
        `name`, `brand`, `url`, `price` (MXN), `wasPrice` and `savings` (only on
        a promotion), `unitPrice`, `priceRange`, `rating`, `reviewCount`,
        `availability` / `availabilityText` / `inStock`, `seller` /
        `sellerType`, `salesUnit`, `department`, `category` (path), `badges`,
        `fulfillment` (pickup / delivery labels), `sponsored` and `image`. Also
        `totalResults`, `storeId` (the store the prices and availability are
        for: the one the storefront assigns a new visitor - a store or postal
        code cannot be chosen) and `nextPage`. Sort with `sort` (relevance,
        price_low, price_high), start at `page` and collect up to `max_results`
        across pages (about 40 per page, each page billed as one request, see
        `pagesFetched`). `url` takes a Bodega Aurrera search link instead of
        `query`. A results page usually takes 1-3 s; a page that has to be
        rendered in a browser takes 20-60 s.
      operationId: bodega_search_groceries_bodegaaurrera_search_post
      parameters:
        - name: query
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: What to search, e.g. 'leche', 'arroz', 'detergente' or 'pañales'.
            title: Query
          description: What to search, e.g. 'leche', 'arroz', 'detergente' or 'pañales'.
        - name: sort
          in: query
          required: false
          schema:
            type: string
            description: 'Order: relevance, price_low, price_high.'
            default: relevance
            title: Sort
          description: 'Order: relevance, price_low, price_high.'
        - name: page
          in: query
          required: false
          schema:
            type: integer
            description: 1-based results page to start from (1-25).
            default: 1
            title: Page
          description: 1-based results page to start from (1-25).
        - name: max_results
          in: query
          required: false
          schema:
            type: integer
            description: >-
              Products to collect across pages (1-220); about 44 per page, and
              each page read is billed as one request.
            default: 44
            title: Max Results
          description: >-
            Products to collect across pages (1-220); about 44 per page, and
            each page read is billed as one request.
        - name: url
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Instead of `query`: a Bodega Aurrera search link, e.g.
              https://www.bodegaaurrera.com.mx/search?q=leche (its sort and page
              are used).
            title: Url
          description: >-
            Instead of `query`: a Bodega Aurrera search link, e.g.
            https://www.bodegaaurrera.com.mx/search?q=leche (its sort and page
            are used).
      responses:
        '200':
          description: JSON with a `products` array plus paging totals.
          content:
            application/json:
              schema: {}
        '400':
          description: Invalid parameters.
        '404':
          description: >-
            Bodega Aurrera found no products for this search, or sends the
            keyword to a category page without a results list.
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '502':
          description: >-
            Blocked by the bot check on every attempt, no results page returned,
            or the call did not finish in time.
      security:
        - ScrapeUnblockerKey: []
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ScrapeUnblockerKey:
      type: apiKey
      in: header
      name: x-scrapeunblocker-key
      description: Your ScrapeUnblocker API key. Apply on every request.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.