/desearch/tiktok/hashtag/{tag}Retrieve normalized public TikTok posts for a hashtag. Billing metadata: successful billable responses include the `X-Desearch-Cost-Usd`, `X-Desearch-Usage-Count`, `X-Desearch-Service`, and `X-Desearch-Currency` headers. JSON object responses also include optional `cost_usd`, `usage_count`, `service`, and `currency` fields. Current prices are at https://desearch.ai/pricing. JSON arrays, text, and streaming responses keep their body shape and expose billing metadata only through headers.
Base URL
https://api.desearch.aiUse Retrieve TikTok Hashtag Posts when your application needs search-grounded AI results without maintaining its own crawler, social-data pipeline, or retrieval infrastructure. Retrieve normalized public TikTok posts by putting the hashtag in the required tag path parameter without #. The optional integer query parameter count defaults to 20 and accepts values from 1 through 100. It sets a maximum, and a page may contain fewer items. Omit cursor on the first request. When another page exists, the response includes x-desearch-next-cursor; send that value unchanged as the next request's cursor on this same hashtag route with the same tag. The header is absent on the last page. A cursor remains valid for 24 hours. An expired value, a cursor from another route or target, or any other invalid cursor returns 422 before a search runs and is not charged. The 200 response schema accepts an array of TikTokPost records or a JSON object. In a hashtag post, hashtags contains tags from cha_list, text_extra, or #tags in the caption, and is empty when none are present. The mentions array is always present and is empty when no mentions are found. Hashtag payloads carry no structured mentions, so this field lists only @handles found in the caption. Hashtag responses do not include a music object. The optional region is the country code the video was posted from, when TikTok shows it; it is a response field rather than a query parameter on this route. A pinned value of true identifies a video pinned to the top of a profile. For a photo post with a /photo/ link, imageCount gives the number of images; this field is omitted for videos. Other post fields include id, providerId, url, text, createTime, videoDuration, videoWidth, videoHeight, thumbnailUrl, and mediaUrl; their schemas permit null. The nullable author object has string fields id, username, nickname, and avatar, a boolean verified, and integer fields following, followers, and heart, each also nullable. The nullable stats object exposes nullable integer fields playCount, digCount, commentCount, shareCount, and collectCount. Successful billable responses carry X-Desearch-Cost-Usd, X-Desearch-Usage-Count, X-Desearch-Service, and X-Desearch-Currency headers. JSON object responses can also include optional cost_usd, usage_count, service, and currency fields; an array keeps its body shape and carries billing metadata only in headers. For posts from a known account, use TikTok profile posts with a username without @. The TikTok API overview covers the related public TikTok routes. The endpoint returns structured data that can be consumed by agents, research tools, dashboards, and retrieval-augmented generation workflows. Keep the request focused on the minimum fields your workflow needs so responses remain fast and easy to validate.
Send requests to GET /desearch/tiktok/hashtag/{tag} with your Desearch API key in the authorization header. Treat the key as a server-side secret, validate all required parameters before sending the request, and handle non-2xx responses explicitly. Production integrations should use sensible timeouts, retry only transient failures with backoff, and record the response status and request identifier for troubleshooting.
Test the example request below before integrating it into a larger workflow. Confirm that the returned fields, links, and timestamps meet your freshness requirements, then add schema validation at the application boundary. For agentic systems, preserve source URLs with the generated answer so users can inspect evidence and your application can avoid presenting unsupported claims.
tagstringrequiredHashtag without #
countintegerMaximum number of items to return. A page may hold fewer.
Default: 20
cursorstringOpaque pagination cursor. Omit it for the first page. For the next page, send the `x-desearch-next-cursor` response header from the previous page back unchanged, on the same route with the same target (username, tag, post, or search query). A cursor is valid for 24 hours. Any other value, including an expired cursor or one issued by a different route or target, returns 422 and is not charged.
Your API key is sent in the Authorization header.