Scrapingdog

Google Shopping Scraper API

The Google Shopping API lets you scrape shopping results without dealing with proxy rotation or data parsing. Fast, reliable, and each successful request costs 10 credits.

Endpoint: https://api.scrapingdog.com/google_shopping

API Parameters

πŸ”‘

Authentication

  • api_key Required
    Your personal API key. Available on your dashboard.

    Type: String
πŸ”—

Request Parameters

  • query Required
    This can be any Google query or a complete Google URL. Example: query=shoes
  • country Optional
    Specifies the country for the Google Shopping search using a two-letter country code (e.g., us, uk, fr). Default: us. For a full list, see the Google Country Parameter.

    Type: String
  • page Optional
    This is the page number of Google searches. Its value can be 0 for the first page, 1 for the second page, and so on.

    Default Value - 0

    Type - String
  • domain Optional
    To obtain local results from a specific country, for example, for India, it will be "google.co.in," and for the UK, it will be "google.co.uk".

    Type: String

    Default: google.com
  • language Optional
    Language of the results. Possible Values - en, es, fr, de, etc.

    Default Value - en

    Type - String
  • lr Optional
    Limit the search to one or multiple languages.

    It is used as lang_{language code}.

    For example - "lang_us"

    Type: String
  • shoprs Optional
    This parameter specifies the helper ID used to apply search filters. To ensure filters work correctly, it must be used together with the updated q parameter, which includes the name of the selected filter alongside your original query.

    Example:
    • Original query: Coffee
    • After applying the "Sugar Free" filter: sugar free Coffee
    To apply a filter, use the scrapingdog_link found in the JSON response at filters[index].options[index].scrapingdog_link.

    To apply multiple filters, follow each filter's scrapingdog_link individually. Each subsequent request will retain the previously applied filters along with the newly added one. To remove a filter, use its associated scrapingdog_link.
  • uule Optional
    It is a parameter that specifies the geographic location or locale for which the search results should be tailored. Possible Value could be w+CAIQIFJlbGF5IFN0YXRlcw==

    Type - String
  • tbs Optional
    to be searched - An advanced parameter to filter search results.

    Type: String
  • safe Optional
    To filter the adult content set safe to active or to disable it set off.

    Type: String [active/off]

    Default: off
  • nfpr Optional
    It can be set to 1 to exclude these results or 0 to include them.

    Type: Boolean

    Default: 0 It excludes the result from an auto-corrected query that is spelled wrong.
  • html Optional
    To render the response as raw HTML.

    Type: Boolean

    Default: false

API Examples

Code to Integrate
curl "https://api.scrapingdog.com/google_shopping?api_key=APIKEY&query=shoes&country=us"
API Response
{
  "filters": [
    {
      "type": "Price",
      "options": [
        {"text": "Up to $10", "tbs": "mr:1,price:1,ppr_max:10"},
        {"text": "$10 – $25", "tbs": "mr:1,price:1,ppr_min:10,ppr_max:25"},
        {"text": "$25 – $50", "tbs": "mr:1,price:1,ppr_min:25,ppr_max:50"},
        {"text": "$50 – $100", "tbs": "mr:1,price:1,ppr_min:50,ppr_max:100"},
        {"text": "Over $100", "tbs": "mr:1,price:1,ppr_min:100"}
      ]
    }
  ],
  "ads": [
    {
      "title": "Tory Burch Classic Platform Lug Sole Loafer in Plum at Nordstrom, Size 10",
      "link": "https://google.com/aclk?sa=L&ai=...",
      "source": "Nordstrom",
      "price": "$225.00",
      "thumbnail": "data:image/webp;base64,..."
    }
  ],
  "shopping_results": [
    {
      "title": "Industrial Black Genuine Leather Steel Toe Work Shoes Medium",
      "product_link": "https://google.com/shopping/product/17028981299089556310?gl=us",
      "product_id": "17028981299089556310",
      "scrapingdog_immersive_product_link": "https://api.scrapingdog.com/google_immersive_product?api_key=APIKEY&page_token=...",
      "source": "Zeba Shoes",
      "price": "$199.99",
      "extracted_price": 199.99,
      "old_price_extracted": null,
      "rating": 4.4,
      "reviews": "67",
      "extensions": ["30-day returns"],
      "thumbnail": "data:image/webp;base64;...",
      "position": 1
    }
  ]
}