Skip to Content

Hashtag

A hashtag with its views.

GET
/v1/douyin/hashtag

Authorization

apiKey
headerAuthorizationBearer <token>

An API key from the dashboard: Authorization: Bearer sapi_….

Query Parameters

url?string

Its link, or a share link.

id?string

Its id, instead of url.

maxAge?integer

How old a cached answer may be, in seconds; 0 always fetches. Default and most: the endpoint's cache lifetime.

Formatint64
Range0 <= value

Response Body

The answer.

application/json
  1. response

One item, as every single-item endpoint answers: { "data": … }.

data*

A hashtag (challenge).

Example Request
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"    }  }}