Google closed the Custom Search JSON API to new customers in 2024. If you don't have existing API credentials, here are working alternatives.
Best for: Most users, easy migration, reliable results
Pricing:
- 100 searches/month FREE
- $50/month for 5,000 searches
- No daily limits (monthly quotas)
Pros:
- Same Google results quality
- Easy API, good documentation
- Includes additional data (featured snippets, knowledge panels)
Cons:
- More expensive than Google for high volume
- Monthly billing
Setup:
- Sign up: https://serpapi.com/
- Get your API key from dashboard
- Install:
npm install serpapi
Example Usage:
const { getJson } = require('serpapi');
getJson({
engine: "google",
q: "your search query",
api_key: "YOUR_API_KEY"
}, (json) => {
console.log(json.organic_results);
});Best for: High volume needs, budget-conscious
Pricing:
- 1,000 requests/month FREE
- $49/month for 100,000 requests
- Pay-as-you-go options
Pros:
- Very high volume capacity
- Handles anti-bot protection
- Multiple search engines supported
Cons:
- Results can be slower
- Requires more error handling
Setup:
- Sign up: https://scraperapi.com/
- Get API key
- Use their Google Search endpoint
Example Usage:
const axios = require('axios');
const response = await axios.get('http://api.scraperapi.com', {
params: {
api_key: 'YOUR_API_KEY',
url: 'https://www.google.com/search?q=your+query'
}
});Best for: Budget-conscious users, simple needs
Pricing:
- 100 searches/month FREE
- $29/month for 1,000 searches
- Flexible plans
Pros:
- Lower cost entry point
- Google-compatible API format
- Real-time results
Cons:
- Smaller company
- Less documentation
Setup:
- Sign up: https://searchapi.io/
- Get API key
- Very similar API to Google's format
Best for: Microsoft ecosystem users, enterprise
Pricing:
- 1,000 queries/month FREE (Azure)
- Pay-as-you-go after that
Pros:
- Official Microsoft API (won't disappear)
- Good documentation
- Enterprise support
Cons:
- Bing results, not Google
- Azure account required
Setup:
- Create Azure account: https://azure.microsoft.com/
- Create Bing Search resource
- Get API key from Azure portal
Best for: Simple queries, free usage
Pricing:
- FREE (no API key required!)
Pros:
- Completely free
- No rate limits
- Privacy-focused
Cons:
- Limited to "instant answers" only
- Not full search results
- Less comprehensive
Example:
const response = await fetch(
'https://api.duckduckgo.com/?q=your+query&format=json'
);Why you shouldn't:
- Scraping Google violates their ToS
- They actively block scrapers
- Your IP will get blocked
- Legal risks
- High maintenance burden
- Results are inconsistent
If you must:
- Use a proxy rotation service
- Implement extensive rate limiting
- Be prepared for constant breakage
- Consider the legal implications
We're exploring adding adapter modules to make switching between APIs easier. This would allow you to:
- Use the same MCP interface
- Swap backends without code changes
- Fall back to alternatives when one fails
If you're interested in contributing to this effort, please open an issue on GitHub.
| Provider | Free Tier | Paid Starting | Google Results | Ease of Migration |
|---|---|---|---|---|
| SerpAPI | 100/mo | $50/mo | Yes | Easy |
| ScraperAPI | 1,000/mo | $49/mo | Yes | Medium |
| SearchAPI.io | 100/mo | $29/mo | Yes | Easy |
| Bing API | 1,000/mo | Pay-as-you-go | No (Bing) | Medium |
| DuckDuckGo | Unlimited | Free | No | Easy |
Open an issue on GitHub with the tag migration-help and we'll try to assist.
Last updated: January 2026