Understanding how competitors appear in search results is essential for SEO and paid search strategy. Scavio's Google Search API returns organic results, ads, featured snippets, and SERP features for any query. Search for your target keywords and analyze which competitors rank, what copy they use, and which SERP features they own. Automate this across hundreds of keywords to build a complete competitive map.
API Endpoint
POST https://api.scavio.dev/api/v1/searchPython Example
import requests
from collections import Counter
API_KEY = "YOUR_API_KEY"
keywords = [
"project management software",
"best project management tool",
"project management for teams",
]
domain_counts = Counter()
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", [])[:10]:
link = result.get("link", "")
# Extract domain
domain = link.split("/")[2] if len(link.split("/")) > 2 else link
domain_counts[domain] += 1
print("Competitor Visibility (appearances in top 10):")
for domain, count in domain_counts.most_common(10):
print(f" {domain}: {count}")JavaScript Example
const API_KEY = "YOUR_API_KEY";
const keywords = [
"project management software",
"best project management tool",
"project management for teams",
];
const domainCounts = {};
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();
for (const result of (data.organic_results || []).slice(0, 10)) {
const domain = new URL(result.link).hostname;
domainCounts[domain] = (domainCounts[domain] || 0) + 1;
}
}
const sorted = Object.entries(domainCounts).sort((a, b) => b[1] - a[1]);
console.log("Competitor Visibility (appearances in top 10):");
for (const [domain, count] of sorted.slice(0, 10)) {
console.log(` ${domain}: ${count}`);
}Expected Response
{
"search_metadata": {
"status": "success",
"query": "project management software",
"country_code": "us"
},
"organic_results": [
{
"position": 1,
"title": "Best Project Management Software of 2026",
"link": "https://www.forbes.com/advisor/business/best-project-management-software/",
"snippet": "We reviewed 30+ project management tools to find the best..."
},
{
"position": 2,
"title": "Project Management Software | Asana",
"link": "https://asana.com/uses/project-management",
"snippet": "Asana helps teams orchestrate work, from daily tasks to strategic initiatives..."
},
{
"position": 3,
"title": "Monday.com: A New Way of Working",
"link": "https://monday.com",
"snippet": "Streamline workflows and gain clear visibility across teams..."
}
],
"ads": [
{
"position": 1,
"title": "ClickUp - Free Project Management",
"link": "https://clickup.com",
"description": "Replace all your work tools with ClickUp..."
}
]
}Benefits
- Map competitor SERP presence across your entire keyword set
- Track which competitors own featured snippets and PAA boxes
- Monitor competitor ad copy and landing page strategies
- Structured JSON makes it easy to build competitive dashboards
- Identify keyword gaps where competitors rank and you do not
- Run regularly to detect ranking shifts and new entrants