Tiktok
Get TikTok home-feed recommendation videos
Returns recommendation videos from TikTok's home feed. Optionally pass the caller's TikTok cookie in the request body for personalized recs; without it the response is a generic recommendation set.
Authorization
bearerAuth AuthorizationBearer <token>
UnifAPI API key (forwarded verbatim as the upstream provider token).
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
cookie?string
Optional TikTok cookie for personalized recommendations. Forwarded as-is.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/tiktok/feed/recommended" \ -H "Content-Type: application/json" \ -d '{}'{
"items": [
{
"id": "string",
"title": "string",
"video_description": "string",
"create_time": 0,
"duration": 0,
"cover_image_url": "string",
"share_url": "string",
"embed_link": "string",
"width": 0,
"height": 0,
"like_count": 0,
"comment_count": 0,
"share_count": 0,
"view_count": 0,
"author": {
"id": "string",
"username": "string",
"display_name": "string",
"avatar_url": "string"
},
"region": "string",
"hashtags": [
"string"
],
"music": {
"id": "string",
"title": "string",
"author": "string",
"is_original": true
},
"is_image_post": true,
"play_url": "string"
}
]
}{
"error": {
"type": "validation_error",
"message": "string",
"request_id": "string",
"issues": [
null
]
}
}{
"error": {
"type": "validation_error",
"message": "string",
"request_id": "string",
"issues": [
null
]
}
}{
"error": {
"type": "validation_error",
"message": "string",
"request_id": "string",
"issues": [
null
]
}
}{
"error": {
"type": "validation_error",
"message": "string",
"request_id": "string",
"issues": [
null
]
}
}{
"error": {
"type": "validation_error",
"message": "string",
"request_id": "string",
"issues": [
null
]
}
}{
"error": {
"type": "validation_error",
"message": "string",
"request_id": "string",
"issues": [
null
]
}
}{
"error": {
"type": "validation_error",
"message": "string",
"request_id": "string",
"issues": [
null
]
}
}