百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
G

google-ai-mode-scraper

> 编程语言
开源

大规模地获取 Google AI 模式的响应,而不受限制。

3.5K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

大规模地获取 Google AI 模式的响应,而不受限制。

Google AI Mode Scraper

Google AI Mode scraper lets you send prompts and reliably extract AI responses at scale without blocks. Built on the Web Scraper API, it delivers parsed data in JSON format while handling proxies, headless browsers, and automated request systems for you. You can use scraped Google AI Mode data to power SEO and GEO projects, build training datasets, or support other data tasks.

How it works

Scrape Google AI Mode responses by sending a POST request with your prompt and authentication credentials. See the Python example below, or explore more language samples here.

[!TIP] Get a free trial by registering on the dashboard.

Request sample (Python)

First, install the requests library in your Python environment:

pip install requests

Then, create the following .py file. Make sure to use your Web Scraper API USERNAME and PASSWORD:

import json
import requests

# API parameters.
payload = {
    'source': 'google_ai_mode',
    'query': 'best health trackers under $200',
    'render': 'html',
    'parse': True,
    'geo_location': 'United States'
}

# Get a response.
response = requests.post(
    'https://realtime.oxylabs.io/v1/queries',
    # Replace with your credentials.
    auth=('USERNAME', 'PASSWORD'),
    json=payload,
)

# Print the response to stdout.
print(response.json())

# Save the response to a JSON file.
with open('response.json', 'w') as file:
    json.dump(response.json(), file, indent=2)

Request parameters

Parameter Description Default Value source (mandatory) Sets the scraper. google_ai_mode query (mandatory) The prompt or question to submit to Google AI Mode. Cannot exceed 400 characters. – render (mandatory) Setting to html is required for this source. – parse Returns parsed data when set to true. false geo_location Specify a country to send the prompt from. More info. - callback_url URL to your callback endpoint. More info. –

Check out documentation to learn more.

Output samples

JSON example

Below is a trimmed JSON output sample. See the full JSON output here.

…

Alternatively, you can extract the data in Markdown format to streamline integration with AI tools. Find more details here.

HTML example

JSON structure

google_ai_mode returns structured output with fields such as URL, page, and results. The table below explains each element in detail, outlining its description and data type. Depending on the search query, both the number of items and the fields included can change.

Key Name Description Type url The URL of Google AI Mode. string page Page number. integer content An object containing the parsed Google AI Mode response data. object content.links List of external links referenced in the response. Displayed in the box on the right side of the page. array content.prompt Original prompt submitted to Google AI Mode. string content.citations List of citation links with URLs and associated texts, as shown in the main block of the Google AI Mode response. array content.response_text Complete response text from Google AI Mode. string content.markdown_text Complete Markdown text from Google AI Mode. string content.parse_status_code Status code of the parsing operation. integer created_at Timestamp when the scraping job was created. timestamp updated_at Timestamp when the scraping job was finished. timestamp job_id ID of the job associated with the scraping job. string status_code Status code of the scraping job. You can see the scraper status codes described here. integer

Use cases

Scraping Google AI Mode unlocks powerful applications across SEO and GEO analysis, as well as dataset development:

  • Monitor brand presence: track how brands appear in Google AI Mode results to strengthen visibility and reputation.
  • Optimize content for AI: refine and adapt content strategies to perform better in AI-driven search interfaces.
  • Build training datasets: gather diverse, real-world responses to create high-quality datasets for model training or fine-tuning.

Why choose Oxylabs?

  • No upkeep needed: all infrastructure handled for you (proxies, IP rotation, automated request management measures). No engineering time wasted on fixes or site changes.
  • Reliable performance: consistent, high success rates powered by enterprise-level infrastructure.
  • Smart capabilities: Custom Browser Instruction with a headless browser for real-user simulation, CAPTCHA handling, and geo-targeting for localized results.

FAQs

Is it allowed to scrape AI-generated content from Google?

The legality of scraping AI-generated content depends on factors like Google’s terms of service, your use case, and applicable laws. We recommend consulting a legal expert before proceeding.

Are there any limitations of Google AI Mode scraper?

Yes. The main limitation is prompt size – requests sent to the API cannot exceed 400 characters. Longer prompts need to be shortened before submitting.

Learn more

For detailed information on API features, integrations, and more examples, see the Web Scraper API documentation.

Contact us

If you have questions or need support, reach out to us at [email protected], or through live chat, accessible via Oxylabs Dashboard, or join our Discord community. For enterprise-related inquiries, contact your dedicated account manager.

GitHub Issues· 0 开放

在 GitHub 查看全部

暂无开放 Issues,或尚未同步最近议题。

核心特点

  • •Monitor brand presence: track how brands appear in Google AI Mode results to strengthen visibility and reputation.
  • •Optimize content for AI: refine and adapt content strategies to perform better in AI-driven search interfaces.
  • •Build training datasets: gather diverse, real-world responses to create high-quality datasets for model training or fine-tuning.
  • •No upkeep needed: all infrastructure handled for you (proxies, IP rotation, automated request management measures). No engineering time wasted on fixes or site changes.
  • •Reliable performance: consistent, high success rates powered by enterprise-level infrastructure.
  • •Smart capabilities: Custom Browser Instruction with a headless browser for real-user simulation, CAPTCHA handling, and geo-targeting for localized results.

> 标签

Javaai-groundingai-modeai-searchai-training

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言