Skip to content
looot docs
Esc
↑↓navigate↵open⌘Jpreview
On this page

Scrape Creators API / Video Info

ScrapeCreators tool scrapecreators-tiktok-video on looot: input fields, $0.00188 per call, output shape, and code to run it with curl, JavaScript or Python.

Fetches detailed data for a single TikTok video by URL, including its metadata, engagement stats, and optionally its transcript/captions. Returns aweme_detail with desc (caption), statistics (play_count, digg_count/likes, comment_count, share_count, collect_count), video URLs, author info, and music info; also returns transcript in WEBVTT format if get_transcript=true. For no-watermark video URLs, use aweme_detail.video.download_no_watermark_addr.url_list[0] when it exists. If it is missing and aweme_detail.video.has_watermark is false, use aweme_detail.video.play_addr.url_list[0] instead. If has_watermark is true and download_no_watermark_addr is missing, TikTok did not return a no-watermark URL for that video.

Inputs

Name Type Required Description
cache_max_age string no Example: “7d”
download_media boolean no
get_transcript boolean no
region string no Example: “US”
trim boolean no
url string yes Example: “https://www.tiktok.com/@randomspamvideos25/video/7251387037834595630”

Output

Shape of the run’s result, the expected shape, not yet checked against real answers:

{ success, aweme_detail: { author: { ad_cover_url, apple_account, account_labels, account_region, authority_status, accept_private_policy, advanced_feature_info, advance_feature_item_order }, anchors, aweme_id, aigc_info: { created_by_ai, aigc_label_type }, aweme_acl: { platform_list, press_action_list, share_action_list, share_list_status }, ai_remix_info: { has_entrance }, anchors_extras, author_user_id, animated_image_info: { type, effect }, added_sound_music_info: { album, author, author_deleted, author_position, audition_duration, binded_challenge_id, allow_offline_music_to_detail_page } ... ...

The shape is cut here. Signed in, looot inspect scrapecreators-tiktok-video prints all of it.

Run it

Every call needs your API token in LOOOT_TOKEN; Sign in shows how to get one. Each run also needs a new idempotency key, so a retry never pays twice. With wait: 30 the answer comes back inline when the run ends within 30 seconds. Otherwise you get the running run back: poll GET /v1/runs/<runId>.

Example input with placeholder values:

curl -X POST "https://api.looot.ai/v1/runs" \
  -H "Authorization: Bearer $LOOOT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{"endpointId":"scrapecreators-tiktok-video","input":{"url":"jane.doe@example.com","region":"US","cache_max_age":"7d"},"wait":30}'
const response = await fetch("https://api.looot.ai/v1/runs", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.LOOOT_TOKEN}`,
    "Content-Type": "application/json",
    "Idempotency-Key": crypto.randomUUID(),
  },
  body: JSON.stringify({
    endpointId: "scrapecreators-tiktok-video",
    input: {
      url: "jane.doe@example.com",
      region: "US",
      cache_max_age: "7d",
    },
    wait: 30,
  }),
});
const run = await response.json();
console.log(run.status, run.result);
import os
import uuid

import requests

response = requests.post(
    "https://api.looot.ai/v1/runs",
    headers={
        "Authorization": f"Bearer {os.environ['LOOOT_TOKEN']}",
        "Idempotency-Key": str(uuid.uuid4()),
    },
    json={
        "endpointId": "scrapecreators-tiktok-video",
        "input": {
            "url": "jane.doe@example.com",
            "region": "US",
            "cache_max_age": "7d",
        },
        "wait": 30,
    },
    timeout=90,
)
run = response.json()
print(run["status"], run.get("result"))

To let looot pick among every provider of this job instead, send job:tiktok.video.get as endpointId; see the job page.

Was this page helpful?