Introducing the Instagram APIRead more →

Reddit Toxicity Detection API. On each item you fetch.

How likely the item is rude, insulting, harassing, hateful, threatening or profane toward someone (0 to 1). Add analysis=toxicity to any of 7 Reddit endpoints that offer it.

GET /v1/reddit/post?analysis=toxicity

One param on the request. Toxicity on each item.

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

GET /v1/reddit/postTry in
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=toxicity' \
  -H "x-api-key: $SOCIALTAP_API_KEY"
GET https://socialtap.dev/v1/reddit/postDocs

What the value means.

A number from 0 to 1.

How likely the item is rude, insulting, harassing, hateful, threatening or profane toward someone (0 to 1).

The toxicity reference

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=toxicity&where=analysis.toxicity>=0.7

7 Reddit endpoints offer it.

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

Toxicity price per endpoint
EndpointAdds
Reddit Post API+2 credits per request
Reddit User Posts API+44 credits per page of 25
Reddit Search API+13 credits per page of 7
Reddit Subreddit Posts API+44 credits per page of 25
Reddit Comments API+320 credits per page of 200
Reddit User Comments API+40 credits per page of 25
Reddit Comment Search API+16 credits per page of 10

More analyses on Reddit and beyond.

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

Questions about Reddit toxicity detection

The analyses guide has the rest.

Which Reddit endpoints offer toxicity detection?
Reddit Post API, Reddit User Posts API, Reddit Search API, Reddit Subreddit Posts API, Reddit Comments API, Reddit User Comments API and Reddit Comment Search API. Add analysis=toxicity 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 Read the docs