The Douyin 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.douyin.profile({ secUid: "MS4wLjABAAAA8U_l6rBzmy7bcy6xOJel4v0RzoR_wfAubGPeJimN__4" });
// {
// "data": {
// "username": "rmrbxmt",
// "displayName": "人民日报",
// "verified": true,
// "followers": 203912912,
// "following": 35,
// "posts": 12986,
// …
// }
// }import os
from socialapihq import SocialAPI
client = SocialAPI(api_key=os.environ["SOCIALAPI_API_KEY"])
data = client.douyin.profile(sec_uid="MS4wLjABAAAA8U_l6rBzmy7bcy6xOJel4v0RzoR_wfAubGPeJimN__4").data
print(data.display_name, data.followers)
# {
# "data": {
# "username": "rmrbxmt",
# "displayName": "人民日报",
# "verified": true,
# "followers": 203912912,
# "following": 35,
# "posts": 12986,
# …
# }
# }curl -G https://api.socialapi.sh/v1/douyin/profile \
-H "Authorization: Bearer $SOCIALAPI_API_KEY" \
--data-urlencode "secUid=MS4wLjABAAAA8U_l6rBzmy7bcy6xOJel4v0RzoR_wfAubGPeJimN__4"
# {
# "data": {
# "username": "rmrbxmt",
# "displayName": "人民日报",
# "verified": true,
# "followers": 203912912,
# "following": 35,
# "posts": 12986,
# …
# }
# }