Real-time search engine data extraction
SERP API
A powerful API for extracting structured data from search engine results pages (SERPs). This API provides comprehensive access to search results from Google and Bing with consistent JSON formatting for easy integration.
Built for SEO professionals, researchers, and developers who need reliable access to search engine data for competitive analysis, market intelligence, and SEO monitoring.
Free tier included, no credit card required. One key works across every API.
Key features
- Multi-engine support with consistent format across Google and Bing
- URL-based approach for simplified integration
- Mobile vs desktop results differentiation
- Comprehensive data extraction including ads, knowledge graphs, and related searches
- Search type flexibility for images, news, videos, and shopping results
- Real-time search engine data retrieval
- Structured JSON output for easy parsing
Built for
- SEO monitoring and analysis
- Competitive intelligence
- Market research and trends
- Content strategy optimization
- SERP feature tracking
- Rank monitoring tools
- Academic research projects
- Business intelligence dashboards
Try it
Build the request for your data
Edit the parameters below and see the exact request and curl command you'd send. No key required to preview.
Documentation
SERP API Documentation
The SERP API provides comprehensive extraction of search engine results data from Google and Bing. This documentation outlines how to effectively integrate and utilize the API for SEO monitoring, competitive analysis, and market research.
Base URL
https://api.apicodex.io/serp
Authentication
Authenticate every request with your API key: send it in an X-Api-Key header, or pass it as an ?apikey= query parameter.
{
"X-Api-Key": "YOUR_API_KEY"
}
Request and response
Illustrative values. Confirm current endpoint behavior, quotas, and data freshness in the API documentation before production use.
Code examples
curl -X GET "https://api.apicodex.io/serp/v1/search?q=hamburger&engine=google" \
-H "X-Api-Key: YOUR_API_KEY"
const axios = require('axios');
const options = {
method: 'GET',
url: 'https://api.apicodex.io/serp/v1/search',
params: {
q: 'hamburger',
engine: 'google',
mobile: 'false'
},
headers: {
'X-Api-Key': 'YOUR_API_KEY'
}
};
try {
const response = await axios.request(options);
console.log(response.data);
} catch (error) {
console.error(error);
}
import requests
url = "https://api.apicodex.io/serp/v1/search"
querystring = {
"q": "hamburger",
"engine": "google",
"mobile": "false"
}
headers = {
"X-Api-Key": "YOUR_API_KEY"
}
response = requests.get(url, headers=headers, params=querystring)
print(response.json())
Coming soon · MCP
Use the SERP API from your AI agent
The API Codex MCP server will expose this API, and the rest of the catalog, to Claude, Cursor and any MCP client as tools. Same key, same credits, one config entry.
Pricing
SERP API Pricing
This API costs 25 credits per request. Credits are shared across every API on your plan.
FAQ
Frequently asked questions
Keep building