Search TikTok Top results
curl --request GET \
--url https://api.aisa.one/apis/v1/tiktok/search/top \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/tiktok/search/top"
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/top', 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/top",
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/top"
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/top")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tiktok/search/top")
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": {
"items": [],
"page": {
"hasMore": false,
"nextCursor": null
},
"query": "funny"
},
"meta": {
"creditsCharged": 1,
"requestId": "req_4e2a29df-31aa-445e-a547-7d08718277a9",
"version": "v1"
}
}TikTok
Search TikTok Top results
Searches TikTok Top results (mixed content, not videos only) by keyword. Required input: query. 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
/
top
Search TikTok Top results
curl --request GET \
--url https://api.aisa.one/apis/v1/tiktok/search/top \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/tiktok/search/top"
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/top', 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/top",
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/top"
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/top")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tiktok/search/top")
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": {
"items": [],
"page": {
"hasMore": false,
"nextCursor": null
},
"query": "funny"
},
"meta": {
"creditsCharged": 1,
"requestId": "req_4e2a29df-31aa-445e-a547-7d08718277a9",
"version": "v1"
}
}
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/top
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/tiktok/search/top - cursor: query; optional
- datePosted: query; optional
- query: query; required
- region: query; optional
- sortBy: query; optional
{
"operationId": "tiktok.search.top",
"method": "GET",
"path": "/apis/v1/tiktok/search/top",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"description": "Opaque pagination cursor returned by a previous response.",
"maxLength": 16384,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "datePosted",
"required": false,
"schema": {
"description": "Optional upload date filter for video results.",
"enum": [
"all-time",
"last-3-months",
"last-6-months",
"this-month",
"this-week",
"yesterday"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "query",
"required": true,
"schema": {
"description": "Search query text for TikTok Top results.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "region",
"required": false,
"schema": {
"description": "Optional two-letter ISO 3166-1 country code for localized search results.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "sortBy",
"required": false,
"schema": {
"description": "Optional sort order for search results.",
"enum": [
"date-posted",
"most-liked",
"relevance"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
}
],
"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-28
{
"additionalProperties": true,
"properties": {
"aisa_pagination": {
"additionalProperties": true,
"properties": {
"has_more": {
"type": "boolean"
},
"next_cursor": {
"type": "string"
},
"next_param": {
"type": "string"
}
},
"type": "object"
},
"data": {
"additionalProperties": true,
"properties": {
"items": {
"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"
},
"page": {
"additionalProperties": true,
"properties": {
"hasMore": {
"type": "boolean"
},
"nextCursor": {
"type": "string"
}
},
"type": "object"
},
"query": {
"type": "string"
}
},
"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.
Response time
- Typically returns within 10 seconds.
Authorizations
Query Parameters
Response
Top search results for the requested query.
Standard success response envelope.