---
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"
---
# TikTok Sentiment Analysis API. On each item you fetch.

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

[APIs](https://socialtap.dev/apis/index.md) · [Analyses](https://socialtap.dev/apis/analyses/index.md)**TikTok**

The overall feeling the author expresses: positive, negative, neutral, or mixed (clearly both). Add analysis=sentiment to any of 19 TikTok endpoints that offer it.

[Start for free](https://socialtap.dev/signup/)

GET /v1/tiktok/post?analysis=sentiment

## One param on the request. Sentiment on each item.

The TikTok Post API returns each post with analysis.sentiment beside its fields.

[Open in playground](https://socialtap.dev/playground/?endpoint=tiktok.post)

cURL:

```shell
curl -G 'https://socialtap.dev/v1/tiktok/post' \
  --data-urlencode 'url=https://www.tiktok.com/@scout2015/video/6718335390845095173' \
  --data-urlencode 'analysis=sentiment' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
```

Shape of data.analysis:

```json
{
  "sentiment": "positive",
  "sentiment_probability": 0.85
}
```

Values are examples.

## What the value means.

One of the values below. sentiment_probability beside it: how sure the value is, from 0 to 1.

Sentiment values

| Value | Meaning |
| --- | --- |
| `positive` | favorable, pleased, enthusiastic |
| `negative` | unfavorable, displeased, critical, complaining |
| `neutral` | factual, a plain question, or no feeling either way |
| `mixed` | clearly positive about some things and clearly negative about others |

[The sentiment reference](https://socialtap.dev/docs/analyses/sentiment/index.md)

## Keep only what matches.

On a list, where keeps the items that pass. Every item judged is charged whether or not it passes, so a page can be short.

```
https://socialtap.dev/v1/tiktok/posts?handle=@khaby.lame&analysis=sentiment&where=analysis.sentiment=positive,analysis.sentiment_probability>=0.7
```

## 19 TikTok endpoints offer it.

Each adds the analysis to the posts, comments, transcripts and web results it returns. Text analyses cost one flat amount per request, or per page on a list, however many you ask for.

- - [Post TikTok Post API Video or photo post with views, likes and media 1 credit$0.75–$1.97 per 1,000 requests`GET /v1/tiktok/post`](https://socialtap.dev/apis/tiktok/post/index.md)
- - [Post TikTok Posts API Account videos and photo posts, newest first 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/posts`](https://socialtap.dev/apis/tiktok/posts/index.md)
- - [Post TikTok Effect Posts API Videos and photo posts made with an effect 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/effect_posts`](https://socialtap.dev/apis/tiktok/effect-posts/index.md)
- - [Post TikTok Hashtag Posts API Top videos and photo posts under a hashtag 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/hashtag_posts`](https://socialtap.dev/apis/tiktok/hashtag-posts/index.md)
- - [Post TikTok Liked Posts API What an account liked, most recent like first 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/liked_posts`](https://socialtap.dev/apis/tiktok/liked-posts/index.md)
- - [Post TikTok Place Posts API Videos and photo posts tagged at a place 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/place_posts`](https://socialtap.dev/apis/tiktok/place-posts/index.md)
- - [Post TikTok Playlist Posts API Videos in a playlist or collection, in its order 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/playlist_posts`](https://socialtap.dev/apis/tiktok/playlist-posts/index.md)
- - [Post TikTok Search API Videos for a keyword, by country 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/search_posts`](https://socialtap.dev/apis/tiktok/search-posts/index.md)
- - [Post TikTok Sound Posts API Videos and photo posts that use a sound 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/sound_posts`](https://socialtap.dev/apis/tiktok/sound-posts/index.md)
- - [Post TikTok Top Videos API Ranked by country, period and metric 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/top_posts`](https://socialtap.dev/apis/tiktok/top-posts/index.md)
- - [Post TikTok Trending Videos API What the explore page shows now, by topic 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/trending_posts`](https://socialtap.dev/apis/tiktok/trending-posts/index.md)
- - [Comment TikTok Comment API Comment or reply with its likes and author 1 credit$0.75–$1.97 per 1,000 requests`GET /v1/tiktok/comment`](https://socialtap.dev/apis/tiktok/comment/index.md)
- - [Comment TikTok Comments API Top-level comments with exact like and reply counts 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/comments`](https://socialtap.dev/apis/tiktok/comments/index.md)
- - [Comment TikTok Comment Replies API Thread under a comment, with likes and authors 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/replies`](https://socialtap.dev/apis/tiktok/replies/index.md)
- - [Transcript TikTok Transcript API Timed transcript from captions or the audio From 1 credit$0.75–$1.97 per 1,000 requests`GET /v1/tiktok/transcript`](https://socialtap.dev/apis/tiktok/transcript/index.md)
- - [Web result TikTok Hashtag Search API Hashtags for a keyword, topic or niche From 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/search_hashtags`](https://socialtap.dev/apis/tiktok/search-hashtags/index.md)
- - [Web result TikTok User Search API Accounts by keyword, niche or place From 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/search_profiles`](https://socialtap.dev/apis/tiktok/search-profiles/index.md)
- - [Web result TikTok Sound Search API Sounds and songs by title, artist or keyword From 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/search_sounds`](https://socialtap.dev/apis/tiktok/search-sounds/index.md)
- - [Web result TikTok Top Search API Accounts, videos, hashtags and sounds in one search From 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/tiktok/search_top`](https://socialtap.dev/apis/tiktok/search-top/index.md)

Sentiment price per endpoint

| Endpoint | Adds |
| --- | --- |
| [TikTok Post API](https://socialtap.dev/docs/reference/tiktok/post/index.md) | +2 credits per request |
| [TikTok Posts API](https://socialtap.dev/docs/reference/tiktok/posts/index.md) | +27 credits per page of 15 |
| [TikTok Effect Posts API](https://socialtap.dev/docs/reference/tiktok/effect-posts/index.md) | +53 credits per page of 30 |
| [TikTok Hashtag Posts API](https://socialtap.dev/docs/reference/tiktok/hashtag-posts/index.md) | +18 credits per page of 10 |
| [TikTok Liked Posts API](https://socialtap.dev/docs/reference/tiktok/liked-posts/index.md) | +53 credits per page of 30 |
| [TikTok Place Posts API](https://socialtap.dev/docs/reference/tiktok/place-posts/index.md) | +53 credits per page of 30 |
| [TikTok Playlist Posts API](https://socialtap.dev/docs/reference/tiktok/playlist-posts/index.md) | +53 credits per page of 30 |
| [TikTok Search API](https://socialtap.dev/docs/reference/tiktok/search-posts/index.md) | +53 credits per page of 30 |
| [TikTok Sound Posts API](https://socialtap.dev/docs/reference/tiktok/sound-posts/index.md) | +53 credits per page of 30 |
| [TikTok Top Videos API](https://socialtap.dev/docs/reference/tiktok/top-posts/index.md) | +35 credits per page of 20 |
| [TikTok Trending Videos API](https://socialtap.dev/docs/reference/tiktok/trending-posts/index.md) | +53 credits per page of 30 |
| [TikTok Comment API](https://socialtap.dev/docs/reference/tiktok/comment/index.md) | +2 credits per request |
| [TikTok Comments API](https://socialtap.dev/docs/reference/tiktok/comments/index.md) | +80 credits per page of 50 |
| [TikTok Comment Replies API](https://socialtap.dev/docs/reference/tiktok/replies/index.md) | +80 credits per page of 50 |
| [TikTok Transcript API](https://socialtap.dev/docs/reference/tiktok/transcript/index.md) | +6 credits per request |
| [TikTok Hashtag Search API](https://socialtap.dev/docs/reference/tiktok/search-hashtags/index.md) | +52 credits per page of 50 |
| [TikTok User Search API](https://socialtap.dev/docs/reference/tiktok/search-profiles/index.md) | +52 credits per page of 50 |
| [TikTok Sound Search API](https://socialtap.dev/docs/reference/tiktok/search-sounds/index.md) | +52 credits per page of 50 |
| [TikTok Top Search API](https://socialtap.dev/docs/reference/tiktok/search-top/index.md) | +52 credits per page of 50 |

## More analyses on TikTok and beyond.

The same answer on other platforms, and other answers here.

- [TikTok Sentiment Analysis API](https://socialtap.dev/apis/tiktok/sentiment-analysis/index.md): The overall feeling the author expresses: positive, negative, neutral, or mixed (clearly both).
- [TikTok Toxicity Detection API](https://socialtap.dev/apis/tiktok/toxicity-detection/index.md): How likely the item is rude, insulting, harassing, hateful, threatening or profane toward someone (0 to 1).
- [TikTok Brand Mentions API](https://socialtap.dev/apis/tiktok/brand-mentions/index.md): For each of the caller's brands (brand=Notion,Linear, or JSON with aliases, handles and domains): whether the item mentions it, not something else of that name, and how it speaks of it.
- [TikTok Buying Intent API](https://socialtap.dev/apis/tiktok/buying-intent/index.md): How likely the author is looking to buy, hire or switch to a product or service (0 to 1); with about, one like the caller's.
- [TikTok Brand Safety API](https://socialtap.dev/apis/tiktok/brand-safety/index.md): The item's risk for an advertiser in each of the 12 categories of GARM's brand safety framework, every category with its level (none, low, medium, high, floor) and the probability that is right.
- [TikTok Topic Classification API](https://socialtap.dev/apis/tiktok/topic-classification/index.md): What the item is about, as categories of the IAB Content Taxonomy's top level (most likely first; at most three), each with its probability.
- [Instagram Sentiment Analysis API](https://socialtap.dev/apis/instagram/sentiment-analysis/index.md): Posts, comments, transcripts and web results
- [Facebook Sentiment Analysis API](https://socialtap.dev/apis/facebook/sentiment-analysis/index.md): Posts, comments, transcripts and web results
- [YouTube Sentiment Analysis API](https://socialtap.dev/apis/youtube/sentiment-analysis/index.md): Posts, comments and transcripts
- [Reddit Sentiment Analysis API](https://socialtap.dev/apis/reddit/sentiment-analysis/index.md): Posts, comments and transcripts
- [Threads Sentiment Analysis API](https://socialtap.dev/apis/threads/sentiment-analysis/index.md): Posts and comments
- [Every analysis](https://socialtap.dev/apis/analyses/index.md): 31 analyses and what each adds to a request.

## Questions about TikTok sentiment analysis

The [analyses guide](https://socialtap.dev/docs/analyses/index.md) has the rest.

**Which TikTok endpoints offer sentiment analysis?**

TikTok Post API, TikTok Posts API, TikTok Effect Posts API, TikTok Hashtag Posts API, TikTok Liked Posts API, TikTok Place Posts API, TikTok Playlist Posts API, TikTok Search API, TikTok Sound Posts API, TikTok Top Videos API, TikTok Trending Videos API, TikTok Comment API, TikTok Comments API, TikTok Comment Replies API, TikTok Transcript API, TikTok Hashtag Search API, TikTok User Search API, TikTok Sound Search API and TikTok Top Search API. Add analysis=sentiment to any of them.

**How much does an analysis cost?**

It depends on what it reads. Text analyses add a flat extra per page, however many you ask for. Image analyses add 3 credits per image and video analyses 30 credits per video. Each endpoint's reference page states its text price.

**Do I pay when an analysis can't answer?**

No. An analysis that fails, an item in a language it doesn't answer in, a video longer than 3 minutes and a value already computed for the same item are free. The value is null, with a warning that says why.

**Can I get only the items that match?**

Yes, on lists. where=analysis.authenticity_risk>=0.7 keeps the items that pass. Every item judged is charged whether or not it passes, so a page can be short.

**Which languages do analyses answer in?**

Each analysis's reference page lists its languages. An item in another language gets null, free, with a warning.

**Can I use my own categories or questions?**

Yes. about, brand, labels and criteria are inputs you send with the request, and the analyses that read them answer against yours.

## Send your first request in a minute.

Get a key, send a link you already have and see what comes back. The same key works on every platform.

100free credits

- No credit card
- Failed requests are free
- Works on all 319 endpoints

[Start for free](https://socialtap.dev/signup/) [Read the docs](https://socialtap.dev/docs/index.md)

---

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