π Documentation & Examples
Everything you need to integrate with SerpApi - Web Search API
π Quick Start Examples
// SerpApi - Web Search API API Example
const response = await fetch('https://serpapi.com/use-cases/web-search-api', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);SerpApi - Web Search API
SerpApi provides a unified Web Search API that lets developers access structured search engine results data from Google, Bing, Yahoo, YouTube, Amazon, Walmart, eBay, Baidu, Yandex and dozens of other engines through a single, consistent JSON API. CAPTCHAs, proxies, browser automation and parsing are all handled for you.
Base URL: https://serpapi.com/search
Key Features
- 100+ structured search APIs β Google Search, Google News, Google Trends, Google Shopping, Google Maps, Google Scholar, Google Flights, Google Jobs, Google Finance, Google Images, YouTube, Amazon, and more
- JSON output β Organic results, ads, knowledge graph, answer boxes, related questions, shopping panels, and richer SERP features as typed JSON
- Geo and device targeting β Specify country, language, location, and device (desktop / mobile / tablet)
- Legal & compliant β Public, transparent service used by enterprises for AI training, SEO, market research and price monitoring
- High-volume infrastructure β Built for production scale with a 100% success-or-no-charge guarantee
Authentication
All requests require an api_key query parameter. Sign up at serpapi.com to get a free key with a monthly search quota.
GET https://serpapi.com/search?engine=google&q=coffee&api_key=YOUR_API_KEY
Example Request
curl 'https://serpapi.com/search.json?engine=google&q=public+apis&api_key=YOUR_API_KEY'
JavaScript Example
const params = new URLSearchParams({
engine: 'google',
q: 'public apis',
api_key: 'YOUR_API_KEY'
});
const response = await fetch(`https://serpapi.com/search.json?${params}`);
const data = await response.json();
console.log(data.organic_results);
Python Example
import requests
params = {
'engine': 'google',
'q': 'public apis',
'api_key': 'YOUR_API_KEY'
}
response = requests.get('https://serpapi.com/search.json', params=params)
data = response.json()
for result in data.get('organic_results', []):
print(result['title'], '-', result['link'])
Use Cases
- SEO & rank tracking β Monitor keyword positions across geographies
- AI & LLM grounding β Feed real-time search results to RAG pipelines and agents
- Price & product monitoring β Track Shopping, Amazon, Walmart, eBay listings
- News & trends analysis β Aggregate Google News, Trends, and Scholar data
- Job market research β Pull structured Google Jobs and listing data
π 30-Day Uptime History
Daily uptime tracking showing online vs offline minutes









