Example
curl -G 'https://socialtap.dev/v1/tiktok/post' \
--data-urlencode 'url=https://www.tiktok.com/@scout2015/video/6718335390845095173' \
--data-urlencode 'analysis=labels' \
--data-urlencode 'labels=bug,feature_request,praise' \
-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: "labels",
labels: "bug,feature_request,praise",
});
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": "labels", "labels": "bug,feature_request,praise"},
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"])package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"net/url"
"os"
)
func main() {
q := url.Values{}
q.Set("url", "https://www.tiktok.com/@scout2015/video/6718335390845095173")
q.Set("analysis", "labels")
q.Set("labels", "bug,feature_request,praise")
req, err := http.NewRequest("GET", "https://socialtap.dev/v1/tiktok/post?"+q.Encode(), nil)
if err != nil {
log.Fatal(err)
}
req.Header.Set("x-api-key", os.Getenv("SOCIALTAP_API_KEY"))
res, err := http.DefaultClient.Do(req)
if err != nil {
log.Fatal(err)
}
defer res.Body.Close()
var body struct {
Data json.RawMessage `json:"data"`
Meta map[string]any `json:"meta"`
Error *struct {
Code string `json:"code"`
Message string `json:"message"`
} `json:"error"`
}
if err := json.NewDecoder(res.Body).Decode(&body); err != nil {
log.Fatal(err)
}
if body.Error != nil {
log.Fatalf("%s: %s", body.Error.Code, body.Error.Message)
}
fmt.Println(string(body.Data), body.Meta["credits_charged"])
}<?php
$query = http_build_query([
'url' => 'https://www.tiktok.com/@scout2015/video/6718335390845095173',
'analysis' => 'labels',
'labels' => 'bug,feature_request,praise',
]);
$ch = curl_init('https://socialtap.dev/v1/tiktok/post?' . $query);
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['x-api-key: ' . getenv('SOCIALTAP_API_KEY')],
]);
$body = json_decode(curl_exec($ch), true);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 400) {
throw new RuntimeException($body['error']['code'] . ': ' . $body['error']['message']);
}
print_r($body['data']);
echo $body['meta']['credits_charged'], PHP_EOL;require "json"
require "net/http"
uri = URI("https://socialtap.dev/v1/tiktok/post")
uri.query = URI.encode_www_form('url' => 'https://www.tiktok.com/@scout2015/video/6718335390845095173', 'analysis' => 'labels', 'labels' => 'bug,feature_request,praise')
req = Net::HTTP::Get.new(uri)
req["x-api-key"] = ENV.fetch("SOCIALTAP_API_KEY")
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |http| http.request(req) }
body = JSON.parse(res.body)
raise "#{body["error"]["code"]}: #{body["error"]["message"]}" unless res.is_a?(Net::HTTPSuccess)
pp body["data"]
puts body["meta"]["credits_charged"]import java.net.URI;
import java.net.URLEncoder;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) throws Exception {
String query = "url=" + encode("https://www.tiktok.com/@scout2015/video/6718335390845095173")
+ "&analysis=" + encode("labels")
+ "&labels=" + encode("bug,feature_request,praise");
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://socialtap.dev/v1/tiktok/post?" + query))
.header("x-api-key", System.getenv("SOCIALTAP_API_KEY"))
.GET()
.build();
HttpResponse<String> response = HttpClient.newHttpClient()
.send(request, HttpResponse.BodyHandlers.ofString());
// An error is {"error": {"code", "message", ...}}; success is {data, meta}, meta.credits_charged its price.
if (response.statusCode() >= 400) throw new RuntimeException(response.body());
System.out.println(response.body());
}
static String encode(String value) {
return URLEncoder.encode(value, StandardCharsets.UTF_8);
}
}using System.Text.Json;
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("x-api-key", Environment.GetEnvironmentVariable("SOCIALTAP_API_KEY"));
var query = string.Join("&",
"url=" + Uri.EscapeDataString("https://www.tiktok.com/@scout2015/video/6718335390845095173"),
"analysis=" + Uri.EscapeDataString("labels"),
"labels=" + Uri.EscapeDataString("bug,feature_request,praise"));
var res = await http.GetAsync("https://socialtap.dev/v1/tiktok/post?" + query);
using var body = JsonDocument.Parse(await res.Content.ReadAsStringAsync());
if (!res.IsSuccessStatusCode)
{
var error = body.RootElement.GetProperty("error");
throw new Exception($"{error.GetProperty("code")}: {error.GetProperty("message")}");
}
Console.WriteLine(body.RootElement.GetProperty("data"));
Console.WriteLine(body.RootElement.GetProperty("meta").GetProperty("credits_charged"));// Cargo.toml: reqwest = { version = "0.12", features = ["blocking", "json"] }, serde_json = "1"
use std::env;
fn main() -> Result<(), Box<dyn std::error::Error>> {
let res = reqwest::blocking::Client::new()
.get("https://socialtap.dev/v1/tiktok/post")
.query(&[("url", "https://www.tiktok.com/@scout2015/video/6718335390845095173"), ("analysis", "labels"), ("labels", "bug,feature_request,praise")])
.header("x-api-key", env::var("SOCIALTAP_API_KEY")?)
.send()?;
let ok = res.status().is_success();
let body: serde_json::Value = res.json()?;
if !ok {
return Err(format!("{}: {}", body["error"]["code"], body["error"]["message"]).into());
}
println!("{} {}", body["data"], body["meta"]["credits_charged"]);
Ok(())
}{
"labels": [
"…"
],
"labels_probability": {
"…": 0.65
}
}Values are examples.
Value
Ask for it with analysis=labels; each item's analysis object then holds it, judged from the item's words. A value is null when it is unknown, with an analysis_unavailable warning saying why (null values).
analysis.labels: The labels you gave that apply, possibly none. labels_probability beside it maps each value returned to how sure it is, from 0 to 1.
Inputs
Needs labels: a request without it is refused before anything is charged.
Languages
Answers for items in English, Spanish, Portuguese, French, German, Italian, Dutch, Indonesian, Turkish, Polish, Japanese, Korean, Chinese, Russian, Arabic and Hindi. An item in another language gets null, free, with a warning.
Price
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. An analysis that fails is free. How analyses are priced
Endpoints
221 endpoints offer it, on 37 platforms.
TikTok22
- GETTikTok Post API
/v1/tiktok/post - GETTikTok Posts API
/v1/tiktok/posts - GETTikTok Effect Posts API
/v1/tiktok/effect_posts - GETTikTok Hashtag Posts API
/v1/tiktok/hashtag_posts - GETTikTok Liked Posts API
/v1/tiktok/liked_posts - GETTikTok Place Posts API
/v1/tiktok/place_posts - GETTikTok Playlist Posts API
/v1/tiktok/playlist_posts - GETTikTok Search API
/v1/tiktok/search_posts - GETTikTok Sound Posts API
/v1/tiktok/sound_posts - GETTikTok Top Videos API
/v1/tiktok/top_posts - GETTikTok Trending Videos API
/v1/tiktok/trending_posts - GETTikTok Profile API
/v1/tiktok/profile - GETTikTok Followers API
/v1/tiktok/followers - GETTikTok Following API
/v1/tiktok/following - GETTikTok Comment API
/v1/tiktok/comment - GETTikTok Comments API
/v1/tiktok/comments - GETTikTok Comment Replies API
/v1/tiktok/replies - GETTikTok Transcript API
/v1/tiktok/transcript - GETTikTok Hashtag Search API
/v1/tiktok/search_hashtags - GETTikTok User Search API
/v1/tiktok/search_profiles - GETTikTok Sound Search API
/v1/tiktok/search_sounds - GETTikTok Top Search API
/v1/tiktok/search_top
Instagram18
- GETInstagram Post API
/v1/instagram/post - GETInstagram Posts API
/v1/instagram/posts - GETInstagram Story API
/v1/instagram/story - GETInstagram Hashtag Posts API
/v1/instagram/hashtag_posts - GETInstagram Location Posts API
/v1/instagram/place_posts - GETInstagram Highlight Stories API
/v1/instagram/playlist_stories - GETInstagram Reels API
/v1/instagram/reels - GETInstagram Search API
/v1/instagram/search_posts - GETInstagram Audio Reels API
/v1/instagram/sound_posts - GETInstagram Trending Reels API
/v1/instagram/trending_posts - GETInstagram Profile API
/v1/instagram/profile - GETInstagram Similar Accounts API
/v1/instagram/similar_profiles - GETInstagram Comment API
/v1/instagram/comment - GETInstagram Comments API
/v1/instagram/comments - GETInstagram Reels Transcript API
/v1/instagram/transcript - GETInstagram Location Search API
/v1/instagram/search_places - GETInstagram User Search API
/v1/instagram/search_profiles - GETInstagram Audio Search API
/v1/instagram/search_sounds
Facebook12
- GETFacebook Post API
/v1/facebook/post - GETFacebook Profile Posts API
/v1/facebook/posts - GETFacebook Group Posts API
/v1/facebook/group_posts - GETFacebook Profile Photos API
/v1/facebook/photos - GETFacebook Reels API
/v1/facebook/reels - GETFacebook Profile API
/v1/facebook/profile - GETFacebook Comments API
/v1/facebook/comments - GETFacebook Comment Replies API
/v1/facebook/replies - GETFacebook Video Transcript API
/v1/facebook/transcript - GETFacebook Group Search API
/v1/facebook/search_groups - GETFacebook Post Search API
/v1/facebook/search_posts - GETFacebook Page and People Search API
/v1/facebook/search_profiles
YouTube15
- GETYouTube Video API
/v1/youtube/post - GETYouTube Channel Videos API
/v1/youtube/posts - GETYouTube Community Posts API
/v1/youtube/channel_posts - GETYouTube Hashtag Videos API
/v1/youtube/hashtag_posts - GETYouTube Playlist Videos API
/v1/youtube/playlist_posts - GETYouTube Related Videos API
/v1/youtube/post_related_posts - GETYouTube Search API
/v1/youtube/search_posts - GETYouTube Sound Shorts API
/v1/youtube/sound_posts - GETYouTube Trending Videos API
/v1/youtube/top_posts - GETYouTube Trending Shorts API
/v1/youtube/trending_posts - GETYouTube Channel API
/v1/youtube/profile - GETYouTube Channel Search API
/v1/youtube/search_profiles - GETYouTube Comments API
/v1/youtube/comments - GETYouTube Comment Replies API
/v1/youtube/replies - GETYouTube Transcript API
/v1/youtube/transcript
Reddit10
- GETReddit Post API
/v1/reddit/post - GETReddit User Posts API
/v1/reddit/posts - GETReddit Search API
/v1/reddit/search_posts - GETReddit Subreddit Posts API
/v1/reddit/subreddit_posts - GETReddit Profile API
/v1/reddit/profile - GETReddit User Search API
/v1/reddit/search_profiles - GETReddit Comments API
/v1/reddit/comments - GETReddit User Comments API
/v1/reddit/profile_comments - GETReddit Comment Search API
/v1/reddit/search_comments - GETReddit Video Transcript API
/v1/reddit/transcript
Threads6
GitHub11
- GETGitHub Profile API
/v1/github/profile - GETGitHub Followers API
/v1/github/followers - GETGitHub Following API
/v1/github/following - GETGitHub Contributors API
/v1/github/repository_contributors - GETGitHub User Search API
/v1/github/search_profiles - GETGitHub Trending Developers API
/v1/github/trending_profiles - GETGitHub Issue Comments API
/v1/github/issue_comments - GETGitHub Issue API
/v1/github/issue - GETGitHub Issues API
/v1/github/issues - GETGitHub Pull Requests API
/v1/github/profile_pull_requests - GETGitHub Issue Search API
/v1/github/search_issues
LinkedIn13
- GETLinkedIn Post API
/v1/linkedin/post - GETLinkedIn Posts API
/v1/linkedin/posts - GETLinkedIn Reactions API
/v1/linkedin/liked_posts - GETLinkedIn Reposts API
/v1/linkedin/post_reposts - GETLinkedIn Profile API
/v1/linkedin/profile - GETLinkedIn Employees API
/v1/linkedin/employees - GETLinkedIn Following API
/v1/linkedin/following - GETLinkedIn Post Reactions API
/v1/linkedin/post_reactions - GETLinkedIn Comments API
/v1/linkedin/comments - GETLinkedIn Profile Comments API
/v1/linkedin/profile_comments - GETLinkedIn Video Transcript API
/v1/linkedin/transcript - GETLinkedIn Post Search API
/v1/linkedin/search_posts - GETLinkedIn Company and People Search API
/v1/linkedin/search_profiles
X12
- GETX (Twitter) Post API
/v1/x/post - GETX (Twitter) User Posts API
/v1/x/posts - GETX (Twitter) Community Posts API
/v1/x/community_posts - GETX (Twitter) Mentions API
/v1/x/profile_mentions - GETX (Twitter) Profile API
/v1/x/profile - GETX (Twitter) List Followers API
/v1/x/list_followers - GETX (Twitter) Comments API
/v1/x/comments - GETX (Twitter) Video Transcript API
/v1/x/transcript - GETX (Twitter) Community Search API
/v1/x/search_communities - GETX (Twitter) Hashtag Search API
/v1/x/search_hashtags - GETX (Twitter) Post Search API
/v1/x/search_posts - GETX (Twitter) User Search API
/v1/x/search_profiles
Spotify6
Hacker News10
- GETHacker News Story API
/v1/hackernews/story - GETHacker News Feed API
/v1/hackernews/feed_stories - GETHacker News Search API
/v1/hackernews/search_stories - GETHacker News User Favorites API
/v1/hackernews/user_favorites - GETHacker News User Stories API
/v1/hackernews/user_stories - GETHacker News User API
/v1/hackernews/user - GETHacker News Comment API
/v1/hackernews/comment - GETHacker News Comments API
/v1/hackernews/comments - GETHacker News Comment Search API
/v1/hackernews/search_comments - GETHacker News User Comments API
/v1/hackernews/user_comments
Amazon4
Apple Music5
Fandom5
Pinterest5
Cosmos5
Google Maps6
- GETGoogle Maps Photo API
/v1/googlemaps/post - GETGoogle Maps Photos API
/v1/googlemaps/place_photos - GETGoogle Maps Updates API
/v1/googlemaps/place_posts - GETGoogle Maps Contributor API
/v1/googlemaps/contributor - GETGoogle Maps Contributor Reviews API
/v1/googlemaps/contributor_reviews - GETGoogle Maps Reviews API
/v1/googlemaps/place_reviews
Rumble6
Bluesky5
Twitch4
Telegram4
TikTok Shop1
Kwai3
Snapchat3
SoundCloud3
Truth Social3
TikTok Ad Library3
Facebook Ad Library6
- GETFacebook Ad Library Advertiser API
/v1/facebook/advertiser - GETFacebook Ad Library Advertiser Search API
/v1/facebook/search_advertisers - GETFacebook Ad Transcript API
/v1/facebook/ad_transcript - GETFacebook Ad Library Ad API
/v1/facebook/ad - GETFacebook Ad Library Advertiser Ads API
/v1/facebook/ads - GETFacebook Ad Library Search API
/v1/facebook/search_ads
Google Ads Transparency Center5
- GETGoogle Ads Transparency Center Advertiser API
/v1/google/advertiser - GETGoogle Ads Transparency Center Advertiser Search API
/v1/google/search_advertisers - GETGoogle Ads Transparency Center Ad API
/v1/google/ad - GETGoogle Ads Transparency Center Advertiser Ads API
/v1/google/ads - GETGoogle Ads Transparency Center Ads by Website API
/v1/google/search_ads