Call it
curl https://api.peume.com/v1/call/get-tiktok-video \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"postURLs": [
"https://www.tiktok.com/@examplelife/video/7200360993149553925"
],
"scrapeRelatedVideos": false,
"resultsPerPage": 100,
"shouldDownloadVideos": false,
"shouldDownloadCovers": false,
"downloadSubtitlesOptions": "NEVER_DOWNLOAD_SUBTITLES"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-tiktok-video", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"postURLs": [
"https://www.tiktok.com/@examplelife/video/7200360993149553925"
],
"scrapeRelatedVideos": false,
"resultsPerPage": 100,
"shouldDownloadVideos": false,
"shouldDownloadCovers": false,
"downloadSubtitlesOptions": "NEVER_DOWNLOAD_SUBTITLES"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-tiktok-video",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"postURLs": [
"https://www.tiktok.com/@examplelife/video/7200360993149553925"
],
"scrapeRelatedVideos": False,
"resultsPerPage": 100,
"shouldDownloadVideos": False,
"shouldDownloadCovers": False,
"downloadSubtitlesOptions": "NEVER_DOWNLOAD_SUBTITLES"
}
},
)
print(res.json()["output"])Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: get-tiktok-video.
Parameters
postURLsRequiredarrayAdd the URLs of posted videos you want to scrape. You can enter URLs one by one, or you can upload or link to a text file.
Example: ["https://www.tiktok.com/@examplelife/video/7200360993149553925"]
scrapeRelatedVideosbooleanUse to scrape related videos for the post URLs you provide. - The maximum number of scraped related videos is set by the `resultsPerPage` count.
Example: false
resultsPerPageintegerAdd the number of related videos you want to scrape for each post URL. This field is applicable when the <strong>Scrape related videos</strong> option is enabled.
Example: 100
shouldDownloadVideosbooleanThis is a charged add-on. Tick to download TikTok videos.
Example: false
shouldDownloadCoversbooleanTick to download TikTok video cover images (thumbnails).
Example: false
downloadSubtitlesOptionsstringChoose how to handle subtitles and audio transcription for input videos. Subtitles are provided by TikTok for some videos, and transcription means that this Actor will use speech-to-text AI to generate video transcript. Transcripts are charged as an extra event according to your plan.
NEVER_DOWNLOAD_SUBTITLES · DOWNLOAD_SUBTITLES · DOWNLOAD_AND_TRANSCRIBE_VIDEOS_WITHOUT_SUBTITLES · TRANSCRIBE_ALL_VIDEOS
Example: NEVER_DOWNLOAD_SUBTITLES
shouldDownloadSlideshowImagesbooleanTick to download TikTok slideshow images.
Example: false
videoKvStoreIdOrNamestringName (or ID) of the Key Value Store where the videos and other media like thumbnails will be stored. Omit to store in the default one. Using this option will provide a named Key-Value store can help bypass data retention and store the content forever until the store is manually deleted.<br><br>The Key-Value store's name can consist of a versatile combination of uppercase letters, lowercase letters, digits, or hyphens, all without any spaces.
Example: tiktok-videos
