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.

curl --request GET \
--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.

curl --request GET \
--url 'https://api.serpq.com/search?query=pizza&key=YOUR_API_KEY'
GEThttps://api.serpq.com

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

ParameterTypeDescription
queryRequired
stringThe search string you want to query. URL-encoded.
glstringThe country code (e.g., 'us', 'uk'). Defaults to 'us'.
hlstringThe language code (e.g., 'en', 'es'). Defaults to 'en'.
pageintegerThe result page number. Typically 1-10.
tbsstringTime frame parameter (e.g., 'qdr:h' for past hour).
udmstringSearch type filter (e.g., '1' for Places, '2' for Images).

Dynamic Options

tbs Options (Time)

qdr:hPast Hour
qdr:dPast 24 Hours
qdr:wPast Week
qdr:mPast Month

udm Options (Type)

1Places / Maps
2Images
3Videos
14News

Localization Reference

Countries (gl)

Afghanistanaf
United Statesus
United Kingdomuk
Germanyde

Languages (hl)

Englishen
Arabicar
Frenchfr
Japaneseja