1. Platforms
  2. TikTok Scraper API
  3. TikTok video details API

TikTok video details API

Metadata and engagement stats of one video or photo slideshow.

GET api.socialscrape.dev/v1/tiktok/video

Cost
1 credit
Cached repeats
0 creditssend max_age_days, results kept 30 days
Failed requests
0 credits

get_transcript=true adds the native captions in extra.transcript; for AI transcription use /v1/tiktok/video/transcript.

You send one of url or id.

Part of the TikTok Scraper API: 24 TikTok endpoints on one key.

Request

Send your key in the x-api-key header.

1curl -G "https://api.socialscrape.dev/v1/tiktok/video" \2  -H "x-api-key: $SOCIALSCRAPE_API_KEY" \3  --data-urlencode 'url=https://www.tiktok.com/@khaby.lame/video/7137423965982592302'

Parameters

NameTypeRequiredDescription
urlurlone ofVideo URL (www.tiktok.com/@user/video/..., vm.tiktok.com/..., vt.tiktok.com/...).
idstringone ofNumeric video id. Also accepted as aweme_id, video_id.
get_transcriptbooleanInclude the video's native captions when it has them.
regionstringTwo-letter country code (ISO 3166-1) for results that vary by country. Also accepted as country, geo.

Every request also accepts trim, raw and max_age_days.

Response

Sample from a recorded response, shortened. Values are examples, not your data.

200 OKSample response
1{2  "ok": true,3  "credits_charged": 1,4  "credits_remaining": 4999,5  "cached": false,6  "cached_at": null,7  "request_id": "req_3ab8d8ed45508298004ebe2e",8  "data": {9    "object": "post",10    "platform": "tiktok",11    "id": "7137423965982592302",12    "url": "https://www.tiktok.com/@charlidamelio/video/7137423965982592302",13    "type": "video",14    "author": {15      "id": "5831967",16      "handle": "charlidamelio",17      "name": "charli d’amelio",18      "url": "https://www.tiktok.com/@charlidamelio",19      "avatar_url": "https://p16-common-sign.tiktokcdn-us.com/tos-useast5-avt-0068-tx/ee31de49ddf64b45c5b2e3c55fbd0ea4~tplv-tiktokx-cropcenter:100:100.jpeg?dr=9640&refresh_token=...",20      "verified": true21    },22    "title": null,23    "text": null,24    "published_at": "2022-08-29T22:10:18Z",25    "duration_seconds": 11,26    "language": null,27    "hashtags": null,28    "mentions": null,29    "stats": {30      "views": 22000000,31      "likes": 2100000,32      "comments": 19500,33      "shares": 17300,34      "saves": 83186,35      "dislikes": null36    },37    "media": {38      "thumbnail_url": "https://p19-common-sign.tiktokcdn-us.com/tos-useast5-p-0068-tx/c1844bce7c5a4b07b0e4ae2301a1996a~tplv-tiktokx-origin.image?dr=9636&x-expires=1793498400&x-sign...",39      "video_url": "https://v16-webapp-prime.us.tiktok.com/video/tos/useast5/tos-useast5-ve-0068c001-tx/0641e3a6387a49e4a2c8c4de2c457fe8/?a=1988&bti=ODszNWYuMDE6&&bt=1991&ft=4KJ...",40      "audio_url": null,41      "image_urls": null,42      "width": 576,43      "height": 102444    },45    "song": {46      "id": "7090403288818584347",47      "title": "Streets x Kiss it better",48      "artist": ":p",49      "url": "https://www.tiktok.com/music/Streets-x-Kiss-it-better-7090403288818584347"50    },51    "location": null,52    "is_pinned": null,53    "is_sponsored": false,54    "extra": {55      "ai_label_shown": false,56      "author_followers": 160300000,57      "category_type": 113,58      "comments_disabled": false,59      "duet_enabled": true,60      "is_private": false61    }62  },63  "cursor": null,64  "has_more": null65}

Fields

One Post in data.

A field the platform does not give is null, never made up. Extra platform details are in extra.

FieldTypeAlwaysNotes
object"post"
platformPlatformyes
idstringyes
urlstring or null
type"video" or "short" or "reel" or "image" or "carousel" or "story" or "live" or "clip" or "text" or "link" or "tweet" or "pin" or "community_post" or "episode" or "unknown"
authorAuthor or null
titlestring or null
textstring or null
published_atstring (ISO 8601 date-time) or null
duration_secondsnumber or null
languagestring or null
hashtagsstring[] or null
mentionsstring[] or null
statsStats
Show the other 6 fields
FieldTypeAlwaysNotes
mediaMedia
songSongRef or null
locationPlace or null
is_pinnedboolean or null
is_sponsoredboolean or null
extraobject or null

Full field list in the reference for this endpoint and the data models. Errors are listed under Errors.

Questions

Which errors can it return?

invalid_params (do not retry), unsupported_url (do not retry), not_found (do not retry). Account and platform errors from the errors list can also happen. A failure always costs 0 credits.

Is there an SDK call for it?

The Python client has client.tiktok.video(...) and the TypeScript client client.tiktok.video(). Both return the same envelope as the HTTP API. Install them from PyPI (socialscrape-sdk) or npm (socialscrape); plain HTTP works in any language.

Can an AI agent call it?

Yes. The MCP server, which you run on your own machine, reaches every built endpoint, with the same prices.