---
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"
---
# Reddit 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)**Reddit**

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

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

GET /v1/reddit/post?analysis=sentiment

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

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

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

cURL:

```shell
curl -G 'https://socialtap.dev/v1/reddit/post' \
  --data-urlencode 'url=https://www.reddit.com/r/IAmA/comments/z1c9z/i_am_barack_obama_president_of_the_united_states/' \
  --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/reddit/posts?handle=https://www.reddit.com/user/spez/&analysis=sentiment&where=analysis.sentiment=positive,analysis.sentiment_probability>=0.7
```

## 8 Reddit endpoints offer it.

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

- - [Post Reddit Post API Upvotes, comment count, media and flair 1 credit$0.75–$1.97 per 1,000 requests`GET /v1/reddit/post`](https://socialtap.dev/apis/reddit/post/index.md)
- - [Post Reddit User Posts API Submissions sorted New, Top or Hot, with scores 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/reddit/posts`](https://socialtap.dev/apis/reddit/posts/index.md)
- - [Post Reddit Search API Posts by keyword, with Reddit's search operators 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/reddit/search_posts`](https://socialtap.dev/apis/reddit/search-posts/index.md)
- - [Post Reddit Subreddit Posts API Hot, New, Top or Rising, with exact scores 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/reddit/subreddit_posts`](https://socialtap.dev/apis/reddit/subreddit-posts/index.md)
- - [Comment Reddit Comments API Post comments and replies, in thread order 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/reddit/comments`](https://socialtap.dev/apis/reddit/comments/index.md)
- - [Comment Reddit User Comments API Comment history of a user, sorted New or Top 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/reddit/profile_comments`](https://socialtap.dev/apis/reddit/profile-comments/index.md)
- - [Comment Reddit Comment Search API Comments by keyword, sitewide or in a subreddit 1 credit / page$0.75–$1.97 per 1,000 pages`GET /v1/reddit/search_comments`](https://socialtap.dev/apis/reddit/search-comments/index.md)
- - [Transcript Reddit Video Transcript API Video post transcript, from captions or audio From 1 credit$0.75–$1.97 per 1,000 requests`GET /v1/reddit/transcript`](https://socialtap.dev/apis/reddit/transcript/index.md)

Sentiment price per endpoint

| Endpoint | Adds |
| --- | --- |
| [Reddit Post API](https://socialtap.dev/docs/reference/reddit/post/index.md) | +2 credits per request |
| [Reddit User Posts API](https://socialtap.dev/docs/reference/reddit/posts/index.md) | +44 credits per page of 25 |
| [Reddit Search API](https://socialtap.dev/docs/reference/reddit/search-posts/index.md) | +13 credits per page of 7 |
| [Reddit Subreddit Posts API](https://socialtap.dev/docs/reference/reddit/subreddit-posts/index.md) | +44 credits per page of 25 |
| [Reddit Comments API](https://socialtap.dev/docs/reference/reddit/comments/index.md) | +320 credits per page of 200 |
| [Reddit User Comments API](https://socialtap.dev/docs/reference/reddit/profile-comments/index.md) | +40 credits per page of 25 |
| [Reddit Comment Search API](https://socialtap.dev/docs/reference/reddit/search-comments/index.md) | +16 credits per page of 10 |
| [Reddit Video Transcript API](https://socialtap.dev/docs/reference/reddit/transcript/index.md) | +6 credits per request |

## More analyses on Reddit and beyond.

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

- [Reddit Sentiment Analysis API](https://socialtap.dev/apis/reddit/sentiment-analysis/index.md): The overall feeling the author expresses: positive, negative, neutral, or mixed (clearly both).
- [Reddit Toxicity Detection API](https://socialtap.dev/apis/reddit/toxicity-detection/index.md): How likely the item is rude, insulting, harassing, hateful, threatening or profane toward someone (0 to 1).
- [Reddit Brand Mentions API](https://socialtap.dev/apis/reddit/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.
- [Reddit Buying Intent API](https://socialtap.dev/apis/reddit/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.
- [Reddit Brand Safety API](https://socialtap.dev/apis/reddit/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.
- [Reddit Topic Classification API](https://socialtap.dev/apis/reddit/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.
- [TikTok Sentiment Analysis API](https://socialtap.dev/apis/tiktok/sentiment-analysis/index.md): Posts, comments, transcripts and web results
- [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
- [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 Reddit sentiment analysis

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

**Which Reddit endpoints offer sentiment analysis?**

Reddit Post API, Reddit User Posts API, Reddit Search API, Reddit Subreddit Posts API, Reddit Comments API, Reddit User Comments API, Reddit Comment Search API and Reddit Video Transcript 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/reddit/sentiment-analysis/) · [Docs index for AI agents](https://socialtap.dev/llms.txt) · [All docs in one file](https://socialtap.dev/llms-full.txt)
