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

# Seller offers

> Get the seller offers Google Shopping lists for one product, by catalog ID or barcode.

Returns the sellers Google Shopping lists for one product: one entry per merchant `source`, each with its own `price` and `link`. Pass exactly one of `catalog_id` or `barcode`.

A call costs **25 credits**, whichever identifier you pass.

## Identifying the product

* **`catalog_id`**: Google's Shopping catalog identifier. A [Shopping search](https://docs.scrapebadger.com/api-reference/google/google-shopping/search-products.md) result carries it as `catalog_id` when Google ships it on that page, and a Google Shopping product URL carries it as `prds=catalogid:<id>`. The sellers are read from Google's product page, so there is no lookup step and no doubt about which product you get. Up to 60 offers come back, and `total_offers` says how many sellers Google lists.
* **`barcode`**: a GTIN-8, UPC-A, EAN-13 or GTIN-14. Google Shopping does not match raw barcodes, so the barcode is first resolved to a product through a Google web search. The match is returned as `resolved_query`, and the offers come from a Shopping search for it.

```bash cURL theme={null}
curl "https://scrapebadger.com/v1/google/shopping/offers?catalog_id=762120719996356571&gl=de&hl=de" \
  -H "x-api-key: YOUR_API_KEY"
```

## Offer fields

| Field | Description |
| - | - |
| `offers[].source` | The merchant name, for example `Walmart` or `Best Buy`. |
| `offers[].price` | `value`, `currency` and `extracted` (the price as Google shows it). |
| `offers[].link` | The merchant's product page URL, resolved from Google's redirect. If Google does not release the destination in time, it is Google's redirect (`https://www.google.com/goto?url=…`), which still opens the merchant page in a browser. |
| `offers[].delivery` | Shipping line as Google shows it. |
| `offers[].extensions` | Availability, shipping and returns lines. |

For a product's full detail (description, specs, images, variants) together with its merchant offers, use [Immersive product detail](https://docs.scrapebadger.com/api-reference/google/google-products/immersive-product-detail.md) with `include_offers=true`. The [Shopping offers guide](https://docs.scrapebadger.com/google/shopping-offers.md) has more examples.


## OpenAPI

````yaml GET /v1/google/shopping/offers
openapi: 3.1.0
info:
  title: ScrapeBadger Google Scraper
  description: >-
    Dedicated API for scraping Google products (SERP, Maps, News, Hotels,
    Trends, Jobs, Shopping, Patents, Scholar, Autocomplete, Images, Videos,
    Finance, AI Mode, Lens, Products).
  version: 1.0.0
servers:
  - url: https://scrapebadger.com
    description: Production
security:
  - apiKeyAuth: []
paths:
  /v1/google/shopping/offers:
    get:
      tags:
        - Google Shopping
      summary: Seller offers by barcode or catalog ID
      description: >-
        Get the seller offers Google Shopping lists for one product: one entry
        per merchant, each with its own price and link.


        Identify the product with exactly one of `catalog_id` or `barcode`:


        - `catalog_id` is Google's Shopping catalog identifier: the `catalog_id`
        field on a Shopping search result, or `prds=catalogid:<id>` in a Google
        Shopping product URL. The sellers are read from Google's product page,
        every page of sellers fetched in parallel, so up to 60 offers come back.

        - `barcode` is a GTIN-8, UPC-A, EAN-13 or GTIN-14. Google Shopping does
        not match raw barcodes, so the barcode is first resolved to a product
        through a Google web search (`resolved_query`), and the offers come from
        a Shopping search for that product.


        Credits: 25 per call, whichever identifier you pass.
      operationId: shopping_offers_api_v1_shopping_offers_get
      parameters:
        - name: barcode
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Product barcode: GTIN-8, UPC-A (12 digits), EAN-13 or GTIN-14. The
              check digit is validated. Exactly one of `barcode` / `catalog_id`
              is required.
            title: Barcode
            examples:
              - '0711719541028'
          description: >-
            Product barcode: GTIN-8, UPC-A (12 digits), EAN-13 or GTIN-14. The
            check digit is validated. Exactly one of `barcode` / `catalog_id` is
            required.
        - name: catalog_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Google Shopping catalog ID: the `catalog_id` on a Shopping search
              result, or `prds=catalogid:<id>` in a Google Shopping product URL.
              Digits only. Exactly one of `barcode` / `catalog_id` is required.
            title: Catalog Id
            examples:
              - '762120719996356571'
          description: >-
            Google Shopping catalog ID: the `catalog_id` on a Shopping search
            result, or `prds=catalogid:<id>` in a Google Shopping product URL.
            Digits only. Exactly one of `barcode` / `catalog_id` is required.
        - name: gl
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: >-
              Country code (ISO 3166-1 alpha-2), for example `us`, `de` or `au`.
              Sets which merchants and which currency you see. When omitted, the
              country follows `domain` (`us` for `google.com`).
            title: Gl
          description: >-
            Country code (ISO 3166-1 alpha-2), for example `us`, `de` or `au`.
            Sets which merchants and which currency you see. When omitted, the
            country follows `domain` (`us` for `google.com`).
        - name: hl
          in: query
          required: false
          schema:
            type: string
            description: Language code
            default: en
            title: Hl
          description: Language code
        - name: domain
          in: query
          required: false
          schema:
            type: string
            description: Google domain
            default: google.com
            title: Domain
          description: Google domain
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ShoppingOffersResponse'
        '400':
          description: Neither or both of `barcode` and `catalog_id` were passed.
        '404':
          description: >-
            The barcode did not resolve to a product, or Google lists no sellers
            for the catalog ID.
        '422':
          description: >-
            The barcode is malformed or fails its check digit, or `catalog_id`
            is not all digits.
        '502':
          description: Google did not return the product page. Not billed; retry.
