Scrapingdog

Google AI Mode API

The Google AI Mode API lets you search Google with AI Mode enabled, returning structured results with references and text blocks. Each successful request costs 10 API credits.

Endpoint: https://api.scrapingdog.com/google/ai_mode

API Parameters

πŸ”‘

Authentication

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

    Type: String
πŸ”

Search Query

  • query Required
    The query you want to search in Google AI Mode

    Type: String
🌍

Geographic Location and Localization

  • country Optional
    Specifies the country for the Google 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
  • uule Optional
    A parameter that specifies the geographic location or locale for which the search results should be tailored (e.g., w+CAIQIFJlbGF5IFN0YXRlcw==). Cannot be used with the location parameter.

    Type: String
  • location Optional
    Specifies the origin location of the search. It cannot be used in combination with the uule parameter.

    Type: String
βš™

️ Advanced Filters

  • safe Optional
    To filter adult content set to active, or to disable it set to off. Default: off

    Type: String
  • html Optional
    This will return the full HTML of the Google page. Default: false

    Type: Boolean

API Examples

API result preview
Code to Integrate
curl "https://api.scrapingdog.com/google/ai_mode?api_key=APIKEY&query=scrapingdog"
API Response
{
  "shopping_results": [],
  "inline_images": [],
  "text_blocks": [
    {
      "type": "paragraph",
      "snippet": "Scrapingdog is a web scraping API and service designed to extract data from websites, e-commerce platforms, and search engines while bypassing anti-bot measures like CAPTCHAs, IP bans, and rate limits. It handles proxy rotation and browser rendering automatically, providing developers and businesses with clean HTML or structured JSON data.",
      "links": [{ "anchor": "", "link": "https://in.linkedin.com/company/scrapingdog" }]
    },
    {
      "type": "paragraph",
      "snippet": "Based on information from Scrapingdog, here are the key aspects of the service:",
      "links": [{ "anchor": "Scrapingdog", "link": "https://www.scrapingdog.com/" }]
    },
    { "type": "heading", "text": "Core Features", "level": 3 },
    {
      "type": "list",
      "items": [
        { "type": "list_item", "snippet": "Web Scraping API: Allows users to send a target URL and receive the rendered HTML or structured data.", "links": [] },
        { "type": "list_item", "snippet": "Anti-Bot Handling: Automatically manages proxy rotation (residential/datacenter IPs) and CAPTCHA solving to prevent detection.", "links": [] },
        { "type": "list_item", "snippet": "Javascript Rendering: Capable of rendering dynamic content from modern frameworks (React, Angular, Vue) using headless browsers.", "links": [] },
        { "type": "list_item", "snippet": "Dedicated Scrapers: Offers specialized tools for specific targets like LinkedIn, Amazon, and Google Search/Maps.", "links": [] },
        { "type": "list_item", "snippet": "Data Formats: Returns data in JSON or HTML formats.", "links": [] }
      ]
    },
    { "type": "heading", "text": "Common Use Cases", "level": 3 },
    {
      "type": "list",
      "items": [
        { "type": "list_item", "snippet": "Price Monitoring: Tracking competitor product prices across thousands of pages.", "links": [] },
        { "type": "list_item", "snippet": "Lead Generation: Collecting data from business directories and professional profiles.", "links": [] },
        { "type": "list_item", "snippet": "SEO Monitoring: Scraping SERP data to track keyword rankings and featured snippets.", "links": [] },
        { "type": "list_item", "snippet": "AI Training Data: Gathering high-quality text for LLM training.", "links": [] },
        { "type": "list_item", "snippet": "Google Sheets Integration: A no-code add-on is available for Google Sheets for direct data extraction.", "links": [{ "anchor": "Google Workspace Marketplace", "link": "https://workspace.google.com/marketplace/app/scrapingdog_%E2%80%93_web_scraper_for_google_she/28788214325" }] }
      ]
    },
    { "type": "heading", "text": "Performance & Reputation", "level": 3 },
    {
      "type": "list",
      "items": [
        { "type": "list_item", "snippet": "Speed: Focused on speed and high success rates (reported as 99.99% unbreakable).", "links": [] },
        { "type": "list_item", "snippet": "Support: Generally highly rated for its support, with active involvement from the team to fix issues.", "links": [] },
        { "type": "list_item", "snippet": "Company Info: Founded in 2020 and headquartered in Jaipur, Rajasthan.", "links": [] }
      ]
    },
    {
      "type": "paragraph",
      "snippet": "Users typically authenticate requests using an API key provided upon registration.",
      "links": [{ "anchor": "", "link": "https://docs.scrapingdog.com/" }]
    }
  ],
  "references": [
    {
      "title": "Scrapingdog: Scalable Web Scraping API for Data Extraction",
      "link": "https://www.scrapingdog.com/",
      "snippet": "What Developers Build with Scrapingdog's Web Scraping API * Price Monitoring. Track competitor prices across thousands of product pages.",
      "source": "Scrapingdog",
      "index": 1
    },
    {
      "title": "Scrapingdog | LinkedIn",
      "link": "https://in.linkedin.com/company/scrapingdog",
      "snippet": "About us. Scrapingdog is a web scraping API that helps developers and data teams extract data from search engines, e-commerce platforms, and more.",
      "source": "LinkedIn India",
      "index": 2
    },
    {
      "title": "Documentation - Scrapingdog",
      "link": "https://docs.scrapingdog.com/",
      "snippet": "You can start scraping any website in literally 1 minute. Our Web Scraping API will provide you with a seamless data pipeline.",
      "source": "Scrapingdog",
      "index": 3
    }
  ],
  "local_results": []
}