Google Maps Platform Area Insights V1 API

The Area Insights V1 API from Google Maps Platform — 1 operation(s) for area insights v1.

GitHub OpenAPI

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1:computeInsights Count businesses of a type in an area · Compute insights v1 #
Ask an LLM
“How many coffee shops are there in a neighborhood?”
“Can I list places in an area filtered by type, rating or opening status?”
Tell an agent
Count places matching {filter}.
Return {insights} for places matching {filter}.

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/google-maps:google-maps-area-insights-v1-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

google-maps-area-insights-v1-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Places Aggregate API V1 Area Insights V1 API
  version: v1
  description: Generated from Google's published Discovery document for Places Aggregate API (areainsights v1, revision 20261110). 1 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://areainsights.googleapis.com
tags:
- name: Area Insights V1
paths:
  /v1:computeInsights:
    post:
      operationId: areainsights.computeInsights
      summary: Compute insights v1
      description: 'This method lets you retrieve insights about areas using a variety of filter such as: area, place type, operating status, price level and ratings. Currently "count" and "places" insights are supported. With "count" insights you can answer questions such as "How many restaurant are located in California that are operational, are inexpensive and have an average rating of at least 4 stars" (see `insight` enum for more details). With "places" insights, you can determine which places match the requested filter. Clients can then use those place resource names to fetch more details about each individual place using the Places API.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ComputeInsightsRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ComputeInsightsResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/cloud-platform
      - apiKey: []
      tags:
      - Area Insights V1