components:
  schemas:
    ShoppingOffersResponse:
      properties:
        barcode:
          anyOf:
            - type: string
            - type: 'null'
          title: Barcode
          description: The normalised barcode that was looked up (barcode mode).
        catalog_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Catalog Id
          description: The catalog ID that was looked up (catalog mode).
        total_offers:
          anyOf:
            - type: integer
            - type: 'null'
          title: Total Offers
          description: Total sellers Google lists for the catalog entry (catalog mode).
        resolved_query:
          anyOf:
            - type: string
            - type: 'null'
          title: Resolved Query
          description: >-
            The product name the barcode resolved to through Google web search
            (barcode mode).
        product_title:
          anyOf:
            - type: string
            - type: 'null'
          title: Product Title
          description: Title of the matched product.
        offers:
          items:
            $ref: '#/components/schemas/ShoppingOffer'
          type: array
          title: Offers
          description: One entry per merchant.
      type: object
      title: ShoppingOffersResponse
      description: Response for GET /v1/google/shopping/offers.
    ShoppingOffer:
      properties:
        position:
          anyOf:
            - type: integer
            - type: 'null'
          title: Position
          description: Place of the offer in Google's seller list.
        title:
          type: string
          title: Title
          description: The product title as the merchant lists it.
        source:
          anyOf:
            - type: string
            - type: 'null'
          title: Source
          description: The merchant (seller) name, for example `Walmart` or `Best Buy`.
        price:
          anyOf:
            - $ref: '#/components/schemas/ShoppingPrice'
            - type: 'null'
          description: >-
            The merchant's price: `value`, `currency` and `extracted` (the price
            as Google shows it).
        extracted_price:
          anyOf:
            - type: number
            - type: 'null'
          title: Extracted Price
          description: Numeric price, the same as `price.value`.
        link:
          anyOf:
            - type: string
            - type: 'null'
          title: Link
          description: >-
            The merchant's product page URL, resolved from Google's redirect. If
            Google does not release the destination in time, Google's redirect
            URL (https://www.google.com/goto?url=...), which still opens the
            merchant page in a browser.
        delivery:
          anyOf:
            - type: string
            - type: 'null'
          title: Delivery
          description: Shipping line as Google shows it.
        extensions:
          items:
            type: string
          type: array
          title: Extensions
          description: Availability, shipping and returns lines Google shows for the offer.
        rating:
          anyOf:
            - type: number
            - type: 'null'
          title: Rating
          description: Product rating on that merchant, when Google shows one.
      type: object
      required:
        - title
      title: ShoppingOffer
      description: >-
        One merchant's offer for the product. In barcode mode an offer also
        carries the other fields of a Shopping search result (for example
        `thumbnail`, `product_id`, `gpcid`); fields Google does not show are
        `null`.
    ShoppingPrice:
      properties:
        value:
          anyOf:
            - type: number
            - type: 'null'
          title: Value
        currency:
          anyOf:
            - type: string
            - type: 'null'
          title: Currency
        extracted:
          anyOf:
            - type: string
            - type: 'null'
          title: Extracted
      type: object
      title: ShoppingPrice
      description: Product price.
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

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