Hashtag
A hashtag with its post and view counts.
GET
apiKeyheader
AuthorizationBearer <token>An API key from the dashboard: Authorization: Bearer sapi_….
name?stringThe hashtag, with or without #.
id?stringTikTok's id for it, instead of name.
url?stringIts page's link (https://www.tiktok.com/tag/fyp), instead of name.
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 TikTok hashtag.
import { SocialAPI } from "@socialapihq/sdk";const client = new SocialAPI({ apiKey: process.env.SOCIALAPI_API_KEY });const { data } = await client.tiktok.hashtag({ name: "fyp" });Example Response
{ "data": { "id": "229207", "name": "fyp", "description": null, "url": "https://www.tiktok.com/tag/fyp", "posts": 9557629436, "views": 132490583953866, "ext": { "coverUrl": null, "commerce": false } }}