Skip to main content

Google Search

Base URL: https://drain.lat/api/v1/googlesearch
Powered by Google Custom Search API. Results are cached for 10 minutes per unique query to reduce API quota usage.
Search Google and retrieve structured web results with metadata.
string
required
Search query/keywords.
number
Number of results to return. Max 10. Default 10.
number
Starting index for pagination. Default 1.
string
Safe search level. Options: off, medium, high.
string
Language restrict (e.g. lang_en for English, lang_es for Spanish).
string
Date restrict filter (e.g. d7 for last 7 days, m1 for last month, y1 for last year).
Restrict results to a specific site (e.g. github.com).
string
File type filter (e.g. pdf, doc, ppt, xls).
string
The search query used.
number
Estimated total results available.
number
Search execution time in seconds.
array
Response

Pagination

To get the next page of results, increment the start parameter by the number of results per page:

Filter Examples

Date Restrict Options

Language Codes

Uses Google Custom Search API quota (100 queries per day on free tier). Returns 429 error when quota is exceeded. Results are cached for 10 minutes to reduce quota usage.