Skip to content

Search Hashtag TikTok ​

GEThttps://api.repliz.com/public/research/tiktok/hashtag/search

Search TikTok hashtags by keyword, with how many people use each one and how many views it has. Returns up to 30 hashtags per page.

Endpoint Details ​

  • Authentication: Basic Auth (Authorization: Basic Base64(AccessKey:SecretKey)) or Bearer token from Login with Repliz
  • Scope (Bearer only): research:read
  • Access Tier: Gold+

TikWM key

TikTok research runs through TikWM, a separate service that reads public TikTok data, with your own TikWM API key. Save it first in Repliz under Setting → TikWM key (how to get one); without it, the request fails with 400 invalid tikwm key. Each request uses your key's own TikWM quota. When TikWM refuses a request, for example when the key is out of quota, it fails with 403 and TikWM's message.

Parameters ​

ParameterTypeRequiredDescription
keywordsstringYesHashtag keyword to search for, without #, for example cat.
nextTokenstringNoCursor for the next page: the nextToken of the previous response. Leave it out for the first page. hasMore is false and nextToken is empty when there are no more pages.

Example Request ​

bash
curl -X GET "https://api.repliz.com/public/research/tiktok/hashtag/search?keywords=cat" \
  -H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)"
javascript
import axios from 'axios';

const response = await axios.get('https://api.repliz.com/public/research/tiktok/hashtag/search', {
  params: {
    keywords: 'cat',
  },
  auth: {
    username: 'YOUR_ACCESS_KEY',
    password: 'YOUR_SECRET_KEY',
  },
});

console.log(response.data);
javascript
const credentials = btoa('YOUR_ACCESS_KEY:YOUR_SECRET_KEY');

const response = await fetch('https://api.repliz.com/public/research/tiktok/hashtag/search?keywords=cat', {
  headers: {
    Authorization: `Basic ${credentials}`,
  },
});

const data = await response.json();
console.log(data);

Response ​

json
{
  "docs": [
    {
      "id": "7118329405562159131",
      "name": "cat😼🤙",
      "users": 183,
      "views": 2039108
    }
  ],
  "hasMore": true,
  "nextToken": "405cb6b7fd9b9fbb28e42c1a1992cd4b269f559dc8ab40248426c8ddc854cd20"
}
json
{
  "code": 400,
  "message": "invalid tikwm key"
}
json
{
  "code": 403,
  "message": "Request failed with status code 429"
}
json
{
  "code": 401,
  "message": "unauthorized"
}