Skip to content

TikTok Hashtag Videos API

TikToks carrying a given hashtag, in TikTok's own feed order, with a cursor for the next page. Calls cost 1 credit each. A cache hit is free, and a failed or empty response is never charged.

Try it

Prefilled with the request that produced the example below. No key yet? Get a free key.

Request

GET/v1/tiktok/hashtag-videos
ParameterTypeRequiredDescription
hashtagstringyesTag without the # (fyp), or a full /tag/ URL
countnumbernoItems per page (default 30, max 30)
cursorstringnopagination.cursor from a previous response

Also accepts cache_max_age (a hit costs 0 credits) and include_raw (returns the untouched upstream payload under raw).

curl
curl "$API/v1/tiktok/hashtag-videos?hashtag=nike&cache_max_age=7d" \
  -H "x-api-key: $KEY"
JavaScript
const query = new URLSearchParams({
  hashtag: 'nike',
  cache_max_age: '7d',
});

const response = await fetch(`${API}/v1/tiktok/hashtag-videos?${query}`, {
  headers: { 'x-api-key': KEY },
});

const body = await response.json();
if (!body.success) throw new Error(body.error.code);

// 1 credit, 0 on a cache hit
console.log(body.data, body.meta.creditsCharged);
Python
import os, httpx

r = httpx.get(
    f"{os.environ['API']}/v1/tiktok/hashtag-videos",
    params={
        "hashtag": "nike",
        "cache_max_age": "7d",
    },
    headers={"x-api-key": os.environ["KEY"]},
    timeout=30,
)

body = r.json()
if not body["success"]:
    raise RuntimeError(body["error"]["code"])

print(body["data"], body["meta"]["creditsCharged"])

Example response

Captured on , with raw removed and lists cut to two items. A live call returns current data.

response
{
  "success": true,
  "data": {
    "items": [
      {
        "platform": "tiktok",
        "id": "7659837811415108894",
        "type": "video",
        "url": "https://www.tiktok.com/@example_user_1/video/7659837811415108894",
        "title": "Gym fail 😭😭 #workout #nike #fitness ",
        "text": "Gym fail 😭😭 #workout #nike #fitness ",
        "authorId": null,
        "authorHandle": "example_user_1",
        "authorName": null,
        "thumbnailUrl": "https://example.com/media/1.jpg",
        "mediaUrls": [
          "https://example.com/media/1.jpg"
        ],
        "durationSeconds": null,
        "viewCount": 49700000,
        "likeCount": null,
        "commentCount": null,
        "shareCount": null,
        "hashtags": [
          "workout",
          "nike"
        ],
        "mentions": [],
        "isSponsored": null,
        "publishedAt": "2026-07-07T17:22:47.000Z",
        "fetchedAt": "2026-10-21T01:54:38.338Z"
      },
      {
        "platform": "tiktok",
        "id": "7454347552398363934",
        "type": "video",
        "url": "https://www.tiktok.com/@example_user_2/video/7454347552398363934",
        "title": "Why…. #fy #fyp #fypシ #greatdane #dog #dogsoftiktok #why #nike ",
        "text": "Why…. #fy #fyp #fypシ #greatdane #dog #dogsoftiktok #why #nike ",
        "authorId": null,
        "authorHandle": "example_user_2",
        "authorName": null,
        "thumbnailUrl": "https://example.com/media/2.jpg",
        "mediaUrls": [
          "https://example.com/media/2.jpg"
        ],
        "durationSeconds": null,
        "viewCount": 69800000,
        "likeCount": null,
        "commentCount": null,
        "shareCount": null,
        "hashtags": [
          "fy",
          "fyp"
        ],
        "mentions": [],
        "isSponsored": null,
        "publishedAt": "2024-12-30T23:15:38.000Z",
        "fetchedAt": "2026-10-21T01:54:38.339Z"
      }
    ]
  },
  "pagination": {
    "cursor": null,
    "hasMore": false,
    "count": 10
  },
  "meta": {
    "platform": "tiktok",
    "endpoint": "tiktok.hashtagVideos",
    "creditsCharged": 1,
    "cached": false,
    "cacheAgeSeconds": null,
    "durationMs": 8917,
    "requestId": "req_lwe2opasvwrh0fl08fa7"
  }
}

Returns

Returns a list of Post in data.items.

Cost and behaviour

Credits1 per live request, 0 on a cache hit
Cacheableyes: cache_max_age accepts a cached copy
Batchableyes: usable as a target in POST /v1/jobs/batch
Subscribableno

Other TikTok endpoints