Google API endpoint
Returns Google autosuggest query completions from the public unauthenticated suggest JSON endpoint. `source` selects the web, YouTube, or shopping suggestion list, and `rich=true` adds a type, relevance score, and short description to each suggestion.
/google/suggestMCP tool: google_suggest
Query parameters:
q: required. Search query prefix. Example: openai.count: optional. Suggestions to return. Defaults to 10, clamped to 1..12.country: optional. Google result country. Defaults to us.lang: optional. Google UI language. Defaults to en.source: optional. Which Google suggestion list to read. Allowed values: web, youtube, shopping. Defaults to web. Any other value returns 400.rich: optional boolean. When true, each suggestion also carries type (Google's suggestion class, such as QUERY or NAVIGATION), relevance (Google's ranking score), and description (a short label Google attaches to some rows, such as a site name). Defaults to false.Notable response behavior:
503.source=youtube returns the YouTube search-box list and source=shopping the Google Shopping list; both differ from web for the same prefix. The response echoes the chosen source.type, relevance, and description are omitted unless rich=true; description is omitted when Google sends none for that row.| Field | Filled in, of 10 checked | Values in the sample |
|---|---|---|
| position | 10 | 1 to 10, median 5 |
| query | 10 | “openai” and 9 other values |
| Parameter | Type | Required | Default | Description | Example |
|---|---|---|---|---|---|
| q | string | Yes | Search query prefix | openai | |
| count | integer | No | 10 | Suggestions to return; defaults to 10, clamped to 1..12 Minimum: 1. Maximum: 12. | 10 |
| country | string | No | us | Google result country; defaults to us | us |
| lang | string | No | en | Google UI language; defaults to en | en |
| source | string | No | web | Suggestion source; defaults to web Allowed values: web, youtube, shopping. | |
| rich | boolean | No | false | Add Google's type, relevance score, and description to each suggestion; defaults to false | false |
| x-api-key (header) | string | Yes | API key required |
curl -X GET "https://api.crawlora.net/api/v1/google/suggest?q=openai&count=10&country=us&lang=en&source=web&rich=true" \ -H "x-api-key: $CRAWLORA_API_KEY"
{
"code": 200,
"msg": "OK",
"data": {
"query": "openai",
"source": "web",
"suggestions": [
{
"position": 1,
"query": "openai api"
}
]
}
}Request schema
No body schema
Response schema
#/definitions/google.suggestResponseDoc
| Field | Type | Required | Enum | Bounds | Example | Description |
|---|---|---|---|---|---|---|
| code | integer | No | 200 | |||
| data | google.SuggestResponse | No | ||||
| data.query | string | No | openai | Query prefix the suggestions were requested for. | ||
| data.source | string | No | web | Suggestion list used: `web`, `youtube` or `shopping`. | ||
| data.suggestions | array | No | Search suggestions Google returned, in order. | |||
| data.suggestions[].description | string | No | OpenAI Blog | Short descriptor Google shows beside the suggestion. Only set when the request used `rich=true`. | ||
| data.suggestions[].position | integer | No | 1 | Rank of the suggestion in the list, starting at 1. | ||
| data.suggestions[].query | string | No | openai api | Suggested search query. | ||
| data.suggestions[].relevance | integer | No | 601 | Relevance score Google gives the suggestion. Only set when the request used `rich=true`. | ||
| data.suggestions[].type | string | No | QUERY | Suggestion type as Google labels it, for example `QUERY`. Only set when the request used `rich=true`. | ||
| msg | string | No | OK |
| Status | Description | Schema |
|---|---|---|
| 400 | Missing or invalid query | #/definitions/app.Response |
| 429 | Rate limit exceeded | #/definitions/app.Response |
| 500 | Internal server error | #/definitions/app.Response |
| 503 | Google upstream request failed | #/definitions/app.Response |
Use environment variables for secrets and keep Crawlora API keys server-side.
curl -X GET "https://api.crawlora.net/api/v1/google/suggest?q=openai&count=10&country=us&lang=en&source=web&rich=true" \
-H "x-api-key: $CRAWLORA_API_KEY"