---
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"
---
# Aspects

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

Analyses

The aspects a review judges (quality, value, customer service, delivery, food, cleanliness, …), each with its sentiment and the probability that is right.

## Example

cURL:

```shell
curl -G 'https://socialtap.dev/v1/amazon/reviews' \
  --data-urlencode 'url=https://www.amazon.co.uk/dp/0735211299' \
  --data-urlencode 'analysis=aspects' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
```

Shape of data.analysis:

```json
{
  "aspects": [
    {
      "aspect": "quality",
      "sentiment": "positive",
      "probability": 0.95
    }
  ]
}
```

Values are examples.

## Value

Ask for it with `analysis=aspects`; each item's `analysis` object then holds it, judged from the item's words. 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.aspects`: A list of objects with the fields below. Each entry carries its own probability, from 0 to 1.

| Field | Type | Description |
| --- | --- | --- |
| `analysis.aspects[].aspect` | `string` | What the review judges.<br>One of `quality`, `value`, `customer_service`, `delivery`, `ease_of_use`, `durability`, `size_fit`, `food`, `cleanliness`, `atmosphere`, `wait_time`, `location` |
| `analysis.aspects[].sentiment` | `string` | How it judges it.<br>One of `positive`, `negative`, `mixed` |
| `analysis.aspects[].probability` | `number` | How likely the sentiment is right, from 0 to 1. |

## Filter

On a list, `where` keeps the items that pass. Every item judged is charged whether or not it passes, so a page can hold fewer items than `limit`.

cURL:

```shell
curl -G 'https://socialtap.dev/v1/amazon/reviews' \
  --data-urlencode 'url=https://www.amazon.co.uk/dp/0735211299' \
  --data-urlencode 'analysis=aspects' \
  --data-urlencode 'where=analysis.aspects[].sentiment=negative' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
```

## Languages

Answers for items in English, Spanish, Portuguese, French, German, Italian, Dutch, Indonesian, Turkish, Polish, Japanese, Korean, Chinese, Russian, Arabic and Hindi. An item in another language gets null, free, with a warning.

## Price

**Text.** A flat extra per page, however many text analyses you ask for; a single item is a page of one. Each endpoint's reference page states it. An analysis that fails is free. [How analyses are priced](https://socialtap.dev/docs/analyses/index.md#price)

## Endpoints

4 endpoints offer it, on 3 platforms.

**Amazon1**

- [GETAmazon Reviews API`/v1/amazon/reviews`](https://socialtap.dev/docs/reference/amazon/reviews/index.md)

**Google Maps2**

- [GETGoogle Maps Contributor Reviews API`/v1/googlemaps/contributor_reviews`](https://socialtap.dev/docs/reference/googlemaps/contributor-reviews/index.md)
- [GETGoogle Maps Reviews API`/v1/googlemaps/place_reviews`](https://socialtap.dev/docs/reference/googlemaps/place-reviews/index.md)

**TikTok Shop1**

- [GETTikTok Shop Reviews API`/v1/tiktokshop/reviews`](https://socialtap.dev/docs/reference/tiktokshop/reviews/index.md)

---

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