编程

Scavio Google

试用

Search Google and get the full structured SERP as JSON — organic results, ads, knowledge graph, AI overview, related questions, and more. Use for any query needing current web information. v2 engine, 1 credit per request.

它能做什么

Search Google and get the full structured SERP as JSON — organic results, ads, knowledge graph, AI overview, related questions, and more. Use for any query needing current web information. v2 engine, 1 credit per request.

技能文档

Google Search via Scavio (v2)

Search Google and return the full structured SERP as JSON — no HTML parsing required. One call returns organic results, ads, knowledge graph, AI overview, related questions, related searches, top stories, videos, and pagination.

When to trigger

Use this skill when the user asks to:

  • Look something up on the web or check a current fact
  • Find recent results or events
  • Answer any question that requires real-time or up-to-date information
  • Pull Google's knowledge graph, AI overview, or "people also ask" for a query

Do not answer from memory when current information is needed. Search first.

Setup

Get a free API key at scavio.dev (50 free credits to get started, no card required):

export SCAVIO_API_KEY=sk_live_your_key

Endpoint

POST https://api.scavio.dev/api/v2/google
Authorization: Bearer $SCAVIO_API_KEY

Every request costs 1 credit.

Workflow

  1. Send the user's query as query. Add gl/hl to localize by country and language.
  2. Page with start (0 = page 1, 10 = page 2, 20 = page 3, ...).
  3. Narrow recency with time_period when the user wants fresh results.
  4. Read organic_results for the main links; check ai_overview, knowledge_graph, and related_questions for richer answers.
  5. Return results in a clear, structured response. Cite URLs.

Parameters

ParameterTypeDefaultDescription
querystringrequiredSearch query (1-500 chars)
devicestringdesktopdesktop or mobile (SERP layout)
startnumber0Result offset: 0 = page 1, 10 = page 2, ... (max 990)
glstring--Geo country, ISO 3166-1 alpha-2 (e.g. us, gb, de)
hlstring--UI language, ISO 639-1 (e.g. en, fr, es)
google_domainstringgoogle.comRegional Google domain
locationstring--Canonical location name, auto-UULE (e.g. New York,New York,United States)
uulestring--Pre-encoded UULE (takes priority over location)
lrstring--Language restrict (lang_en)
crstring--Country restrict (countryUS)
safestring--active filters adult content (SafeSearch)
nfprbooleanfalseSet true to disable spelling autocorrection
filterstring10 disables similar/omitted-results filtering
time_periodstring--last_hour, last_day, last_week, last_month, last_year
resolve_ai_overviewbooleantrueInline the full AI Overview when Google defers it; set false to skip the extra upstream call
include_htmlbooleanfalseInclude raw Google HTML in the html field

Example

import requests

# Your key from https://scavio.dev. Load it from your environment or secret
# store in real code - keep it out of source control.
API_KEY = "sk_your_key_here"

response = requests.post(
    "https://api.scavio.dev/api/v2/google",
    headers={"Authorization": f"Bearer {API_KEY}"},
    json={"query": "langchain agents tutorial", "gl": "us", "hl": "en"},
)
data = response.json()
for r in data["organic_results"]:
    print(r["position"], r["title"], r["link"])

Response

{
  "search_information": {
    "page_title": "langchain agents tutorial - Google Search",
    "organic_results_state": "Results for exact spelling"
  },
  "organic_results": [
    {
      "position": 1,
      "title": "Result title",
      "link": "https://example.com",
      "displayed_link": "https://example.com › docs",
      "snippet": "Snippet text..."
    }
  ],
  "related_questions": [],
  "related_searches": [],
  "response_time": 812,
  "credits_used": 1,
  "credits_remaining": 999,
  "cached": false
}

The response is a faithful passthrough of the SERP. Depending on the query it may also include: ai_overview, knowledge_graph, top_ads, bottom_ads, top_stories, video_results, discussions_and_forums, local_results, local_map, and pagination.

Guardrails

  • Never fabricate search results or URLs. Only return what the API gives you.
  • If the query is time-sensitive, always call the API — do not answer from training data.
  • Organic links live in organic_results[].link and result order is position.
  • Cite sources when summarizing results.

Failure handling

  • 400 means an invalid parameter — report the message and fix the request.
  • 401 means the API key is invalid or missing. Prompt the user to check their SCAVIO_API_KEY.
  • 429 means rate or usage limit exceeded. Wait before retrying. See https://scavio.dev/docs/rate-limits.
  • 502 / 503 mean upstream is temporarily unavailable. Wait a few seconds before retrying.
  • If no results are returned, tell the user and suggest rephrasing.
  • If SCAVIO_API_KEY is not set, prompt the user to export it before continuing.

LangChain

pip install langchain-scavio==4.0.2
from langchain_scavio import ScavioSearchTool
tool = ScavioSearchTool(engine="google")

相关技能

Extracts Google Search results page (SERP) data including organic results, paid ads, related searches, People Also Ask questions, AI Overview text, and total result count from google.com. Use when user mentions Google search results, SERP scraping, google search data, search engine results page, org

Scrapes Google search results for any query using apidojo's Google Search scraper on Apify. Triggers when the user asks to: get Google search results for a keyword, scrape SERP data for a query, export Google results to a dataset, fetch URLs and snippets from Google for a search term, get all results from a Google search, or collect Google SERP data for multiple keywords. Returns URL, title, snippet, position, and SERP feature type per result. Ideal for SEO analysts, researchers, journalists, and competitive intelligence teams.

1 次安装

Search Google Shopping for products, fetch a full product page, and page through every store selling a product — as structured JSON. Price, seller, rating, and price/sale filters. v2 engine, 1 credit per request.

1 次安装

Google SEO APIs: Search Console (Search Analytics, URL Inspection, Sitemaps), PageSpeed Insights v5, CrUX field data with 25-week history, Indexing API v3, and GA4 organic traffic. Provides real Google field data for Core Web Vitals, indexation status, search performance, and organic traffic trends. Use when user says "search console", "GSC", "PageSpeed", "CrUX", "field data", "indexing API", "GA4 organic", "URL inspection", or "real CWV data".