Skip to content
Auto

Submit a Video-Detail Job

POST /api/video-jobs/full1 credit per request

Submit a TikTok video for scraping. This returns the full result bundle — likes, views, comments, shares, saves, and keranjang kuning (basket) status/details — in one call and one credit.

Method Path Returns
POST /api/video-jobs/full Everything below in one call
POST /api/video-jobs Legacy alias of /full — same price, kept for backward compatibility

Provide either videoUrl, or both handle and itemId — not a mix of the two.

Name Type Required Description
videoUrl string One of videoUrl or handle+itemId A TikTok video URL
handle string One of videoUrl or handle+itemId Creator handle, without @
itemId string One of videoUrl or handle+itemId TikTok video/item ID
webhookUrl string No If set, Megomi POSTs the finished result here instead of (or in addition to) you polling for it. Must be http:// or https:// and resolve to a public address — loopback, private, and link-local targets are rejected with 400
Field Type Description
requestId string Opaque ID for this request (req_…) — not a database index, so it can’t be used to guess how many requests Megomi has served. Keep it if you plan to resubmit later
itemId string Resolved TikTok item ID
status string queued | processing | success | not-found | blocked | timed-out | cancelled
coalesced boolean true if this request attached to an already-in-flight job for the same video
cached boolean true if served from a fresh, previously-scraped result
result object | null Shape depends on the endpoint called — see below. null until the job resolves
finishReason string | null Present once the job reaches a terminal status

Responses come back 200 with a terminal result if the job resolves within 10 seconds. Otherwise 202 — there’s no separate polling endpoint, so from here you either wait for your webhookUrl, or resubmit the exact same request later to get the (by-then-resolved) result inline, at no extra charge.

Terminal window
curl -X POST "https://api.megomi.com/api/video-jobs/full" \
-H "x-api-key: YOUR_API_KEY" \
-H "content-type: application/json" \
-d '{"videoUrl": "https://www.tiktok.com/@creator/video/7123456789012345678"}'
{
"requestId": "req_9f1kQ3zP7mLxA2dR",
"itemId": "7123456789012345678",
"status": "success",
"coalesced": false,
"cached": false,
"result": {
"likes": 128400,
"views": 2114500,
"comments": 3021,
"shares": 884,
"saves": 2110,
"hasBasket": true,
"basketProducts": [{ "id": "1729...", "title": "..." }]
},
"finishReason": null
}