Analyse a reference ad
analyze_referenceAnalyze a reference video or Instagram/TikTok link to extract beats, transcript, graphics, pacing, palette and music into a reusable profile; data mode returns duration, transcript and frame sheet.
Instructions
Read a reference ad into a reference_profile: its beats (role, timing as shares of the clip, whether the presenter speaks, listens or is off screen), the graphics in our template vocabulary, captions, pacing, palette and music. It keeps the reference's words: transcript (timed words), hook (the words of its first 3 s, through the end of that sentence), each beat's spoken_summary and each graphic's label_hint. What we cannot draw is in unmapped with a substitute and in warnings. Pass asset_id of an MP4 asset (create_asset with kind: "video"), at most 120 s and 100 MiB, or source_url: an Instagram reel or post link (instagram.com/reel/, /reels/, /p/) or a TikTok video link (tiktok.com/@/video/, vm.tiktok.com/). A link becomes an analysis-only asset of this account (asset_id in the answer) and the answer's source carries the post's views, likes, comments, views per hour, the author's median views around it and over their 12 latest reels, each with the ratio, the top comments and the code words commenters repeat; a number the platform did not give is null and named in warnings. A YouTube link is refused: upload its MP4 with create_asset. mode: "data" skips the vision pass and answers data instead of a profile: duration, size and fps, the timed transcript, the hook and a 3×3 frame sheet (a signed JPEG link), with source for a link as above; a reel with no speech gives an empty transcript and a warning. 70 credits for full, 10 for data, held at the start and charged once it succeeds; a failed analysis costs nothing. 10 new full and 60 new data analyses per hour per account. Answers at once with state queued; call get_reference_analysis every 10 seconds until succeeded (about a minute) or failed. The same asset, or the same reel by its full link, in the same mode returns the same analysis, free, unless it failed; a short vm.tiktok.com link always starts a new one. The asset is not changed. The profile names techniques; it copies no face, voice, music or brand of the reference. Price: 70 credits per call; data mode: 10 credits per call. Quote first with quote_analysis; list_prices names every price.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | full (default, 70 credits): the reference_profile. data (10 credits): duration, size, timed transcript, hook and a 3×3 frame sheet, without the vision pass | |
| asset_id | No | asset_id of an MP4 asset of this account, at most 120 s and 100 MiB | |
| source_url | No | instead of asset_id: an Instagram reel or post link (instagram.com/reel/<code>, /reels/<code>, /p/<code>) or a TikTok video link (tiktok.com/@<user>/video/<id>, vm.tiktok.com/<code>); YouTube is refused |