The TikTok APIfor apps and AI agents
Public data from the platforms you work with, through one API.
No scrapers or proxies to build and maintain.
import { SocialAPI } from "@socialapihq/sdk";
const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });
const { data } = await client.tiktok.profile({ handle: "nike" });
// {
// "data": {
// "username": "nike",
// "displayName": "Nike",
// "verified": true,
// "followers": 9440793,
// "following": 94,
// "posts": 1131,
// …
// }
// }import os
from socialapihq import SocialAPI
client = SocialAPI(api_key=os.environ["SOCIALAPI_API_KEY"])
data = client.tiktok.profile(handle="nike").data
print(data.display_name, data.followers)
# {
# "data": {
# "username": "nike",
# "displayName": "Nike",
# "verified": true,
# "followers": 9440793,
# "following": 94,
# "posts": 1131,
# …
# }
# }curl -G https://api.socialapi.sh/v1/tiktok/profile \
-H "Authorization: Bearer $SOCIALAPI_API_KEY" \
--data-urlencode "handle=nike"
# {
# "data": {
# "username": "nike",
# "displayName": "Nike",
# "verified": true,
# "followers": 9440793,
# "following": 94,
# "posts": 1131,
# …
# }
# }