Skip to main content
POST
/
api
/
tiktok
/
users
/
videos
/tiktok/users/videos
curl --request POST \
  --url https://api.anysite.io/api/tiktok/users/videos \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "user": "<string>",
  "count": 2,
  "timeout": 300
}
'
[
  {
    "id": "<string>",
    "@type": "@tik_tok_video",
    "description": "<string>",
    "created_at": 123,
    "duration": 123,
    "cover": "<string>",
    "play_url": "<string>",
    "width": 123,
    "height": 123,
    "region": "<string>",
    "text_language": "<string>",
    "is_ad": false,
    "hashtags": [],
    "author": {
      "id": "<string>",
      "alias": "<string>",
      "@type": "@tik_tok_user",
      "nickname": "<string>",
      "sec_uid": "<string>",
      "image": "<string>",
      "signature": "<string>",
      "bio_link": "<string>",
      "created_at": 123,
      "language": "<string>",
      "is_verified": false,
      "is_private": false,
      "is_organization": false,
      "is_seller": false,
      "is_commerce_user": false,
      "profile_url": "<string>",
      "follower_count": 123,
      "following_count": 123,
      "heart_count": 123,
      "video_count": 123,
      "digg_count": 123,
      "friend_count": 123
    },
    "music": {
      "id": "<string>",
      "@type": "@tik_tok_video_music",
      "title": "<string>",
      "author_name": "<string>",
      "play_url": "<string>",
      "cover": "<string>",
      "duration": 123,
      "is_original": false
    },
    "video_url": "<string>",
    "play_count": 123,
    "like_count": 123,
    "comment_count": 123,
    "share_count": 123,
    "collect_count": 123,
    "repost_count": 123
  }
]

Documentation Index

Fetch the complete documentation index at: https://docs.anysite.io/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
user
string
required

TikTok handle ('khaby.lame'), '@handle', profile URL, or user secUid.

Minimum string length: 1
Examples:

"khaby.lame"

"@mrbeast"

"https://www.tiktok.com/@khaby.lame"

count
integer
required

Max number of videos to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

id
string
required
@type
string
default:@tik_tok_video
description
string | null
created_at
integer | null
duration
integer | null
cover
string | null
play_url
string | null
width
integer | null
height
integer | null
region
string | null
text_language
string | null
is_ad
boolean
default:false
hashtags
string[]
author
TikTokUser · object
music
TikTokVideoMusic · object
video_url
string | null
play_count
integer | null
like_count
integer | null
comment_count
integer | null
share_count
integer | null
collect_count
integer | null
repost_count
integer | null