{"uid":"cap_BBPvVA8H_ICA6MXvxn-io","slug":"tollkit-web-search-api-google-results-09bdfbdb","name":"Tollkit Web Search API (Google Results)","description":"Web search API for AI agents: live Google search results (SERP) for any query as clean JSON, with ranked title, URL, snippet and date, plus the answer box. Search the web or search news only; filter by date (past hour to past year), keep to or leave out up to 5 sites. A fast Google search API / SERP API for grounding, RAG, research, fact checks and finding sources. Results via Serper.","url":"https://web.tollkit.dev/search?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"num":{"type":"integer","default":5,"maximum":10,"minimum":1},"type":{"enum":["web","news"],"type":"string","default":"web","description":"\"news\" searches news articles (with publisher and date) instead of the whole web."},"query":{"type":"string","maxLength":400,"description":"What to search for."},"country":{"type":"string","pattern":"^[a-zA-Z]{2}$","description":"Two-letter country code for localised results, e.g. \"us\"."},"resolve":{"type":"boolean","default":false,"description":"Wait about 30 s so results 4-10 have real URLs instead of google.com/goto redirect links."},"freshness":{"enum":["hour","day","week","month","year"],"type":"string","description":"Only results from the past hour, day, week, month or year."},"exclude_domains":{"type":"array","items":{"type":"string"},"maxItems":5,"description":"Never results from these sites."},"include_domains":{"type":"array","items":{"type":"string"},"maxItems":5,"description":"Only results from these sites, e.g. [\"reuters.com\", \"sec.gov\"]. Subdomains count."}}},"responseSchema":{"type":"json","example":{"query":"what is the x402 payment protocol","answer":null,"source":"Google search results via Serper (serper.dev)","results":[{"url":"https://www.x402.org/","date":null,"title":"x402","snippet":"An open standard for internet-native payments over HTTP 402.","position":1},{"url":"https://docs.cdp.coinbase.com/x402/welcome","date":null,"title":"x402 overview","snippet":"How x402 lets APIs charge per request in stablecoins.","position":2}],"searched_at":"2026-10-19T12:00:00.000Z","knowledge_graph":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.90","reviews":0,"stars":null,"state":"rated"},"availabilityStatus":"healthy","priceObserved":{"p10Cents":"0.3000","medianCents":"0.3000","p90Cents":"0.3000","minCents":"0.3000","maxCents":"0.3000","p95Cents":"0.3000","sampleCount":9,"varies":false,"failureChargeRate":null},"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_JBfPPIYVjLJh3mRMQBmix","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches the web via Google and returns ranked results (title, URL, snippet, date) plus answer boxes as clean JSON, powered by Serper","exampleAgentPrompt":"Search the web for 'best open-source LLM models 2025' and give me the top 5 results with titles, URLs, and snippets — US results please.","exampleUseCases":[{"title":"Real-time fact-checking for agent","prompt":"Search Google for 'did the Fed raise interest rates in June 2025' and show me the top 3 results with dates so I can verify this claim."},{"title":"Competitive research on a company","prompt":"Look up 'Anthropic funding rounds 2025' on the web and return the top 5 ranked results including any answer box that comes up."},{"title":"Finding sources for a blog post","prompt":"Search the web for 'impact of microplastics on human health recent studies' — I need 8 results from US sources to use as citations."}],"resultDescription":"A JSON array of ranked web results, each containing title, URL, snippet text, and publication date. If Google returns an answer box for the query, that is included as a separate top-level field. Number of results is controlled by the caller (1–10).","failureModes":["Query string exceeds 400 characters — request rejected","num parameter outside 1–10 range — validation error","Invalid country code format (not 2 letters) — rejected","Serper upstream outage — 5xx error propagated","Payment failure via x402 — 402 response, no search executed","Empty or ambiguous query may return low-quality or irrelevant results"],"whenToPreferThis":"Choose this endpoint when you need fast, current, Google-ranked web search results in clean JSON without setting up API keys or accounts — payment is handled inline via x402/USDC. Prefer it over custom scrapers or static knowledge when freshness matters (news, recent events, current prices). Ideal for AI agents that need sourced, ranked results rather than a single extracted page. Use alongside Tollkit Extract if you want to follow up by scraping a specific result page.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":10,"lastUsedAt":"2026-11-11T21:00:31.450Z","lastSuccessfullyRanAt":"2026-11-11T21:00:31.450Z","lastHealthCheckAt":"2026-12-04T01:00:56.952Z","isFirstParty":false,"canonicalSlug":"tollkit-web-search-api-google-results-09bdfbdb"}