ScavioScavio
Pricing
Tools
Sign InsGet Startedg
  1. Home
  2. Tutorials
  3. How to Replace Google Custom Search API with Scavio
Tutorial

How to Replace Google Custom Search API with Scavio

Move from Google Custom Search API to Scavio. Lower limits, structured JSON, multi-platform - drop-in for AI assistant pipelines. Prerequisites: Python 3.10+.

Get Free API KeyAPI Docs

An r/n8n thread mentioned the OP was using 'Google Custom Search plus manual scraping' and wanted a single API. This tutorial walks the replacement path. Search moves to POST /api/v2/google, and the manual scraping half moves to Scavio's Extract endpoint (POST /api/v1/extract), which returns any page as Markdown, HTML or text under the same key.

API Docs: Extract API, Crawl API

Prerequisites

  • Python 3.10+
  • Scavio API key

Walkthrough

Step 1: Identify Google Custom Search calls

Usually with a CSE key + cx ID.

Python
# Before:
# r = requests.get('https://www.googleapis.com/customsearch/v1', params={'key': KEY, 'cx': CX, 'q': q})

Step 2: Replace with Scavio

No CX needed; Scavio searches the open web.

Python
# After:
r = requests.post('https://api.scavio.dev/api/v2/google',
    headers={'Authorization': f'Bearer {SCAVIO_API_KEY}'},
    json={'query': q}).json()

Step 3: Map response

items[] becomes organic_results[].

Python
# Google CSE: r['items'][i]['link']
# Scavio: r['organic_results'][i]['link']

Step 4: Add extract endpoint for content

Replaces the 'manual scraping' half of the OP's flow.

Python

# Scavio Extract reads one URL and returns the page as markdown, html or text.
# mode: "normal" (1 credit), "advanced" renders JavaScript (1 credit),
# "ultra" for the hardest pages (2 credits). Only a successful call is billed.
# Docs: https://scavio.dev/docs/extract
def scavio_extract(url, headers, mode="normal", fmt="markdown"):
    r = requests.post("https://api.scavio.dev/api/v1/extract", headers=headers,
                      json={"url": url, "format": fmt, "mode": mode}, timeout=90)
    r.raise_for_status()
    return r.json()["data"]["content"]

def fetch(url):
    return scavio_extract(url, {'Authorization': f'Bearer {SCAVIO_API_KEY}'})

Step 5: Compare quotas

Google CSE caps at 100/day on free, $5/1K above. Scavio free is 50 credits on signup + $30/mo for 7K.

Text
// Daily research agent making 50 queries: Google CSE = $7.50/mo above quota; Scavio = $30/mo flat once the 50 free signup credits are used.

Python Example

Python
# Migration takes ~20 minutes for a typical agent.

JavaScript Example

JavaScript
// Same in TS.

Expected Output

JSON
Same query intent, structured JSON, plus extract endpoint that replaces 'manual scraping' under the same key. No more two-vendor split.

Related Tutorials

    Frequently Asked Questions

    Most developers complete this tutorial in 15 to 30 minutes. You will need a Scavio API key (free tier works) and a working Python or JavaScript environment.

    Python 3.10+. Scavio API key. A Scavio API key gives you 50 free credits on signup.

    Yes. The free tier includes 50 credits on signup, which is more than enough to complete this tutorial and prototype a working solution.

    Scavio has a native LangChain package (langchain-scavio), an MCP server, and a plain REST API that works with any HTTP client. This tutorial uses the raw REST API, but you can adapt to your framework of choice.

    Related Resources

    Comparison

    Google CSE (Paid Tier) vs Third-Party SERP API (Scavio, SerpApi, Serper)

    Read more
    Comparison

    Google Custom Search JSON API vs Scavio

    Read more
    Best Of

    Best Google CSE Replacements in 2026

    Read more
    Glossary

    Google Custom Search Engine (CSE) Deprecation 2027

    Read more
    Glossary

    Google Search API Deprecation 2027

    Read more
    Best Of

    Best Google Maps Data API in 2026

    Read more

    Start Building

    Move from Google Custom Search API to Scavio. Lower limits, structured JSON, multi-platform - drop-in for AI assistant pipelines. Prerequisites: Python 3.10+.

    Get Free API KeyRead the Docs
    ScavioScavio

    One scraper API for every social, search, e-commerce and real estate platform. Built for AI agents.

    Product

    • Features
    • Pricing
    • Dashboard
    • Affiliates

    Developers

    • Documentation
    • API Reference
    • Quickstart
    • MCP Integration
    • Python SDK

    Alternatives

    • Tavily Alternative
    • SerpAPI Alternative
    • Firecrawl Alternative
    • Exa Alternative
    • Serper Alternative
    • Tavily vs Scavio
    • SerpAPI vs Scavio
    • All alternatives
    • Compare Scavio vs alternatives

    Search APIs

    • Google Search API
    • Amazon Product API
    • YouTube API
    • Reddit API
    • Walmart Product API
    • TikTok API
    • Instagram API

    Tools

    • All Tools

    © 2026 Scavio. All rights reserved.

    Featured on TAAFT
    Terms of ServicePrivacy Policy