SERP tracking is the backbone of any SEO operation. Knowing where your pages rank for target keywords, and how those positions shift over time, drives content strategy and link-building priorities. Scavio's Google Search API returns structured ranking data including organic positions, featured snippets, People Also Ask, and AI overviews. Call it daily on your keyword list and store results to build a full ranking history.
API Endpoint
POST https://api.scavio.dev/api/v1/searchPython Example
import requests
API_KEY = "YOUR_API_KEY"
keywords = ["best crm software", "crm for startups", "crm comparison 2026"]
for keyword in keywords:
response = requests.post(
"https://api.scavio.dev/api/v1/search",
headers={
"Authorization": f"Bearer {API_KEY}",
"Content-Type": "application/json",
},
json={"query": keyword, "country_code": "us"},
)
data = response.json()
for result in data.get("organic_results", []):
if "yourdomain.com" in result.get("link", ""):
print(f"[{keyword}] Position {result['position']}: {result['link']}")
break
else:
print(f"[{keyword}] Not found in top results")JavaScript Example
const API_KEY = "YOUR_API_KEY";
const keywords = ["best crm software", "crm for startups", "crm comparison 2026"];
for (const keyword of keywords) {
const response = await fetch("https://api.scavio.dev/api/v1/search", {
method: "POST",
headers: {
Authorization: `Bearer ${API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({ query: keyword, country_code: "us" }),
});
const data = await response.json();
const match = (data.organic_results || []).find((r) =>
r.link?.includes("yourdomain.com")
);
if (match) {
console.log(`[${keyword}] Position ${match.position}: ${match.link}`);
} else {
console.log(`[${keyword}] Not found in top results`);
}
}Expected Response
{
"search_metadata": {
"status": "success",
"query": "best crm software",
"country_code": "us"
},
"organic_results": [
{
"position": 1,
"title": "10 Best CRM Software of 2026 (Ranked & Reviewed)",
"link": "https://example.com/best-crm",
"snippet": "We tested 40+ CRM platforms to find the best options for small businesses..."
},
{
"position": 2,
"title": "Best CRM Software: Compare Top Providers",
"link": "https://yourdomain.com/crm-guide",
"snippet": "Our comprehensive guide to the top CRM platforms..."
}
],
"people_also_ask": [
{ "question": "What is the best CRM for a small business?", "snippet": "..." },
{ "question": "Is HubSpot CRM really free?", "snippet": "..." }
]
}Benefits
- Track keyword rankings across any country with the country_code parameter
- Detect featured snippet wins and People Also Ask appearances
- Monitor AI overview mentions for your domain
- Structured JSON makes it easy to store and chart ranking trends
- No browser automation or proxy rotation required
- Run daily or weekly to build a complete ranking history