Google Maps Platform · Schema
SearchNearbyRequest
Request body for nearby search
EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar
Properties
| Name | Type | Description |
|---|---|---|
| includedTypes | array | Place types to include in results |
| excludedTypes | array | Place types to exclude from results |
| includedPrimaryTypes | array | Primary place types to include |
| excludedPrimaryTypes | array | Primary place types to exclude |
| languageCode | string | The language code for results |
| regionCode | string | The region code for biasing results |
| rankPreference | string | How results should be ranked |
| maxResultCount | integer | Maximum number of results (1-20) |
| locationRestriction | object |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "#/components/schemas/SearchNearbyRequest",
"title": "SearchNearbyRequest",
"type": "object",
"description": "Request body for nearby search",
"properties": {
"includedTypes": {
"type": "array",
"description": "Place types to include in results",
"items": {
"type": "string"
},
"example": [
"restaurant"
]
},
"excludedTypes": {
"type": "array",
"description": "Place types to exclude from results",
"items": {
"type": "string"
},
"example": []
},
"includedPrimaryTypes": {
"type": "array",
"description": "Primary place types to include",
"items": {
"type": "string"
},
"example": []
},
"excludedPrimaryTypes": {
"type": "array",
"description": "Primary place types to exclude",
"items": {
"type": "string"
},
"example": []
},
"languageCode": {
"type": "string",
"description": "The language code for results",
"example": "example_value"
},
"regionCode": {
"type": "string",
"description": "The region code for biasing results",
"example": "example_value"
},
"rankPreference": {
"type": "string",
"description": "How results should be ranked",
"enum": [
"POPULARITY",
"DISTANCE"
],
"example": "POPULARITY"
},
"maxResultCount": {
"type": "integer",
"description": "Maximum number of results (1-20)",
"minimum": 1,
"maximum": 20,
"example": 10
},
"locationRestriction": {
"$ref": "#/components/schemas/LocationRestriction"
}
},
"required": [
"locationRestriction"
]
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-maps-searchnearbyrequest"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.