List TikTok profile videos
curl --request GET \
--url https://api.aisa.one/apis/v1/tiktok/profiles/{handle}/videos \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/tiktok/profiles/{handle}/videos"
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/profiles/{handle}/videos', 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/profiles/{handle}/videos",
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/profiles/{handle}/videos"
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/profiles/{handle}/videos")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tiktok/profiles/{handle}/videos")
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": {
"lookupStatus": "found",
"page": {
"hasMore": false,
"nextCursor": null
},
"videos": []
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01example",
"version": "v1"
}
}TikTok
List TikTok profile videos
Lists videos from a TikTok profile by handle. 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
/
profiles
/
{handle}
/
videos
List TikTok profile videos
curl --request GET \
--url https://api.aisa.one/apis/v1/tiktok/profiles/{handle}/videos \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/tiktok/profiles/{handle}/videos"
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/profiles/{handle}/videos', 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/profiles/{handle}/videos",
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/profiles/{handle}/videos"
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/profiles/{handle}/videos")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/tiktok/profiles/{handle}/videos")
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": {
"lookupStatus": "found",
"page": {
"hasMore": false,
"nextCursor": null
},
"videos": []
},
"meta": {
"creditsCharged": 1,
"requestId": "req_01example",
"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/profiles/{handle}/videos
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/tiktok/profiles/{handle}/videos - handle: path; required
- cursor: query; optional
- hostMedia: query; optional
- includePinned: query; optional
- region: query; optional
- sortBy: query; optional
- trim: query; optional
- userId: query; optional
{
"operationId": "tiktok.profiles.handle.videos",
"method": "GET",
"path": "/apis/v1/tiktok/profiles/{handle}/videos",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "path",
"name": "handle",
"required": true,
"schema": {
"description": "TikTok handle whose videos should be listed.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"description": "Pagination cursor returned by a previous response.",
"maxLength": 16384,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "hostMedia",
"required": false,
"schema": {
"description": "When enabled, include downloadable media links when available. Media availability can affect the quoted maximum price.",
"type": "boolean"
}
},
{
"in": "query",
"name": "includePinned",
"required": false,
"schema": {
"description": "Whether to include videos pinned to the top of the profile. Default: `true`. Set `false` to leave pinned videos out; pages can then come back shorter or empty, so keep following `hasMore` and `cursor`. Send the same value on every page.",
"type": "boolean"
}
},
{
"in": "query",
"name": "region",
"required": false,
"schema": {
"description": "Optional ISO 3166-1 country code for the request.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "sortBy",
"required": false,
"schema": {
"description": "Optional sort order for the returned TikTok videos.",
"enum": [
"latest",
"popular"
],
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "trim",
"required": false,
"schema": {
"description": "Optional flag for a smaller response with fewer fields.",
"type": "boolean"
}
},
{
"in": "query",
"name": "userId",
"required": false,
"schema": {
"description": "Optional TikTok user id to speed up the request.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.686 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
Path Parameters
Query Parameters
Response
TikTok videos for the requested profile.
Standard success response envelope.