Social media analysis API. Typed answers on each item.
Add analysis=sentiment to a request and each item comes back with its sentiment and how sure the answer is, for a few credits more.
GET /v1/tiktok/post?analysis=sentiment
The analyses people ask for, on each platform.
Each has a page per platform with the endpoints that offer it and what it adds to a request.
Sentiment analysis
The overall feeling the author expresses: positive, negative, neutral, or mixed (clearly both).
Toxicity detection
How likely the item is rude, insulting, harassing, hateful, threatening or profane toward someone (0 to 1).
Brand mentions
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.
Buying intent
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.
Brand safety
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.
Topic classification
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.
31 analyses, one param.
Ask for any that fit the endpoint's data, comma-separated: analysis=sentiment,toxicity. Each answers under its own name.
| Analysis | What it answers | Data | Price |
|---|---|---|---|
account_kind | Who runs the account: a creator, a brand, a local business, a media publisher, a public figure, an organization, a fan or aggregator page, or a private person. | Profiles | Text |
aspects | The aspects a review judges (quality, value, customer service, delivery, food, cleanliness, …), each with its sentiment and the probability that is right. | Reviews | Text |
attack_target | Whom the item attacks, if anyone: an individual, an identity group (by race, religion, gender, sexuality, nationality or disability), an organization, another group, or none. | Posts and comments | Text |
authenticity_risk | How likely the review is fake, paid or incentivized rather than a customer's own experience (0 to 1): generic praise or attack with no specifics, marketing language, a rating its words contradict, or a product received free. | Reviews | Text |
brand_mentions | 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. | Reviews, posts, comments, transcripts and web results | Text |
brand_safety | 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. | Posts, comments and transcripts | Text |
buying_intent | 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. | Posts and comments | Text |
comment_kind | What kind of comment it is: a genuine reaction or question, a low-effort generic one, self-promotion, spam, or a scam. | Comments | Text |
criteria | The caller's own yes/no questions answered for the item (criteria=["asks for a refund?"]), each true or false with its probability. | Reviews, profiles, posts, comments, ads, transcripts, web results and issues | Text |
disclosure | Whether the item clearly discloses a commercial relationship (#ad, #sponsored, paid partnership, affiliate link, gifted), with its probability; read with promotion_type, an undisclosed promotion. | Posts and transcripts | Text |
entities | The people, organizations, products, places, events and works the item names, each with what it is and the probability that is right. | Reviews, profiles, posts, comments, ads, transcripts, web results and issues | Text |
format | The video's format: talking to camera, tutorial, product demo, unboxing, review, vlog, skit, meme, music or dance, slideshow, screen recording, interview or podcast, news, gameplay, animation, a produced ad, or other. | Posts and ads | Per video |
image_safety_labels | What a moderator would flag in the item's images: sexual content, violence, self-harm, hate, harassment, drugs, weapons, profanity or a scam; each that applies, with its probability. | Reviews, posts and ads | Per image |
labels | Which of the caller's own labels fit the item (labels=bug,feature_request,praise), most likely first, each with its probability. | Reviews, profiles, posts, comments, ads, transcripts, web results and issues | Text |
language | The language the item is written in (BCP 47 code: en, pt, ja), as the platform states it or read from its words; null when too short to tell. | Reviews, profiles, posts, comments, ads, transcripts, web results and issues | Free |
maintenance_status | Whether the repository is archived, active (pushed to within 30 days), maintained (within 6 months), stale (6 months to 2 years) or abandoned (over 2 years); null when the platform shows neither. | Repositories | Free |
near_duplicate_of | The ID of an earlier item on the same page with nearly the same words (copy-pasted or lightly edited); null when the page holds none. | Reviews, profiles, posts, comments, ads, transcripts, web results and issues | Free |
niches | The content niches the account works in (beauty, fitness, food, gaming, tech, finance, …), each that applies, with its probability. | Profiles | Text |
outlier_score | The post's views divided by the median views of its creator's latest posts: 1 is typical, 5 is five times their usual; null when views aren't shown. | Posts | Pages it reads |
owner_response_rate | The share of the place's newest reviews its owner replied to, from 0 to 1 (the newest page of reviews the platform shows anyone); null without reviews. | Places | Pages it reads |
promotion_type | What the item promotes, if anything: a paid partnership, affiliate links or codes, a gifted product, the author's own business, or none. | Posts and transcripts | Text |
rating_trend | 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. | Places | Pages it reads |
relevance | How likely the item is about what the caller's about describes: the same need, problem or kind of product (0 to 1). | Posts, comments and web results | Text |
safety_labels | What a moderator would flag in the item's words: sexual content, violence, self-harm, hate, harassment, drugs, weapons, profanity or a scam; each that applies, with its probability. | Posts and comments | Text |
segments | The spans of a transcript that aren't the video's own content: sponsor reads, self-promotion, reminders to like and subscribe, intros and outros, each with its start and end and its probability. | Transcripts | Text |
sentiment | The overall feeling the author expresses: positive, negative, neutral, or mixed (clearly both). | Reviews, posts, comments, transcripts, web results and issues | Text |
themes | What the item does: a pain point, a request for a fix or advice, money talk, an idea, praise, news or self-promotion; each that applies, with its probability. | Posts and comments | Text |
topics | 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. | Reviews, profiles, posts, comments, ads, transcripts, web results and issues | Text |
toxicity | How likely the item is rude, insulting, harassing, hateful, threatening or profane toward someone (0 to 1). | Posts and comments | Text |
video_brand_safety | The video's risk for an advertiser (what it shows, writes and says) in each of the 12 categories of GARM's brand safety framework, every category with its level and the probability that is right. | Posts | Per video |
video_safety_labels | What a moderator would flag in the item's video (what it shows, writes and says): sexual content, violence, self-harm, hate, harassment, drugs, weapons, profanity or a scam; each that applies, with its probability. | Posts and ads | Per video |
Ask in the same request. Read it beside the data.
The analyses come back on each item under data.analysis, null when unknown, with a warning that says why.
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"// Node 18+: save this as app.mjs (an ES module) and run: node app.mjs
const params = new URLSearchParams({
url: "https://www.tiktok.com/@scout2015/video/6718335390845095173",
analysis: "sentiment",
});
const res = await fetch(`https://socialtap.dev/v1/tiktok/post?${params}`, {
headers: { "x-api-key": process.env.SOCIALTAP_API_KEY ?? "" },
});
const body = await res.json();
if (!res.ok) throw new Error(`${body.error.code}: ${body.error.message}`);
const { data, meta } = body;
console.log(data, meta.credits_charged);import os
import requests
res = requests.get(
"https://socialtap.dev/v1/tiktok/post",
params={"url": "https://www.tiktok.com/@scout2015/video/6718335390845095173", "analysis": "sentiment"},
headers={"x-api-key": os.environ["SOCIALTAP_API_KEY"]},
)
body = res.json()
if not res.ok:
raise RuntimeError(f"{body['error']['code']}: {body['error']['message']}")
data, meta = body["data"], body["meta"]
print(data, meta["credits_charged"]){
"sentiment": "positive",
"sentiment_probability": 0.85
}Values are examples.
GET https://socialtap.dev/v1/tiktok/postDocs Priced by what they read.
An analysis that fails, or can't read the item, is free.
- 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.
- Per image. 3 credits per image, up to 4 images an item.
- Per video. 30 credits per video, up to 3 minutes long.
- Pages it reads. The pages it reads, each at its endpoint's price, once per request.
- Free. Nothing: computed from the item's own fields.
Questions about analyses
The analyses guide has the rest.
How much does an analysis cost?
Do I pay when an analysis can't answer?
Can I get only the items that match?
Which languages do analyses answer in?
Can I use my own categories or questions?
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.
- No credit card
- Failed requests are free
- Works on all 319 endpoints