TikTok API endpoint

Retrieve TikTok popular-trend hashtags

Returns trending hashtags from TikTok Creative Center. The service clamps `page` to 1-10, `limit` to at most 100, and defaults `period` to 7.

GETapiKey8 credits/requestpopulartrend.hashtagTrendResponseDoc/tiktok/popular-trend/hashtag

Parameters

NameInTypeRequiredEnumExampleDescription
x-api-keyheaderstringYesAPI key required
pagequeryintegerNoPage number
limitqueryintegerNo50Number of results per page
periodqueryintegerNo7, 30, 120Trend window in days
industry_idqueryintegerNoIndustry ID to filter trends
country_codequerystringNoUSCountry code filter
filter_byquerystringNoFilter criteria, only 'new_on_board' is allowed

Authentication

Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.

Billing

Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.

Credit cost
8 credits/request
Charged response
Successful 2xx responses
PlanPriceIncluded creditsDaily capRate limitOverage
Free$0/mo2,000500 daily credits5/minNo overage
Starter$9/mo20,0005,000 daily credits15/min$0.75/1,000 overage credits when enabled
Growth$29/mo100,00025,000 daily credits45/min$0.45/1,000 overage credits when enabled
Pro$79/mo400,000No daily cap120/min$0.30/1,000 overage credits
Business$199/mo1,200,000No daily cap300/min$0.20/1,000 overage credits
Enterprise$499/mo5,000,000No daily cap1,000/min$0.12/1,000 overage credits

Failure responses

StatusDescriptionSchema
400Invalid input#/definitions/app.Response
429Rate limit exceeded#/definitions/app.Response
500Internal server error#/definitions/app.Response

Example response

{
  "code": 200,
  "msg": "OK",
  "data": {
    "code": 0,
    "msg": "OK",
    "data": {
      "list": [
        {
          "hashtag_id": "4777",
          "hashtag_name": "prom",
          "country_info": {
            "id": "US",
            "value": "United States",
            "label": "US"
          },
          "industry_info": {
            "id": 22000000000,
            "value": "Apparel & Accessories",
            "label": "label_22000000000"
          },
          "is_promoted": false,
          "trend": [
            {
              "time": 1776729600,
              "value": 1
            }
          ],
          "publish_cnt": 179872,
          "video_views": 766182036,
          "rank": 1,
          "rank_diff": 0,
          "rank_diff_type": 4
        }
      ],
      "pagination": {
        "page": 1,
        "size": 1,
        "total": 100,
        "has_more": true
      }
    }
  }
}

Request schema

No body schema

Response schema

#/definitions/populartrend.hashtagTrendResponseDoc

FieldTypeRequiredEnumBoundsExampleDescription
codeintegerNo200
datapopularTrend.HashtagTrendRespNo
data.codeintegerNo
data.dataobjectNo
data.data.listarrayNo
data.data.list[].country_infoobjectNo
data.data.list[].country_info.idstringNo
data.data.list[].country_info.labelstringNo
data.data.list[].country_info.valuestringNo
data.data.list[].creatorsarrayNo
data.data.list[].creators[].avatar_urlstringNo
data.data.list[].creators[].nick_namestringNo
data.data.list[].hashtag_idstringNo
data.data.list[].hashtag_namestringNo
data.data.list[].industry_infoobjectNo
data.data.list[].industry_info.idintegerNo
data.data.list[].industry_info.labelstringNo
data.data.list[].industry_info.valuestringNo
data.data.list[].is_promotedbooleanNo
data.data.list[].publish_cntintegerNo
data.data.list[].rankintegerNo
data.data.list[].rank_diffintegerNo
data.data.list[].rank_diff_typeintegerNo
data.data.list[].trendarrayNo
data.data.list[].trend[].timeintegerNo
data.data.list[].trend[].valuenumberNo
data.data.list[].video_viewsintegerNo
data.data.paginationobjectNo
data.data.pagination.has_morebooleanNo
data.data.pagination.pageintegerNo
data.data.pagination.sizeintegerNo
data.data.pagination.totalintegerNo
data.msgstringNo
data.request_idstringNo
msgstringNoOK

Example request

curl -X GET "https://api.crawlora.net/api/v1/tiktok/popular-trend/hashtag?limit=50&country_code=US" -H "x-api-key: <api-key>"

TypeScript fetch

const url = new URL("https://api.crawlora.net/api/v1/tiktok/popular-trend/hashtag");
url.searchParams.set("limit", "50");
url.searchParams.set("country_code", "US");
const headers = new Headers();
headers.set("x-api-key", "<api-key>");
const response = await fetch(url, {
  method: "GET",
  headers,
});
const payload = await response.json();