GET /customsearch/v1
Perform a Google Custom Search using the cx you provide. If omitted, the request uses YouRouter’s default search engine.
This endpoint is useful when you need fresh web results, documentation lookup, or a programmable search engine for your own sites.
Search requests are covered by Zero Completion Insurance. Failed or empty search results are not billed as successful completions.
Parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
q | string | The search query. | Yes |
cx | string | Custom Search Engine ID. Uses YouRouter’s default if omitted. | No |
num | integer | Number of search results to return (1-10). | No |
start | integer | The index of the first result to return. | No |
siteSearch | string | Specifies a site to search. | No |
Response Format
A successful response contains an
items array of search result objects.Typical Use Cases
Q&A over your own docs
Q&A over your own docs
Create a Google Programmable Search Engine that indexes only your documentation domains, then pass the top results into a model to answer product questions with fresher grounding.
Real-time web retrieval
Real-time web retrieval
Use search results to fetch recent articles, pages, or announcements before asking a model to summarize or reason over them.