API Documentation
Complete guide to using the Google Search Results (SERP) API
Overview
A high-performance Google Search Results API wrapper with generous free tier and multiple output formats. Built on Next.js.
1,000 Free Monthly Requests
Generous free tier to get started
Multiple Output Formats
JSON (default), XML, CSV, and minimal formats
Quick Start
curl -X GET "https://search.payloadic.com/api/v1/serp/google/web?q=apple%20inc&gl=us&hl=en" \
-H "X-RapidAPI-Proxy-Secret: your_secret"Authentication
This API requires RapidAPI authentication. In production, include the X-RapidAPI-Proxy-Secret header with your subscription secret.
Note:
In local development, authentication is bypassed. The API is only accessible via RapidAPI in production.
API Endpoints
Google Search Results (SERP)
Each search type is available as a dedicated endpoint. Same query parameters and response formats (JSON, XML, CSV, minimal) across all endpoints.
GET /api/v1/serp/google/webWeb SearchGET /api/v1/serp/google/imagesImage SearchGET /api/v1/serp/google/newsNews SearchGET /api/v1/serp/google/placesPlace SearchGET /api/v1/serp/google/videosVideo SearchGET /api/v1/serp/google/shoppingShopping SearchQuery Parameters
Example Request (Web Search)
curl -X GET "https://search.payloadic.com/api/v1/serp/google/web?q=apple%20inc&gl=us&hl=en&num=10" \
-H "X-RapidAPI-Proxy-Secret: your_secret"Example Response (JSON)
{
"query": {
"q": "apple inc",
"gl": "us",
"hl": "en",
"num": 10
},
"knowledgeGraph": {
"title": "Apple",
"type": "Technology company",
"website": "http://www.apple.com/",
"description": "Apple Inc. is an American multinational technology company..."
},
"organic": [
{
"title": "Apple",
"link": "https://www.apple.com/",
"snippet": "Discover the innovative world of Apple...",
"position": 1
}
],
"peopleAlsoAsk": [
{
"question": "What does Apple Inc mean?",
"snippet": "Apple Inc., formerly Apple Computer, Inc...."
}
],
"relatedSearches": [
{
"query": "Who invented the iPhone"
}
],
"meta": {
"timestamp": 1706457600
}
}Health Check
GET /api/v1/pingReturns API health status. No authentication required.
curl -X GET "https://search.payloadic.com/api/v1/ping"{
"status": "ok"
}Response Formats
JSON
?format=jsonStandard JSON response with all fields (default)
XML
?format=xmlXML formatted response
CSV
?format=csvCSV formatted response (organic results only)
MINIMAL
?format=minimalSimplified JSON with only essential fields
Error Handling
Bad Request
Invalid request parameters or validation errors
Unauthorized
Missing or invalid RapidAPI authentication header
Service Unavailable
Search API errors, rate limits, or timeouts
Internal Server Error
Unexpected server errors
Code Examples
JavaScript (Fetch)
const response = await fetch(
'https://search.payloadic.com/api/v1/serp/google/web?q=apple&gl=us&hl=en',
{
headers: {
'X-RapidAPI-Proxy-Secret': 'your_secret'
}
}
);
const data = await response.json();
console.log(data);Python (Requests)
import requests
url = "https://search.payloadic.com/api/v1/serp/google/web"
params = {
"q": "apple",
"gl": "us",
"hl": "en"
}
headers = {
"X-RapidAPI-Proxy-Secret": "your_secret"
}
response = requests.get(url, params=params, headers=headers)
data = response.json()
print(data)Node.js (Axios)
const axios = require('axios');
const response = await axios.get(
'https://search.payloadic.com/api/v1/serp/google/web',
{
params: {
q: 'apple',
gl: 'us',
hl: 'en'
},
headers: {
'X-RapidAPI-Proxy-Secret': 'your_secret'
}
}
);
console.log(response.data);