
π Documentation & Examples
Everything you need to integrate with SearchApi
π Quick Start Examples
// SearchApi API Example
const url = 'https://www.searchapi.io/api/v1/search';
const params = new URLSearchParams({
  engine: 'google',
  q: 'chatgpt'
});
fetch(`${url}?${params}`)
  .then(response => response.text())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));Real-time SERP Data with SearchApi
SearchApi provides a real-time Google, YouTube & Amazon SERP API for effortless SERP scraping. Delving into a diverse array of search engines, including Google Search, Google Shopping, Google Jobs, YouTube, Amazon, and more, SearchApi delivers structured data. With precise location targeting, extensive search results, and a reliable 99.9% SLA guarantee, SearchApi ensures accuracy and dependability. Its pay-for-success pricing model and excellent developer experience make it a go-to solution for SERP data needs.
Benefits of Using SearchApi API
- Real-time Data: Access up-to-the-moment SERP data from multiple search engines.
- Precise Location Targeting: Tailor your search queries with accurate location targeting.
- 99.9% SLA Guarantee: Rely on SearchApi's commitment to service availability.
- Pay-for-Success Pricing: Pay only for successful API calls, optimizing costs.
- Open-Source Integrations: Seamlessly integrate with open-source tools like LangChain and SerpBear.
JavaScript API Example
const url = 'https://www.searchapi.io/api/v1/search';
const params = new URLSearchParams({
  engine: 'google',
  q: 'chatgpt'
});
fetch(`${url}?${params}`)
  .then(response => response.text())
  .then(data => console.log(data))
  .catch(error => console.error('Error:', error));
Python API Example
import requests
url = 'https://www.searchapi.io/api/v1/search'
params = {
  'engine': 'google',
  'q': 'chatgpt'
}
response = requests.get(url, params=params)
print(response.text)
cURL API Example
curl 'https://www.searchapi.io/api/v1/search?engine=google&q=chatgpt'
Performance & Stats
π 30-Day Uptime History
Daily uptime tracking showing online vs offline minutes










