SearchTextRequest

Request body for text search

EnvironmentGeocodingGeolocationMapsNavigationPlacesRoutingSolar

Properties

Name Type Description
textQuery string The text query for the search
includedType string Restrict results to a specific place type
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 to return (1-20)
locationBias object
locationRestriction object
priceLevels array Filter results by price level
openNow boolean Return only places that are currently open
minRating number Filter results to those with at least this rating
strictTypeFiltering boolean If true, only return results that match the includedType exactly
View JSON Schema on GitHub

JSON Schema

google-maps-searchtextrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/SearchTextRequest",
  "title": "SearchTextRequest",
  "type": "object",
  "description": "Request body for text search",
  "properties": {
    "textQuery": {
      "type": "string",
      "description": "The text query for the search",
      "example": "pizza in New York"
    },
    "includedType": {
      "type": "string",
      "description": "Restrict results to a specific place type",
      "example": "restaurant"
    },
    "languageCode": {
      "type": "string",
      "description": "The language code for results",
      "example": "en"
    },
    "regionCode": {
      "type": "string",
      "description": "The region code for biasing results",
      "example": "US"
    },
    "rankPreference": {
      "type": "string",
      "description": "How results should be ranked",
      "enum": [
        "RELEVANCE",
        "DISTANCE"
      ],
      "example": "RELEVANCE"
    },
    "maxResultCount": {
      "type": "integer",
      "description": "Maximum number of results to return (1-20)",
      "minimum": 1,
      "maximum": 20,
      "example": 10
    },
    "locationBias": {
      "$ref": "#/components/schemas/LocationBias"
    },
    "locationRestriction": {
      "$ref": "#/components/schemas/LocationRestriction"
    },
    "priceLevels": {
      "type": "array",
      "description": "Filter results by price level",
      "items": {
        "type": "string",
        "enum": [
          "PRICE_LEVEL_INEXPENSIVE",
          "PRICE_LEVEL_MODERATE",
          "PRICE_LEVEL_EXPENSIVE",
          "PRICE_LEVEL_VERY_EXPENSIVE"
        ]
      },
      "example": []
    },
    "openNow": {
      "type": "boolean",
      "description": "Return only places that are currently open",
      "example": true
    },
    "minRating": {
      "type": "number",
      "format": "double",
      "description": "Filter results to those with at least this rating",
      "minimum": 0.0,
      "maximum": 5.0,
      "example": 42.5
    },
    "strictTypeFiltering": {
      "type": "boolean",
      "description": "If true, only return results that match the includedType exactly",
      "example": true
    }
  },
  "required": [
    "textQuery"
  ]
}

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.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/google-maps-searchtextrequest"
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 email required.

A second provider on the same verified email joins the account you already have.