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_modeAPI Parameters
π
Authentication
api_keyRequiredYour personal API key. Available on your dashboard
Type: String
π
Search Query
queryRequiredThe query you want to search in Google AI Mode
Type: String
π
Geographic Location and Localization
countryOptionalSpecifies 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: StringuuleOptionalA parameter that specifies the geographic location or locale for which the search results should be tailored (e.g.,w+CAIQIFJlbGF5IFN0YXRlcw==). Cannot be used with thelocationparameter.
Type: StringlocationOptionalSpecifies the origin location of the search. It cannot be used in combination with theuuleparameter.
Type: String
β
οΈ Advanced Filters
safeOptionalTo filter adult content set toactive, or to disable it set tooff. Default:off
Type: StringhtmlOptionalThis will return the full HTML of the Google page. Default:false
Type: Boolean
API Examples

Code to Integrate
curl "https://api.scrapingdog.com/google/ai_mode?api_key=APIKEY&query=scrapingdog"
import requests params = { "api_key": "APIKEY", "query": "scrapingdog", } response = requests.get("https://api.scrapingdog.com/google/ai_mode", params=params) print(response.json())
const axios = require("axios"); const params = { api_key: "APIKEY", query: "scrapingdog", }; axios.get("https://api.scrapingdog.com/google/ai_mode", { params }) .then(res => console.log(res.data)) .catch(err => console.error(err));
<?php $params = http_build_query([ "api_key" => "APIKEY", "query" => "scrapingdog", ]); $response = file_get_contents("https://api.scrapingdog.com/google/ai_mode?" . $params); print_r(json_decode($response, true));
require "net/http" require "json" uri = URI("https://api.scrapingdog.com/google/ai_mode") uri.query = URI.encode_www_form(api_key: "APIKEY", query: "scrapingdog") res = Net::HTTP.get_response(uri) puts JSON.parse(res.body)
import java.net.*; import java.io.*; public class Main { public static void main(String[] args) throws Exception { String url = "https://api.scrapingdog.com/google/ai_mode?api_key=APIKEY&query=scrapingdog"; HttpURLConnection con = (HttpURLConnection) new URL(url).openConnection(); con.setRequestMethod("GET"); BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream())); String line; StringBuilder content = new StringBuilder(); while ((line = in.readLine()) != null) content.append(line); in.close(); System.out.println(content.toString()); } }
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": []
}