Docs · Profile videos
Profile videos
A creator's videos and photo posts, newest first, up to 15 per page.
https://api.lurkapi.com/v3/tiktok/profile/videosWhen to use this
Use it to audit a creator's recent content: every post with views, likes, comments, shares, saves, caption and media. Posts come newest first, up to 15 per page. Pinned posts appear in date order, like every other post.
Pagination. Pass the response's max_cursor back as max_cursor (with the same handle) for older posts. has_more is false at the end. A creator who hasn't posted for weeks can give a page with no posts but has_more: true; keep paging.
Unknown, banned and deleted accounts return 404 not_found. Private accounts return an empty videos list.
Parameters
All parameters go in the query string.
| Parameter | Description |
|---|---|
handlestringrequired | TikTok username, with or without @ (e.g. nike), or the profile URL.
|
max_cursorstringoptional | The max_cursor from the previous response, to get older posts. |
Example request
Replace YOUR_API_KEY with your key, or set LURKAPI_KEY for the code. Get a free key.
curl "https://api.lurkapi.com/v3/tiktok/profile/videos?handle=hubspot" \
-H "x-api-key: YOUR_API_KEY"const params = new URLSearchParams({
handle: "hubspot",
});
const res = await fetch(`https://api.lurkapi.com/v3/tiktok/profile/videos?${params}`, {
headers: { "x-api-key": process.env.LURKAPI_KEY },
});
const data = await res.json();
if (!data.success) throw new Error(`${data.code}: ${data.error}`);
console.log(data.videos);import os
import requests
res = requests.get(
"https://api.lurkapi.com/v3/tiktok/profile/videos",
params={
"handle": "hubspot",
},
headers={"x-api-key": os.environ["LURKAPI_KEY"]},
timeout=60,
)
data = res.json()
if not data["success"]:
raise RuntimeError(f"{data['code']}: {data['error']}")
print(data["videos"])Example response
A real response from this endpoint, captured from the live API and trimmed to a couple of items. Strings over 96 characters (mostly signed media URLs) are cut short and end in ….
Show the example response (4 KB)Hide
{
"success": true,
"credits_remaining": 99982,
"credits_charged": 1,
"videos": [
{
"id": "7688075789086084366",
"url": "https://www.tiktok.com/@hubspot/video/7688075789086084366",
"desc": "Monday is feeling extra Monday after an incredible week at UNBOUND. See you next year!!",
"createTime": 1790019661,
"textLanguage": "en",
"locationCreated": null,
"isAd": true,
"author": {
"id": "6921028957732193285",
"uniqueId": "hubspot",
"nickname": "HubSpot",
"secUid": "MS4wLjABAAAAuY18L_r3HfP3KEtK0txT2RPxDj1uSMSqbHZF33aYcGVAwL3PUA50WeQkR2o53xqr",
"verified": true,
"privateAccount": false,
"avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/7351755…",
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/7351755…"
},
"stats": {
"playCount": 854,
"diggCount": 19,
"commentCount": 0,
"shareCount": 0,
"collectCount": 4,
"repostCount": 0
},
"video": {
"duration": 32,
"width": 720,
"height": 1280,
"definition": "720p",
"cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-p-85c255-tx/oYgDCkV…",
"dynamicCover": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-85c255-tx/o8LxmgQ…",
"playUrl": "https://www.tiktok.com/aweme/v1/play/?faid=1988&file_id=ba2050668fcb4317…",
"expires_at": 1790947173
},
"music": {
"id": "7688075873761348366",
"title": "original sound",
"authorName": "HubSpot",
"original": true,
"duration": 32,
"playUrl": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast5/tos-useast5-v-2…",
"cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/7351755…"
},
"hashtags": [],
"mentions": [],
"images": []
},
{
"id": "7686983062382480654",
"url": "https://www.tiktok.com/@hubspot/video/7686983062382480654",
"desc": "Stepping into Q4, ready to crush quotas and serve looks",
"createTime": 1789765213,
"textLanguage": "en",
"locationCreated": null,
"isAd": false,
"author": {
"id": "6921028957732193285",
"uniqueId": "hubspot",
"nickname": "HubSpot",
"secUid": "MS4wLjABAAAAuY18L_r3HfP3KEtK0txT2RPxDj1uSMSqbHZF33aYcGVAwL3PUA50WeQkR2o53xqr",
"verified": true,
"privateAccount": false,
"avatarThumb": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/7351755…",
"avatarLarger": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/7351755…"
},
"stats": {
"playCount": 690,
"diggCount": 25,
"commentCount": 2,
"shareCount": 9,
"collectCount": 3,
"repostCount": 0
},
"video": {
"duration": 35,
"width": 720,
"height": 1280,
"definition": "720p",
"cover": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-85c255-tx/oI6RfJD…",
"dynamicCover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-p-85c255-tx/oA6tD0t…",
"playUrl": "https://www.tiktok.com/aweme/v1/play/?faid=1988&file_id=ee0f55c7c0254005…",
"expires_at": 1790947176
},
"music": {
"id": "7686983088345352973",
"title": "original sound",
"authorName": "HubSpot",
"original": true,
"duration": 35,
"playUrl": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast5/tos-useast5-v-2…",
"cover": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/7351755…"
},
"hashtags": [],
"mentions": [],
"images": []
}
],
"has_more": true,
"max_cursor": "1783021491000"
}Response fields
Every field of a successful response. [] marks a list: a[].b is the b of each item in a. nullable fields can be null; optional fields can be missing.
Show all 52 fieldsHide
| Field | Type | Description |
|---|---|---|
| success | true | Always true here; errors have success: false. |
| credits_remaining | number | Your balance after this call. On anonymous playground calls: free tries left today. |
| credits_charged | number | Credits this call cost; 0 on free endpoints. On anonymous playground calls: tries used (1). |
| videos | object[] | Posts, newest first. |
| videos[].id | string | Video id, e.g. 7671325437229845774. |
| videos[].url | string | The post on tiktok.com. |
| videos[].desc | string | Caption, hashtags included. |
| videos[].createTime | number | Posted at, Unix seconds. |
| videos[].textLanguage | stringnullable | Caption language as TikTok detects it, e.g. en; null if unknown. |
| videos[].locationCreated | stringnullable | Country the post was made in, as a 2-letter code; null if unknown. |
| videos[].isAd | boolean | A paid ad (Spark Ad or promoted post). |
| videos[].author | object | Who posted it. |
| videos[].author.id | string | Numeric user id. |
| videos[].author.uniqueId | string | Username (handle), without @. |
| videos[].author.nickname | string | Display name. |
| videos[].author.secUid | string | TikTok's long, stable user id; other tools ask for it. |
| videos[].author.verified | boolean | Has the verified badge. |
| videos[].author.privateAccount | boolean | The account is private. |
| videos[].author.avatarThumb | stringnullable | Small avatar URL (expires after a few days); null if TikTok has none. |
| videos[].author.avatarLarger | stringnullable | Large avatar URL (expires after a few days); null if TikTok has none. |
| videos[].stats | object | Engagement when fetched. Exact numbers, not rounded. |
| videos[].stats.playCount | number | Views. |
| videos[].stats.diggCount | number | Likes. |
| videos[].stats.commentCount | number | Comments. |
| videos[].stats.shareCount | number | Shares. |
| videos[].stats.collectCount | numbernullable | Saves (favorites); null where TikTok doesn't show it. |
| videos[].stats.repostCount | numbernullable | Reposts; null where TikTok doesn't show it. |
| videos[].video | object | The video file. For photo posts see images. |
| videos[].video.duration | number | Length in seconds; 0 for photo posts. |
| videos[].video.width | number | Width in pixels; 0 for photo posts. |
| videos[].video.height | number | Height in pixels; 0 for photo posts. |
| videos[].video.definition | stringnullable | Quality of the default rendition, e.g. 720p. |
| videos[].video.cover | stringnullable | Cover image URL (expires after a few days); null if TikTok has none. |
| videos[].video.dynamicCover | stringnullable | Animated cover URL (expires after a few days); null if TikTok has none. |
| videos[].video.playUrl | stringnullable | MP4 URL that plays without cookies (h264, best quality). It redirects to TikTok's CDN and expires at expires_at; null if TikTok has none. |
| videos[].video.expires_at | numbernullable | When playUrl stops working, Unix seconds; null if unknown. |
| videos[].music | objectnullable | The sound; null if the post has none. |
| videos[].music.id | string | Sound id; pass it to song endpoints. |
| videos[].music.title | string | Sound title, e.g. original sound. |
| videos[].music.authorName | stringnullable | Artist, or the creator for original sounds. |
| videos[].music.original | boolean | An original sound made with this post rather than a track. |
| videos[].music.duration | numbernullable | Length in seconds. |
| videos[].music.playUrl | stringnullable | Audio URL (expires after a few hours); null if TikTok has none. |
| videos[].music.cover | stringnullable | Sound cover image URL; null if TikTok has none. |
| videos[].hashtags | string[] | Hashtags in the caption, without #. |
| videos[].mentions | string[] | Usernames @mentioned in the caption. |
| videos[].images | object[] | The slides of a photo post, in order. Empty for videos. |
| videos[].images[].url | string | Image URL (expires after a few days). |
| videos[].images[].width | number | Width in pixels. |
| videos[].images[].height | number | Height in pixels. |
| has_more | boolean | There are older posts. |
| max_cursor | stringnullable | Pass as max_cursor for older posts. null on the last page. |
Caching and freshness
Responses are cached for up to 5 minutes, so a repeat call within that window can return the same data. It still costs 1 credit.
Errors
Errors return { success: false, error, code, docs } with the HTTP status below. Validation errors, 401/402/429 rejections and 5xx failures are free; not_found is charged (how charging works). All error codes.
| Status | Code | Meaning |
|---|---|---|
| 401 | missing_api_key | No API key. Send it in the x-api-key header. |
| 401 | invalid_api_key | The key is unknown or was revoked. |
| 402 | insufficient_credits | Not enough credits for this call. Buy a pack or wait for tomorrow's top-up. |
| 404 | not_found | The endpoint, or the thing you asked for (ad, post, subreddit), doesn't exist. Charged when the platform was checked. |
| 405 | method_not_allowed | Endpoints take GET with query params. |
| 429 | rate_limited | Too many calls at once. Wait for the retry-after seconds, then retry. |
| 500 | internal_error | Something broke on our side. Retry; 5xx errors are free. |
| 502 | upstream_error | The platform didn't give a usable answer. Retry; 5xx errors are free. |
| 503 | upstream_busy | All our connections to the platform are busy. Retry in a few seconds; 5xx errors are free. |
| 504 | upstream_timeout | The platform took over 30 seconds to answer. Retry; timeouts are free. |
Use it in Claude
Once LurkAPI is connected to Claude, this endpoint is the tiktok_profile_videos tool. Ask in plain English, for example:
Use LurkAPI's tiktok_profile_videos with handle "hubspot" and summarize what you find.Claude calls tiktok_profile_videos with arguments like these, and each call costs 1 credit:
{
"handle": "hubspot"
}Tool results skip nulls and empty lists to save tokens.