New The MCP server is live: all 45 APIs in Claude, Cursor or any MCP client. Connect your agent

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.

At a glance

SERP API

25 credits / call
Free calls / month
40
Search Engines
2
Result Types
8+
Response Speed
<1s
Get your free API key

40 free calls on the free plan

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

MCP · for your agent

Hand the SERP API to your agent

Connect Claude, Cursor or any MCP client once, then ask in plain words. Your agent finds this API, reads its docs and makes the call: 25 credits per call, the same as REST, from your team's balance.

Check where you rank

“Where does contoso.com rank on Google for 'invoicing software for freelancers'? Compare our title and description with the top 3.”

list_apis · get_api_docsfree

api_request GET /serp/v1/search?q=invoicing+software+for+freelancers&gl=US&hl=en 25 cr

+ URL Metadata API5 cr

Organic results with Contoso's position, and the top 3 pages' titles and descriptions vs. yours.

Spot competitors bidding on your brand

“Are competitors bidding on our brand name? Search Google for 'acme invoicing' and list every ad that isn't ours.”

list_apis · get_api_docsfree

api_request GET /serp/v1/search?q=acme+invoicing&gl=US 25 cr

Paid ads on your brand query with headline, display URL and landing page, yours excluded.

Build a local prospect list

“List coworking spaces in Lisbon from Google Maps, then pull rating, website and phone for the top 10.”

list_apis · get_api_docsfree

api_request GET /serp/v1/search?url=https://www.google.com/maps/search/coworking+spaces+lisbon 25 cr

+ Google Maps Data API25 cr

Maps results for the search, with the top 10 enriched with rating, website and phone.

$ claude mcp add --transport http apicodex https://mcp.apicodex.io

Illustrative asks; the calls and prices are real. Claude, Cursor, VS Code and Windsurf setup: mcp.apicodex.io

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.

GET /serp/v1/search
Open in Playground

Parameters

Request · HTTP
GET /serp/v1/search?q=hamburger&gl=US&hl=en HTTP/1.1
Host: api.apicodex.io
X-Api-Key: YOUR_API_KEY
Response · JSON 200 OK
{
"organic": [
  {
    "link": "https://en.wikipedia.org/wiki/Hamburger",
    "display_link": "https://en.wikipedia.org › wiki › Hamburger",
    "title": "Hamburger",
    "description": "A hamburger, or simply a burger, is a dish consisting of fillings..."
  }
],
"related_searches": [
  "hamburger recipes",
  "hamburger near me",
  "best hamburger"
],
"knowledge_graph": {
  "title": "Hamburger",
  "description": "A hamburger is a food consisting of fillings..."
},
"ads": [
  {
    "title": "Best Burgers Delivered",
    "link": "https://example.com/burgers",
    "description": "Order fresh hamburgers online..."
  }
],
"pagination": {
  "current": 1,
  "next": "https://www.google.com/search?q=hamburger&start=10"
}
}

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

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.

headers
{
"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.

request · http
GET /serp/v1/search?q=hamburger&gl=US&hl=en HTTP/1.1
Host: api.apicodex.io
X-Api-Key: YOUR_API_KEY
response · json
{
"organic": [
  {
    "link": "https://en.wikipedia.org/wiki/Hamburger",
    "display_link": "https://en.wikipedia.org › wiki › Hamburger",
    "title": "Hamburger",
    "description": "A hamburger, or simply a burger, is a dish consisting of fillings..."
  }
],
"related_searches": [
  "hamburger recipes",
  "hamburger near me",
  "best hamburger"
],
"knowledge_graph": {
  "title": "Hamburger",
  "description": "A hamburger is a food consisting of fillings..."
},
"ads": [
  {
    "title": "Best Burgers Delivered",
    "link": "https://example.com/burgers",
    "description": "Order fresh hamburgers online..."
  }
],
"pagination": {
  "current": 1,
  "next": "https://www.google.com/search?q=hamburger&start=10"
}
}

Code examples

curl
curl -X GET "https://api.apicodex.io/serp/v1/search?q=hamburger&gl=US&hl=en" \
  -H "X-Api-Key: YOUR_API_KEY"

Search Parameters

Required parameters

  • q Search query, run on Google. Or send url instead (not both)

Optional parameters

  • url A complete Google, Bing, Yandex or DuckDuckGo results URL to fetch instead of q
  • gl 2-letter country code for localized results (e.g. US)
  • hl Language code, optionally with a region (e.g. en, pt-BR)
  • tbm Search type: images, shopping, news, videos or local (Google's isch, shop, nws, vid and lcl codes work too)
  • num Results per page, 1–100. Accepted for compatibility, but Google no longer honours it; page with start
  • start Result offset for pagination (e.g. 10)
  • mobile Device: 1 or true (phone), ios, ipad, android or android_tablet; 0, false or omit for desktop
  • browser chrome, safari or firefox (firefox is desktop-only)

Pricing

SERP API Pricing

This API costs 25 credits per request. Credits are shared across every API on your plan.

Cost estimator

requests per month → cheapest plan that covers it

Estimate your monthly cost

Drag the slider to match your expected request volume. We'll recommend the cheapest plan that covers it.

10,000

Recommended plan

Starter

$29.99 /month

Credits used
Credits included
Cost per 1K requests
Choose Starter

Free

Free
1,000 credits · ~40 requests/mo · 2 rps
  • All APIs included
  • No credit card required
  • Full documentation and examples
  • MCP server for your AI agents
  • Up to 5 active API keys
Start for free

Starter

Popular
$29.99 /month
50,000 credits · ~2,000 requests/mo · 10 rps
  • All APIs included
  • Email support
  • Usage dashboard and analytics
  • MCP server for your AI agents
  • Up to 5 active API keys
Start with Starter

Pro

$99.99 /month
250,000 credits · ~10,000 requests/mo · 25 rps
  • All APIs included
  • Priority support
  • MCP server for your AI agents
  • Up to 5 active API keys
Start with Pro

Need a different plan?

Tell us about your API, volume, or support requirements.

Contact us

FAQ

Frequently asked questions

Ready to integrate SERP?