Developer Migration Guide · Zero Container Cold Starts
Migrate from Async Search & Trends Scrapers to <900ms Synchronous REST JSON — Save 85%+.
Running real-time Google SERP, Google Trends, or Google News lookups inside async scraper containers means paying Docker cold-start overhead, proxy compute units, and waiting 15–45 seconds per run just to poll a dataset. Switch in 5 minutes to https://api.searchdataapi.com/v1/*: structured organic rankings, People Also Ask, 54-week trend curves, and live news wires over a single GET request at $0.08–$0.20 per 1,000 queries.
✓ Instant $1.20 (12,000 Credits) at 0 ms + $2.00 (+20,000 Credits) Sandbox Streak (32,000 total free credits = 16,000 queries) · ✓ Supports Stripe Card / Apple Pay / Google Pay & 0%-fee Crypto (+5% bonus) · ✓ $9.00 Indie PAYG credits never expire
1-to-1 Schema Translation
Search, Trends & News Actor Input JSON → Synchronous REST Endpoints
Base URL: https://api.searchdataapi.com · $1.00 = 10,000 Credits
| Actor Input JSON Field | Direct Sync Endpoint | Query Parameters | Typical Latency | Exact Unit Cost |
|---|---|---|---|---|
| queries: "best vector database for rag\nai search api", resultsPerPage: 10, countryCode: "us", languageCode: "en" | GET /v1/search | ?q=best+vector+database+for+rag&limit=10&country=us&lang=en | <900 ms sync JSON (15–40 ms warm cache) | 2 Credits / query ($0.08–$0.20 / 1K; 0 if empty) |
| searchTerms: ["ai agents", "mcp server"], timeRange: "today 12-m", geo: "US" (Google Trends Scraper) | GET /v1/trends/interest | ?keyword=ai+agents,mcp+server&country=US | <1.1 s sync 54-week 0–100 curve | 10 Credits / 54-wk curve ($0.40–$1.00 / 1K; 0 if empty) |
| geo: "US", category: "all" (Daily Trending Searches & Breakout Velocity Feed) | GET /v1/trends/realtime | ?country=US&category=all | <350 ms sync JSON | 2 Credits / snapshot ($0.08–$0.20 / 1K) |
| query: "nvidia blackwell", language: "US:en", maxItems: 50, when: "24h" (Google News Scraper) | GET /v1/news/search | ?q=nvidia+blackwell&country=US&lang=en&when=24h | <750 ms sync JSON | 2 Credits / query ($0.08–$0.20 / 1K; 0 if empty) |
| prefix: "best crm for ", country: "us", language: "en" (Google Autocomplete Scraper) | GET /v1/autocomplete | ?q=best+crm+for&country=us&lang=en | <80 ms direct JSON | 1 Credit / query ($0.04–$0.10 / 1K; 0 if empty) |
Why AI Agent & SEO Pipelines Switch
85%+ Lower Unit Cost & Sub-Second AI Tool-Calling Latency
Interactive RAG chats, SEO rank trackers, and breaking-news monitors cannot wait 25 seconds for a headless browser container to boot. Compare real-world production numbers below.
| Dimension | Async Container Scrapers | SearchData API Direct REST Gateway |
|---|---|---|
| Response Model & Cold Start | Async Docker container boot (15–45s queue + spin-up) → poll run status → fetch dataset JSON | Single synchronous HTTP GET (<900ms; 15–40 ms cached) — zero container startup fee |
| Single SERP / News Query Cost | Container start fee + residential proxy CUs (~$0.01–$0.05 effective on single-query agent calls) | 2 Credits = $0.00008–$0.00020 (0 Credits on empty or failed calls) |
| 100,000 SERP Queries | $250–$500+ ($2.50–$5.00/1K results + $39–$49/mo platform plan; unused monthly prepaid credits expire) | $8.00 on Business ($0.08/1K) or $11.00 on Pro ($0.11/1K) or $9.00+ never-expiring PAYG |
| Concurrency & Rate Limits | Capped by container memory quota (8–32 GB on Starter) — parallel LLM tool calls queue up | 30 RPM (2 RPS) on Free Trial → 120 to 600 RPM (15 RPS) on Paid tiers |
| Billing Flexibility & Payment Rails | Monthly platform subscription required for volume tiers; card billing only | $9.00 Indie PAYG (credits never expire) or monthly plans via Stripe Card / Apple Pay / Google Pay & 0%-fee Crypto (+5% bonus credits) |
5-Minute Drop-In Migration
Replace ApifyClient.actor().call() with One HTTP Request
Delete async dataset polling loops and headless Chrome retries. Copy-paste the Python, Node.js, or cURL snippet below using your sr_live_... key from /signup.
# BEFORE (Async container job: 15–40s container boot + dataset polling + CU overhead)
# run = ApifyClient(TOKEN).actor("apify/google-search-scraper").call(run_input={
# "queries": "best vector database for rag",
# "resultsPerPage": 10,
# "countryCode": "us",
# })
# items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
# AFTER (SearchData API: <900ms synchronous HTTP GET — 0 container boot fees)
import os
import requests
API_KEY = os.environ["SEARCHDATAAPI_KEY"] # sr_live_... (12,000 free credits on signup)
HEADERS = {"x-api-key": API_KEY}
# 1. Live Google SERP Organic + People Also Ask (/v1/search)
serp = requests.get(
"https://api.searchdataapi.com/v1/search",
params={"q": "best vector database for rag", "country": "us", "lang": "en", "limit": 10},
headers=HEADERS,
timeout=15,
).json()
for hit in serp["organic_results"][:5]:
print(f"#{hit['position']} {hit['title']} -> {hit['link']}")
# 2. 54-Week Google Trends 0–100 Interest Curve (/v1/trends/interest)
trends = requests.get(
"https://api.searchdataapi.com/v1/trends/interest",
params={"keyword": "ai agents", "country": "US"},
headers=HEADERS,
timeout=15,
).json()
print("Latest trend index:", trends["timeline"][-1])// BEFORE: await apifyClient.actor("apify/google-search-scraper").call({ queries, resultsPerPage: 10 })
// AFTER: Native fetch() — zero SDK dependencies, <900ms response for LangChain / Vercel AI SDK / n8n
const API_KEY = process.env.SEARCHDATAAPI_KEY!;
const headers = { "x-api-key": API_KEY };
// Parallel SERP + Live News + 54-Week Trend Telemetry in <1s
const [serpRes, newsRes, trendsRes] = await Promise.all([
fetch("https://api.searchdataapi.com/v1/search?q=" + encodeURIComponent("ai coding agents") + "&country=us&limit=10", { headers }),
fetch("https://api.searchdataapi.com/v1/news/search?q=" + encodeURIComponent("ai coding agents") + "&country=US&when=24h", { headers }),
fetch("https://api.searchdataapi.com/v1/trends/interest?keyword=" + encodeURIComponent("ai coding agents") + "&country=US", { headers }),
]);
const [serp, news, trends] = await Promise.all([serpRes.json(), newsRes.json(), trendsRes.json()]);
console.log({
topHit: serp.organic_results?.[0]?.title,
paaCount: serp.people_also_ask?.length ?? 0,
breakingArticles: news.articles?.length ?? 0,
points54w: trends.timeline?.length ?? 0,
});# 1. Live Google SERP Organic + PAA (<900ms sync JSON — 2 Credits / query)
curl -sS "https://api.searchdataapi.com/v1/search?q=best+vector+database+for+rag&country=us&lang=en&limit=10" \
-H "x-api-key: sr_live_YOUR_API_KEY"
# 2. 54-Week Google Trends Interest Over Time Curve (10 Credits)
curl -sS "https://api.searchdataapi.com/v1/trends/interest?keyword=ai+agents&country=US" \
-H "x-api-key: sr_live_YOUR_API_KEY"
# 3. Real-Time Google News Wire (2 Credits / query)
curl -sS "https://api.searchdataapi.com/v1/news/search?q=nvidia+blackwell&country=US&lang=en&when=24h" \
-H "x-api-key: sr_live_YOUR_API_KEY"
# 4. Sub-80ms Google Suggest Autocomplete (1 Credit / query)
curl -sS "https://api.searchdataapi.com/v1/autocomplete?q=best+crm+for&country=us&lang=en" \
-H "x-api-key: sr_live_YOUR_API_KEY"{
"ok": true,
"endpoint": "/v1/search",
"meta": {
"request_id": "req_sr_sync_91f2a",
"credits_used": 2,
"took_ms": 38,
"cache_hit": true
},
"query": {
"q": "best vector database for rag",
"country": "us",
"lang": "en"
},
"organic_results": [
{
"position": 1,
"title": "Vector Database Benchmarks for Production RAG (2026)",
"link": "https://benchmark.example.dev/vector-dbs-rag",
"domain": "benchmark.example.dev",
"snippet": "Side-by-side latency, recall@10, and hybrid BM25+HNSW filtering across pgvector, Qdrant, Pinecone, and Turbopuffer."
}
],
"people_also_ask": [
{
"question": "Which vector database is fastest for RAG agents?",
"snippet": "Sub-10ms p99 recall depends on index quantization and metadata pre-filtering..."
}
]
}Claude Web · ChatGPT · Cursor · n8n
1-Click Remote OAuth 2.1 MCP Connector
Building deep-research AI agents or competitive intelligence copilots? Connect Claude Web or ChatGPT Connectors directly via OAuth 2.1 PKCE — zero local Docker or npx setup required:
https://mcp.searchdataapi.com/v1/mcpUsing Cursor, Claude Desktop, or Windsurf with an API key? Point https://api.searchdataapi.com/mcp with header x-api-key: sr_live_.... Full setup guide on /mcp.
Endpoint Reference & Benchmarks
Explore Verified Endpoint Docs
- → GET /v1/search — Live Google SERP organic rankings, snippets & People Also Ask
- → GET /v1/trends/interest — 54-week 0–100 search interest curve & momentum index
- → GET /v1/news/search — Real-time Google News wire filtered by keyword & freshness window
- → GET /v1/autocomplete — Sub-80ms Google Suggest keyword completions (1 Credit)
- → SerpApi Pricing Breakdown (15x–75x Cheaper), Google Trends API Guide & SerpApi Alternative
REST API Migration FAQ
- Why is calling a synchronous SERP & Trends REST API 10x–20x faster and cheaper than container Actors?
- Container-based search and trends Actors boot an isolated Docker image, allocate headless Chrome RAM, and charge Compute Units plus residential proxy bandwidth ($2.50–$5.00+ per 1,000 SERPs, with 15–40 second cold starts). SearchData API serves normalized JSON over a warm HTTP edge gateway in <900ms (15–40ms cached) for 2 Credits ($0.08–$0.20 per 1,000 queries) with $0 container boot fees and 0 Credits charged on empty results.
- Can AI Agents (LangChain, LlamaIndex, Vercel AI SDK) call SearchData API mid-turn without timing out?
- Yes. Async Actor runs take 15–45 seconds to spin up and poll datasets, breaking interactive chat latency budgets. Every SearchData API endpoint is synchronous HTTP GET returning clean JSON in sub-second p50 latency, making it ideal for real-time LLM web grounding and tool-calling loops.
- Can I test for free and top up Pay-As-You-Go starting at $9 without a monthly subscription?
- Yes. Every new developer receives 12,000 Free Credits ($1.20 = 6,000 SERP/News queries) instantly upon signup at /signup with no credit card required, plus up to +20,000 Developer Sandbox Streak Credits. When ready to scale, grab the $9.00 Indie Starter Micro-Pack (75,000 never-expiring Credits) or monthly plans via Stripe or 0%-fee Crypto (+5% bonus credits).
- Does SearchData API support Claude Web, ChatGPT Connectors, Cursor, and n8n?
- Yes. In n8n or Make, replace the 2-step 'Run Actor + Get Dataset Items' polling loop with one HTTP Request node to https://api.searchdataapi.com/v1/search. For Claude, ChatGPT, Cursor, and Windsurf, connect our Remote MCP Server at https://mcp.searchdataapi.com/v1/mcp (or https://api.searchdataapi.com/mcp with x-api-key: sr_live_...).
Ready to drop container cold starts?
Create your account in 10 seconds and get 12,000 Free Credits ($1.20) instantly — enough for 6,000 live Google SERP or News queries or 12,000 Autocomplete expansions with zero credit card required.