Introducing the Instagram APIRead more →

TikTok Brand Safety API. On each item you fetch.

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. Add analysis=brand_safety to any of 15 TikTok endpoints that offer it.

GET /v1/tiktok/post?analysis=brand_safety

One param on the request. Brand safety on each item.

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

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

What the value means.

A list of objects with the fields below. Each entry carries its own probability, from 0 to 1.

Brand safety fields
FieldMeaning
categoryThe category. (adult_explicit, arms_ammunition, crime, death_injury_conflict, online_piracy, hate_speech, obscenity_profanity, drugs_alcohol_tobacco, spam_harmful, terrorism, sensitive_social_issues, misinformation)
levelIts risk: none, low, medium, high, or floor (never suitable for ads). (none, low, medium, high, floor)
probabilityHow likely the level is right, from 0 to 1.

The brand safety 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/tiktok/posts?handle=@khaby.lame&analysis=brand_safety&where=analysis.brand_safety[].level=high

15 TikTok 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.

Brand safety price per endpoint
EndpointAdds
TikTok Post API+2 credits per request
TikTok Posts API+27 credits per page of 15
TikTok Effect Posts API+53 credits per page of 30
TikTok Hashtag Posts API+18 credits per page of 10
TikTok Liked Posts API+53 credits per page of 30
TikTok Place Posts API+53 credits per page of 30
TikTok Playlist Posts API+53 credits per page of 30
TikTok Search API+53 credits per page of 30
TikTok Sound Posts API+53 credits per page of 30
TikTok Top Videos API+35 credits per page of 20
TikTok Trending Videos API+53 credits per page of 30
TikTok Comment API+2 credits per request
TikTok Comments API+80 credits per page of 50
TikTok Comment Replies API+80 credits per page of 50
TikTok Transcript API+6 credits per request

More analyses on TikTok and beyond.

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

Questions about TikTok brand safety

The analyses guide has the rest.

Which TikTok endpoints offer brand safety?
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 and TikTok Transcript API. Add analysis=brand_safety 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