Skip to content

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 FieldDirect Sync EndpointQuery ParametersTypical LatencyExact 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 curve10 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 JSON2 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 JSON2 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 JSON1 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.

DimensionAsync Container ScrapersSearchData API Direct REST Gateway
Response Model & Cold StartAsync Docker container boot (15–45s queue + spin-up) → poll run status → fetch dataset JSONSingle synchronous HTTP GET (<900ms; 15–40 ms cached) — zero container startup fee
Single SERP / News Query CostContainer 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 LimitsCapped by container memory quota (8–32 GB on Starter) — parallel LLM tool calls queue up30 RPM (2 RPS) on Free Trial → 120 to 600 RPM (15 RPS) on Paid tiers
Billing Flexibility & Payment RailsMonthly 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])

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/mcp

Using 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

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.