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.
GET /search
GET /search
Search Google and retrieve structured web results with metadata.
Search query/keywords.
Number of results to return. Max
10. Default 10.Starting index for pagination. Default
1.Safe search level. Options:
off, medium, high.Language restrict (e.g.
lang_en for English, lang_es for Spanish).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).File type filter (e.g.
pdf, doc, ppt, xls).The search query used.
Estimated total results available.
Search execution time in seconds.
Response
Pagination
To get the next page of results, increment thestart parameter by the number of results per page:Filter Examples
Date Restrict Options
| Value | Description |
|---|---|
d[n] | Last n days (e.g. d7 = last 7 days) |
w[n] | Last n weeks (e.g. w2 = last 2 weeks) |
m[n] | Last n months (e.g. m6 = last 6 months) |
y[n] | Last n years (e.g. y1 = last year) |
Language Codes
| Code | Language |
|---|---|
lang_en | English |
lang_es | Spanish |
lang_fr | French |
lang_de | German |
lang_ja | Japanese |
lang_zh-CN | Chinese (Simplified) |
lang_ar | Arabic |
lang_pt | Portuguese |
