Search TikTok by hashtag
curl --request GET \
--url https://api.aisa.one/apis/v1/tiktok/search/hashtags \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/tiktok/search/hashtags"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/tiktok/search/hashtags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/tiktok/search/hashtags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/tiktok/search/hashtags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/tiktok/search/hashtags")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tiktok/search/hashtags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"hashtag": "<string>",
"page": {
"hasMore": true,
"nextCursor": "<string>"
},
"region": "<string>",
"totalVideos": 1,
"videos": [
{
"author": {
"avatarUrl": "<string>",
"displayName": "<string>",
"handle": "<string>",
"id": "<string>",
"verified": true
},
"caption": "<string>",
"createdAt": "<string>",
"durationMs": 1,
"id": "<string>",
"isAd": true,
"media": {
"downloadUrl": "<string>",
"downloadWithoutWatermarkUrl": "<string>"
},
"pinned": true,
"stats": {
"comments": 1,
"likes": 1,
"saves": 1,
"shares": 1,
"views": 1
},
"thumbnailUrl": "<string>",
"url": "<string>",
"details": {}
}
]
},
"meta": {
"creditsCharged": 1,
"requestId": "<string>",
"version": "v1"
},
"aisa_pagination": {
"has_more": true,
"next_cursor": "<string>",
"next_param": "cursor"
}
}TikTok
Search TikTok by hashtag
Searches TikTok videos by hashtag. Required input: hashtag. Results are paged: while data.page.hasMore is true, send data.page.nextCursor as cursor to get the next page.
GET
https://api.aisa.one
/
apis
/
v1
/
tiktok
/
search
/
hashtags
Search TikTok by hashtag
curl --request GET \
--url https://api.aisa.one/apis/v1/tiktok/search/hashtags \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/tiktok/search/hashtags"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/tiktok/search/hashtags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/tiktok/search/hashtags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/tiktok/search/hashtags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/tiktok/search/hashtags")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tiktok/search/hashtags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": {
"hashtag": "<string>",
"page": {
"hasMore": true,
"nextCursor": "<string>"
},
"region": "<string>",
"totalVideos": 1,
"videos": [
{
"author": {
"avatarUrl": "<string>",
"displayName": "<string>",
"handle": "<string>",
"id": "<string>",
"verified": true
},
"caption": "<string>",
"createdAt": "<string>",
"durationMs": 1,
"id": "<string>",
"isAd": true,
"media": {
"downloadUrl": "<string>",
"downloadWithoutWatermarkUrl": "<string>"
},
"pinned": true,
"stats": {
"comments": 1,
"likes": 1,
"saves": 1,
"shares": 1,
"views": 1
},
"thumbnailUrl": "<string>",
"url": "<string>",
"details": {}
}
]
},
"meta": {
"creditsCharged": 1,
"requestId": "<string>",
"version": "v1"
},
"aisa_pagination": {
"has_more": true,
"next_cursor": "<string>",
"next_param": "cursor"
}
}
Request example pending verification. The request example for this endpoint has not yet been verified in production. Static examples describe the request format; replace sample values with your own. Check the estimated price with a free quote request (X-AISA-Cost-Mode: quote) before running it.
Request contract
- Method and path: GET /apis/v1/tiktok/search/hashtags
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/tiktok/search/hashtags - cursor: query; optional
- hashtag: query; required
- region: query; optional
- trim: query; optional
{
"operationId": "tiktok.search.hashtags",
"method": "GET",
"path": "/apis/v1/tiktok/search/hashtags",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"description": "Pagination cursor returned by a previous response.",
"maxLength": 16384,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "hashtag",
"required": true,
"schema": {
"description": "Hashtag to search for. A leading # is optional.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "region",
"required": false,
"schema": {
"description": "Optional ISO 3166-1 country code for the request region. This does not restrict results to that country.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "trim",
"required": false,
"schema": {
"description": "Whether to request a smaller response with fewer fields.",
"type": "boolean"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Observed response structure
The response observations below come from successful probes or sampled requests. They are partial: fields and types may vary, and no field is guaranteed to be present. Reviewed response definitions take precedence. No real response values are published.- HTTP status / last observed: 200 / 2026-11-26
{
"additionalProperties": true,
"properties": {
"aisa_pagination": {
"additionalProperties": true,
"properties": {
"has_more": {
"type": "boolean"
},
"next_cursor": {
"type": [
"null",
"string"
]
},
"next_param": {
"type": "string"
}
},
"type": "object"
},
"data": {
"additionalProperties": true,
"properties": {
"page": {
"additionalProperties": true,
"properties": {
"hasMore": {
"type": "boolean"
},
"nextCursor": {
"type": [
"null",
"string"
]
}
},
"type": "object"
},
"region": {
"type": [
"null",
"string"
]
},
"videos": {
"items": {
"additionalProperties": true,
"properties": {
"author": {
"additionalProperties": true,
"properties": {
"avatarUrl": {
"type": "string"
},
"displayName": {
"type": "string"
},
"handle": {
"type": "string"
},
"id": {
"type": "string"
},
"verified": {
"type": "boolean"
}
},
"type": "object"
},
"createdAt": {
"type": "string"
},
"id": {
"type": "string"
},
"media": {
"additionalProperties": true,
"type": "object"
},
"thumbnailUrl": {
"type": "string"
},
"url": {
"type": "string"
}
},
"type": "object"
},
"type": "array"
}
},
"type": "object"
},
"meta": {
"additionalProperties": true,
"properties": {
"version": {
"type": "string"
}
},
"type": "object"
}
},
"type": "object"
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.014 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Request constraints and usage notes
- Some numeric ids inside `details` are larger than 2^53 (9007199254740992) and may not be exact: digits beyond that precision can differ from the real id. When you need an exact id, use the top-level string ids (such as `id`) or the matching `*_str` string fields (for example `details.music.id_str`).
Pagination
- Pass
aisa_pagination.next_cursorascursor(query parameter) to fetch the next page; stop whenaisa_pagination.has_moreis false. - The same values are returned in the
X-AISA-Has-MoreandX-AISA-Next-Cursorresponse headers. - Results may repeat across pages; de-duplicate by a stable id.
Response time
- Typically returns within 10 seconds.
Authorizations
Query Parameters
Response
Hashtag search results for the requested tag.
Standard success response envelope.