$0.03 per 10,000 Google search pages · 10 free searches, no credit card · 112 countries · Google · Bing · Yahoo · DuckDuckGo
Code examples and integration recipes for Serpent API — a pay-as-you-go SERP API for Google, Bing, Yahoo, and DuckDuckGo, with AI Ranking endpoints for ChatGPT, Claude, Gemini, and Perplexity.
→ Get a free API key at apiserpent.com · → Full docs · → Pricing
| Serpent API | SerpAPI | ScaleSerp | ValueSerp | |
|---|---|---|---|---|
| Web search starting price | $0.03 / 10K Pages | $10.00 / 1K | $5.00 / 1K | $20.00 / 1K |
| Free tier | 10 web searches, no card | 100/mo | 250/mo | None |
| Pricing model | Pay-as-you-go | Monthly subs | Monthly subs | Monthly subs |
| AI Ranking (ChatGPT/Claude/Gemini/Perplexity) | Yes | No | No | No |
| Engines included | Google · Bing · Yahoo · DDG | Google + extras |
A single $500 deposit unlocks 20× off forever (Scale tier). Credits never expire. See pricing for the full table.
serpent-api-examples/
├── python/ Quickstart scripts for every endpoint
├── nodejs/ Same examples in Node.js
├── curl/ One-liner curl examples for every endpoint
├── postman/ Postman collection — import and run
└── comparisons/ Honest comparisons vs. SerpAPI, ScaleSerp, ValueSerp
Every example needs a free API key from apiserpent.com. The first 10 web searches are free — no credit card.
# 1. Get a free API key — https://apiserpent.com/login
export SERPENT_API_KEY="sk_live_your_key_here"
# 2. Run a Google search
curl -H "X-API-Key: $SERPENT_API_KEY" \
"https://api.apiserpent.com/api/search/quick?q=best+google+serp+api&engine=google&country=us"That's it. You'll get back structured JSON with organic results, ads, People Also Ask, Featured Snippets, AI Overviews, Knowledge Panel, Local Pack — every SERP feature Google shows.
| Endpoint | What it returns | Scale price |
|---|---|---|
GET /api/search/quick |
Web search, ~10 results | $0.03 / 10K Pages |
GET /api/search |
Web search, up to 100 results | $0.03 / 10K Pages |
GET /api/news |
News articles with freshness filter | $0.01 / 1K Queries |
GET /api/images |
Image search with size/color filters | $0.15 / 1K Queries |
GET /api/videos |
Video search results | $0.015 / 1K Queries |
GET /api/ai/rank/:engine |
AI Ranking — track brand citations in ChatGPT, Claude, Gemini, Perplexity | $1 / 1K Queries |
GET /api/social/youtube/search |
YouTube search, video, channel | $0.01 / 1K Queries |
GET /api/social/instagram/profile |
Instagram profile data | $0.05 / 1K Lookups |
Full reference: apiserpent.com/docs
import os, requests
API = "https://api.apiserpent.com"
KEY = os.environ["SERPENT_API_KEY"]
r = requests.get(
f"{API}/api/search/quick",
headers={"X-API-Key": KEY},
params={"q": "google serp api", "engine": "google", "country": "us"},
)
data = r.json()
for hit in data["results"]["organic"][:5]:
print(f"{hit['position']}. {hit['title']}\n {hit['url']}\n")→ See python/ for more: rank tracking, AI ranking, news monitoring, image search.
const API = "https://api.apiserpent.com";
const KEY = process.env.SERPENT_API_KEY;
const r = await fetch(
`${API}/api/search/quick?q=google+serp+api&engine=google&country=us`,
{ headers: { "X-API-Key": KEY } }
);
const data = await r.json();
data.results.organic.slice(0, 5).forEach(h =>
console.log(`${h.position}. ${h.title}\n ${h.url}`)
);→ See nodejs/ for the full set.
→ See curl/all-endpoints.sh — every endpoint as a copy-pasteable one-liner.
→ Import postman/serpent-api.postman_collection.json. Add your API key to the collection variable and run.
- SEO rank tracking — Track keyword positions across Google in 112 countries. See
python/rank-tracking.py. - AI brand visibility — Check whether your brand shows up in ChatGPT, Claude, Gemini, Perplexity answers. See
python/ai-rank-tracking.py. - News monitoring — Pull articles for any keyword + freshness filter (past hour / day / week / month). See
python/news-monitor.py. - Competitor research — Scrape SERPs at scale to map who ranks for what.
- AI training data — Build search-grounded datasets without a $10K/mo enterprise contract.
Is there a free tier? Yes — 10 free web searches when you sign up, no credit card required. After that, pay-as-you-go from $0.60 / 10K Pages.
Do credits expire? No. Credits added to your account never expire.
What's the difference between /api/search/quick and /api/search?
quick returns ~10 results from page 1. search (a.k.a. deep search) returns up to 100 results across multiple pages with richer SERP features. Both are flat-priced per call — pulling 100 results costs the same as 10.
Which engines support AI Overviews and People Also Ask? Google returns AI Overviews and PAA. Yahoo and Bing return PAA. DuckDuckGo doesn't return either. See the full feature matrix at apiserpent.com/docs.
Is the API legal? Serpent API returns publicly available SERP data. We don't bypass paywalls, log in to accounts, or scrape private pages. Use the data responsibly — for SEO, market research, brand monitoring, and AI training.
Can I cancel anytime? There's nothing to cancel. Pay-as-you-go means no subscription. Top up only when you want to use the API.
Examples in this repo are licensed CC BY-NC 4.0 — free to read, fork, and learn from. Not licensed for commercial redistribution. To use Serpent API itself, get a key at apiserpent.com.
- Website: https://apiserpent.com
- Sign up (free): https://apiserpent.com/login
- Docs: https://apiserpent.com/docs
- Pricing: https://apiserpent.com/pricing
- Playground: https://apiserpent.com/playground
- Status: https://apiserpent.com/status
Keywords this repo helps people find: cheapest google serp api, google search api, serpapi alternative, scaleserp alternative, valueserp alternative, scrape google results, ai rank tracking api, chatgpt brand monitoring, claude brand monitoring, gemini search api, perplexity api, bing serp api, yahoo serp api, duckduckgo api, free serp api, rank tracking api, seo automation api