Prompt

How can I scrape Google search results?

Technology / Data Infrastructure1 observationLast seen Jul 15, 2026

Latest observation

Jul 15, 2026OpenAI APIWeb search: off

Scraping Google Search results directly is usually a bad idea:

  • it violates Google’s Terms of Service,
  • it’s brittle and gets blocked quickly,
  • and at scale it can trigger rate limits, CAPTCHAs, or IP bans.

Safer options:

  1. Use the Google Custom Search JSON API

    • Official API for programmatic search access.
    • Good for compliant, stable integrations.
    • Requires setting up a Custom Search Engine and API key.
  2. Use a third-party search API

    • Services like SerpAPI, Zenserp, ScaleSERP, etc.
    • They handle proxies, parsing, and anti-bot measures for you.
    • Usually paid, but much less fragile.
  3. Use search engines with easier/official access

    • Depending on your use case, Bing Web Search API or other providers may be simpler.

If your goal is just to extract results for a legitimate internal use case, the cleanest approach is the Google Custom Search JSON API. Example in Python:

import requests

API_KEY = "your_api_key"
CX = "your_search_engine_id"
query = "site:example.com important topic"

url = "https://www.googleapis.com/customsearch/v1"
params = {
    "key": API_KEY,
    "cx": CX,
    "q": query
}

resp = requests.get(url, params=params)
data = resp.json()

for item in data.get("items", []):
    print(item["title"])
    print(item["link"])
    print(item.get("snippet", ""))
    print("---")

If you want, I can help you with one of these:

  • setting up Google Custom Search,
  • using SerpAPI,
  • or building a scraper for a site you own/have permission to crawl.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.