components:
  schemas:
    PlaceInsight:
      properties:
        place:
          type: string
          description: The unique identifier of the place. This resource name can be used to retrieve details about the place using the [Places API](https://developers.google.com/maps/documentation/places/web-service/reference/rest/v1/places/get).
      description: Holds information about a place
      type: object
    Filter:
      properties:
        locationFilter:
          $ref: '#/components/schemas/LocationFilter'
          description: Required. Restricts results to places which are located in the area specified by location filters.
        operatingStatus:
          description: Optional. Restricts results to places whose operating status is included on this list. If operating_status is not set, OPERATING_STATUS_OPERATIONAL is used as default.
          items:
            enum:
            - OPERATING_STATUS_UNSPECIFIED
            - OPERATING_STATUS_OPERATIONAL
            - OPERATING_STATUS_PERMANENTLY_CLOSED
            - OPERATING_STATUS_TEMPORARILY_CLOSED
            type: string
          type: array
        priceLevels:
          type: array
          description: Optional. Restricts results to places whose price level is included on this list. If `price_levels` is not set, all price levels are included in the results.
          items:
            type: string
            enum:
            - PRICE_LEVEL_UNSPECIFIED
            - PRICE_LEVEL_FREE
            - PRICE_LEVEL_INEXPENSIVE
            - PRICE_LEVEL_MODERATE
            - PRICE_LEVEL_EXPENSIVE
            - PRICE_LEVEL_VERY_EXPENSIVE
        typeFilter:
          $ref: '#/components/schemas/TypeFilter'
          description: Required. Place type filters.
        ratingFilter:
          $ref: '#/components/schemas/RatingFilter'
          description: Optional. Restricts results to places whose average user ratings are in the range specified by rating_filter. If rating_filter is not set, all ratings are included in the result.
      type: object
      description: Filters for the ComputeInsights RPC.
    Polygon:
      description: A polygon is represented by a series of connected coordinates in an counterclockwise ordered sequence. The coordinates form a closed loop and define a filled region. The first and last coordinates are equivalent, and they must contain identical values. The format is a simplified version of GeoJSON polygons (we only support one counterclockwise exterior ring).
      type: object
      properties:
        coordinates:
          type: array
          items:
            $ref: '#/components/schemas/LatLng'
          description: Optional. The coordinates that define the polygon.
    Circle:
      description: A circle is defined by a center point and radius in meters.
      properties:
        latLng:
          $ref: '#/components/schemas/LatLng'
          description: The latitude and longitude of the center of the circle.
        place:
          type: string
          description: '**Format:** Must be in the format `places/PLACE_ID`, where `PLACE_ID` is the unique identifier of a place. For example: `places/ChIJgUbEo8cfqokR5lP9_Wh_DaM`.'
        radius:
          format: int32
          type: integer
          description: Optional. The radius of the circle in meters
      type: object
    LocationFilter:
      description: Location filters. Specifies the area of interest for the insight.
      properties:
        circle:
          $ref: '#/components/schemas/Circle'
          description: Area as a circle.
        customArea:
          $ref: '#/components/schemas/CustomArea'
          description: Custom area specified by a polygon.
        region:
          $ref: '#/components/schemas/Region'
          description: Area as region.
      type: object
    CustomArea:
      properties:
        polygon:
          $ref: '#/components/schemas/Polygon'
          description: Required. The custom area represented as a polygon
      type: object
      description: Custom Area.
    Region:
      type: object
      properties:
        place:
          type: string
          description: 'The [place ID](https://developers.google.com/maps/documentation/places/web-service/place-id) of the geographic region. Not all region types are supported; see documentation for details. **Format:** Must be in the format `places/PLACE_ID`, where `PLACE_ID` is the unique identifier of a place. For example: `places/ChIJPV4oX_65j4ARVW8IJ6IJUYs`.'
      description: 'A region is a geographic boundary such as: cities, postal codes, counties, states, etc.'
    ComputeInsightsRequest:
      type: object
      description: Request for the ComputeInsights RPC.
      properties:
        filter:
          $ref: '#/components/schemas/Filter'
          description: Required. Insight filter.
        insights:
          description: Required. Insights to compute. Currently only INSIGHT_COUNT and INSIGHT_PLACES are supported.
          items:
            enum:
            - INSIGHT_UNSPECIFIED
            - INSIGHT_COUNT
            - INSIGHT_PLACES
            type: string
          type: array
    ComputeInsightsResponse:
      type: object
      description: Response for the ComputeInsights RPC.
      properties:
        placeInsights:
          items:
            $ref: '#/components/schemas/PlaceInsight'
          description: Result for Insights.INSIGHT_PLACES.
          type: array
        count:
          type: string
          format: int64
          description: Result for Insights.INSIGHT_COUNT.
    LatLng:
      description: An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard. Values must be within normalized ranges.
      type: object
      properties:
        longitude:
          format: double
          type: number
          description: The longitude in degrees. It must be in the range [-180.0, +180.0].
        latitude:
          type: number
          description: The latitude in degrees. It must be in the range [-90.0, +90.0].
          format: double
    RatingFilter:
      description: Average user rating filters.
      properties:
        minRating:
          description: Optional. Restricts results to places whose average user rating is greater than or equal to min_rating. Values must be between 1.0 and 5.0.
          format: float
          type: number
        maxRating:
          type: number
          format: float
          description: Optional. Restricts results to places whose average user rating is strictly less than or equal to max_rating. Values must be between 1.0 and 5.0.
      type: object
    TypeFilter:
      type: object
      description: 'Place type filters. Only Place types from [Table a](https://developers.google.com/maps/documentation/places/web-service/place-types#table-a) are supported. A place can only have a single primary type associated with it. For example, the primary type might be "mexican_restaurant" or "steak_house". Use included_primary_types and excluded_primary_types to filter the results on a place''s primary type. A place can also have multiple type values associated with it. For example a restaurant might have the following types: "seafood_restaurant", "restaurant", "food", "point_of_interest", "establishment". Use included_types and excluded_types to filter the results on the list of types associated with a place. If a search is specified with multiple type restrictions, only places that satisfy all of the restrictions are returned. For example, if you specify {"included_types": ["restaurant"], "excluded_primary_types": ["steak_house"]}, the returned places provide "restaurant" related services but do not operate primarily as a "steak_house". If there are any conflicting types, i.e. a type appears in both included_types and excluded_types types or included_primary_types and excluded_primary_types, an INVALID_ARGUMENT error is returned. One of included_types or included_primary_types must be set.'
      properties:
        excludedTypes:
          type: array
          items:
            type: string
          description: Optional. Excluded Place types.
        includedPrimaryTypes:
          description: Optional. Included primary Place types.
          items:
            type: string
          type: array
        excludedPrimaryTypes:
          items:
            type: string
          description: Optional. Excluded primary Place types.
          type: array
        includedTypes:
          items:
            type: string
          description: Optional. Included Place types.
          type: array
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/cloud-platform: See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
externalDocs:
  url: https://developers.google.com/maps/documentation/places-aggregate/overview
x-provenance:
  method: harvested
  publisher: Google
  source: https://areainsights.googleapis.com/$discovery/rest?version=v1
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261110)