# getPlaceReviews

**Identifier:** `googlemaps_getPlaceReviews`

**Provider:** [Google Maps](https://kirha.com/providers/googlemaps.md)

Get user reviews for a specific place using its Google Maps place ID or data ID.

## Run it with the CLI

```bash
kirha tools run googlemaps_getPlaceReviews \
  --input '{
    "placeId": "<placeId>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "googlemaps_getPlaceReviews",
  "input": {
    "placeId": "<placeId>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "limit": {
      "maximum": 20,
      "minimum": 1,
      "type": "number"
    },
    "placeId": {
      "description": "Google Maps place ID (retrieve using searchPlaces tool)",
      "type": "string"
    },
    "query": {
      "type": "string"
    },
    "sortBy": {
      "default": "qualityScore",
      "enum": [
        "qualityScore",
        "newestFirst",
        "ratingHigh",
        "ratingLow"
      ],
      "type": "string"
    }
  },
  "required": [
    "placeId"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "placeAddress": {
      "type": "string"
    },
    "placeId": {
      "type": "string"
    },
    "placeName": {
      "type": "string"
    },
    "placeRating": {
      "type": "number"
    },
    "placeReviewsCount": {
      "type": "number"
    },
    "reviews": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "date": {
            "type": "string"
          },
          "likesCount": {
            "type": "number"
          },
          "rating": {
            "type": "number"
          },
          "response": {
            "additionalProperties": false,
            "properties": {
              "date": {
                "type": "string"
              },
              "text": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "text": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "userIsLocalGuide": {
            "type": "boolean"
          },
          "userName": {
            "type": "string"
          },
          "userReviewsCount": {
            "type": "number"
          }
        },
        "required": [
          "userName"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "placeId",
    "reviews"
  ],
  "type": "object"
}
```

## Related tools

Other Google Maps tools that this tool refers to, or that refer to it.

- [`searchPlaces`](https://kirha.com/providers/googlemaps/searchPlaces.md)

-----

[All Google Maps tools](https://kirha.com/providers/googlemaps.md) · [< Back to tools list](https://kirha.com/tools.md)