Hashtag
A hashtag with its views.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
url?stringIts link, or a share link.
id?stringIts id, instead of url.
maxAge?integerHow old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.
Format
int64Range
0 <= valueThe answer.
application/json- response
One item, as every single-item endpoint answers: { "data": … }.
data*A hashtag (challenge).
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.douyin.hashtag({ id: "7710474074586679337" });Example Response
{ "data": { "id": "7710474074586679337", "name": "把生活过成gta", "description": null, "url": "https://www.douyin.com/hashtag/7710474074586679337", "posts": null, "views": 62593487, "ext": { "coverUrl": "https://p26-sign.douyinpic.com/tos-cn-i-0813c000-ce/owYgiqGAiAAu8BBAMPAByxaHEAIAPpAtgE4bw~noop.jpeg?lk3s=21e102be&x-expires=1795842000&x-signature=fDoBtvkS6udHd4zqa3jVWe2hOag%3D&from=568394430&s=PackSourceEnum_CHALLENGE_AWEME&se=false&sc=cover&biz_tag=aweme_challenge&l=202611280116466644AE24FF5AA7739BB9" } }}