---
agent:
  instructions: "Search the SocialTap docs with keywords or a question instead of crawling pages: GET https://socialtap.dev/.well-known/search?q={query} returns the best sections as Markdown (JSON with Accept: application/json), free and without a key."
  endpoint: "https://socialtap.dev/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://socialtap.dev/docs/agents/#docs-for-agents"
---
# Rating trend

> Setting SocialTap up for your user? Follow https://socialtap.dev/setup.md.

Analyses

The average rating of the place's newest reviews minus its overall rating, in stars: -0.8 means recent reviewers rate it 0.8 stars below its average; null without both. Fetches the newest page of reviews, charged as it.

## Example

cURL:

```shell
curl -G 'https://socialtap.dev/v1/googlemaps/place' \
  --data-urlencode 'url=https://www.google.com/maps/place/Katz'\''s+Delicatessen/@40.722233,-73.987429,17z/data=!4m6!3m5!1s0x89c2598f7ff4aa09:0x313547e757cb8cea!8m2!3d40.722233!4d-73.987429' \
  --data-urlencode 'analysis=rating_trend' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
```

Shape of data.analysis:

```json
{
  "rating_trend": 0.5
}
```

Values are examples.

## Value

Ask for it with `analysis=rating_trend`; each item's `analysis` object then holds it, computed from the item's fields. A value is null when it is unknown, with an `analysis_unavailable` warning saying why ([null values](https://socialtap.dev/docs/analyses/index.md#null-values)).

`analysis.rating_trend`: A number.

## Languages

Answers for items in any language.

## Price

**Pages it reads.** The pages it reads, each at its endpoint's price, once per request. An analysis that fails is free. [How analyses are priced](https://socialtap.dev/docs/analyses/index.md#price)

## Endpoints

2 endpoints offer it, on 1 platform.

**Google Maps2**

- [GETGoogle Maps Place API`/v1/googlemaps/place`](https://socialtap.dev/docs/reference/googlemaps/place/index.md)
- [GETGoogle Maps Search API`/v1/googlemaps/search_places`](https://socialtap.dev/docs/reference/googlemaps/search-places/index.md)

---

[HTML version](https://socialtap.dev/docs/analyses/rating-trend/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
