API Documentation
Learn how to integrate SerpDex APIs into your applications with detailed guides and code examples.
Trusted by developers worldwide
API Endpoints & Parameters
Explore the available API services and their specific parameters.
Google Search API
Access real-time organic search results from Google.
Base URL
https://api.serpdex.xyz/callParameters
| Name | Type | Required | Description |
|---|---|---|---|
| ApiKey | string | Yes | Your unique API key. |
| cat | string | Yes | Category of the search, e.g., 'google-search'. |
| query | string | Yes | The search query string. |
| num | number | No | Number of results to return (1-100). Default: 20. |
| country_code | string | No | 2-letter country code (e.g., 'us', 'uk'). |
| tbs | string | No | Time-based search filter (e.g., 'h' for past hour, 'd' for past 24 hours, 'w' for past week, 'm' for past month, 'y' for past year). |
Code Examples
cURL
curl -X GET "https://api.serpdex.xyz/call?ApiKey=YOUR_API_KEY&cat=google-search&query=YOUR_SEARCH_QUERY&num=10&tbs=d&country_code=us"JavaScript (Fetch API)
const response = await fetch('https://api.serpdex.xyz/call?ApiKey=YOUR_API_KEY&cat=google-search&query=YOUR_SEARCH_QUERY&num=10&tbs=d&country_code=us', {
method: 'GET',
headers: {
'Accept': 'application/json',
'User-Agent': 'YourAppName/1.0'
}
});
const data = await response.json();
console.log(data);