SerpApi - Web Search API

SerpApi - Web Search API

Data Access

Access 100+ APIs for search engine data with a simple API.

Visit API🔁 Alternatives

📚 Documentation & Examples

Everything you need to integrate with SerpApi - Web Search API

🚀 Quick Start Examples

SerpApi - Web Search API Javascript Examplejavascript
// SerpApi - Web Search API API Example
const response = await fetch('https://serpapi.com/', {
    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

  1. 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
  2. JSON output — Organic results, ads, knowledge graph, answer boxes, related questions, shopping panels, and richer SERP features as typed JSON
  3. Geo and device targeting — Specify country, language, location, and device (desktop / mobile / tablet)
  4. Legal & compliant — Public, transparent service used by enterprises for AI training, SEO, market research and price monitoring
  5. 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

Get Started Free →

Related APIs in Data Access