Overview
Welcome to the Serpq API documentation. Our API provides a powerful, high-performance interface to access real-time search engine results. It's designed for developers who need fast, reliable, and structured data from Google Search for their applications, whether for SEO analytics, AI chatbots, or market research.
Authentication
To use the Serpq API, you need an API key. You can authenticate your requests by including your key in one of two ways:
1. X-API-KEY Header
The recommended method is to pass your API key in the X-API-KEY HTTP header.
--url 'https://api.serpq.com/search?query=pizza' \
--header 'X-API-KEY: YOUR_API_KEY'
2. Query Parameter
Alternatively, you can pass the API key as a query parameter named key.
--url 'https://api.serpq.com/search?query=pizza&key=YOUR_API_KEY'
Search API Reference
The Search API allows you to retrieve real-time search engine result pages (SERP) from global Google nodes. Query parameters allow you to refine location, language, and search tools.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
queryRequired | string | The search string you want to query. URL-encoded. |
| gl | string | The country code (e.g., 'us', 'uk'). Defaults to 'us'. |
| hl | string | The language code (e.g., 'en', 'es'). Defaults to 'en'. |
| page | integer | The result page number. Typically 1-10. |
| tbs | string | Time frame parameter (e.g., 'qdr:h' for past hour). |
| udm | string | Search type filter (e.g., '1' for Places, '2' for Images). |
Dynamic Options
tbs Options (Time)
udm Options (Type)
Localization Reference
Countries (gl)
| Afghanistan | af |
| United States | us |
| United Kingdom | uk |
| Germany | de |
Languages (hl)
| English | en |
| Arabic | ar |
| French | fr |
| Japanese | ja |