
π Documentation & Examples
Everything you need to integrate with Search API
π Quick Start Examples
// Search API API Example
const response = await fetch('https://www.searchapi.io/', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);
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
// JavaScript API Example
const axios = require('axios');
const url = "https://www.searchapi.io/api/v1/search";
const params = {
"engine": "google",
"q": "restaurants near me",
"location": "New York,United States",
"api_key": "YOUR_API_KEY"
};
axios.get(url, { params })
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error:', error);
});
π 30-Day Uptime History
Daily uptime tracking showing online vs offline minutes