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/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

  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 β†’

πŸ“Š 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Apr 17Apr 19Apr 21Apr 23Apr 25Apr 27Apr 29May 1May 3May 5May 7May 9May 11May 13May 1604008001440Minutes
Online
Offline

Related APIs in Data Access