How to extract a video tweet transcript on X (Twitter)
Extract the spoken transcript from an X video tweet by URL and use the result to mark which clips need manual caption review
On this page
You have 12 X video tweet URLs from a campaign review and need the spoken words for each one. Run anyapi.twitter.tweet_transcript on each URL, then use found, data.transcript and reason to mark which clips need manual caption review
The worksheet below is the deliverable: one row per URL, with the transcript and a review decision. No run has been executed for this guide, so the table is a design and the values are placeholders
The task and the deliverable table
The job is a 12-row review. Each row is a video tweet permalink, and the output should let you scan for missing transcripts before a caption check
Values here are placeholders showing the shape
| Source tweet URL | found | transcript | reason | Manual caption review |
|---|---|---|---|---|
| Example URL | true or false | transcript text or empty | not_found, too_long or empty | yes or no |
Use found as the first sort key. A true row has a transcript to read; a false row has no transcript and needs a manual look
Input: the video tweet URL
The tool id is anyapi.twitter.tweet_transcript, and the tool is called through POST /v1/runs with toolId anyapi.twitter.tweet_transcript. The input includes url as required. Copy the X post permalink for the video tweet and pass it as the url value. The contract describes url as the tweet URL of the video to transcribe
Example URL: https://x.com/samplecreator/status/1916982720317821050 (Example, invented for this guide). Replace it with the permalink of the video tweet you need transcribed
How to read the output and decide
The output fields that drive the decision are found, data.transcript and reason. found is a boolean. When found is true, data.transcript holds the transcript string. When found is false, reason is present with not_found or too_long
Fill the decision column with that state. For found: true, copy data.transcript into the row; that clip has text for the campaign review. For found: false, leave the transcript empty and mark the row for manual caption review. The contract says a found: false answer is a successful call, not an error
Where the tool stops: length and missing results
too_long is the limit to place next to this step. The contract says the video is longer than the source can transcribe, so asking again returns the same answer. Do not retry that row; mark it for manual caption review
not_found is the other false reason. The contract says the source states the target does not exist, or returned nothing for it. Treat it as a missing transcript for this run, not as a tool error
The agent prompt
Set up https://purrkey.app/SKILL.md, then use Purrkey to extract the spoken transcript from 12 X video tweet URLs for a campaign review. Check the current inputs and price of anyapi.twitter.tweet_transcript before running. Call the tool once per URL. Return a table with source tweet URL, found, transcript, reason and manual caption review decision. Put the transcript from data.transcript when found is true. Leave transcript empty when found is false, copy reason when present, and mark those rows for manual caption review. Do not retry a too_long result.
Example URL: https://x.com/samplecreator/status/1916982720317821050
Replace this example line with your 12 X video tweet permalinks.Estimated tool cost
The catalog lists anyapi.twitter.tweet_transcript with unit max_call: Maximum per call. Successful runs settle at the actual AnyAPI charge. The price, read through the Purrkey catalog on November 13, 2026 at price revision anyapi-catalog-2026-11-05, is up to $0.036 per call
Cost tables are ceilings. Model fees for the agent are not counted
| Step | Formula | Unit price | Planned quantity | Total |
|---|---|---|---|---|
| Single video tweet transcript | calls x max price | up to $0.036 per call | 1 | $0.036 |
| Ten video tweet transcripts | calls x max price | up to $0.036 per call | 10 | $0.36 |
| 12 URL campaign review | calls x max price | up to $0.036 per call | 12 | $0.432 |
The 12 URL plan covers the campaign review in the task. A row that returns found: false is a successful call, so plan for one call for that row
Run the first URL
Open the Twitter tools page and run anyapi.twitter.tweet_transcript on the first video tweet URL in your 12-row list
Get started by giving this to your agent
- Claude Code
- Codex
- Gemini CLI
- Cursor
- GitHub Copilot
Set up https://purrkey.app/SKILL.md, then use Purrkey to show me what I can do with X (Twitter).FAQ
How do I extract a transcript from an X video tweet?
Pass the X post permalink for the video tweet as url to anyapi.twitter.tweet_transcript. The output has found, data.transcript and, when found is false, a reason.
What input does anyapi.twitter.tweet_transcript need?
It takes the video tweet permalink as the required url value. Copy the X post URL for the video tweet and pass it as url.
What do found, data.transcript and reason mean?
found is a boolean. When it is true, data.transcript holds the spoken transcript. When it is false, reason is present with not_found or too_long.
What does a too_long result mean?
too_long means the video is longer than the source can transcribe, so asking again returns the same answer. Mark that row for manual caption review rather than retrying.
What does a not_found result mean?
not_found means the source states the target does not exist, or returned nothing for it. The contract says a found: false answer is a successful call, not an error.
How much does it cost to transcribe 10 video tweets?
At the catalog max_call price of up to $0.036 per call, 10 calls are at most $0.36. Successful runs settle at the actual AnyAPI charge, so the total is a ceiling.
Can I retry a video that returns too_long?
No. The contract says the video is longer than the source can transcribe, so asking again returns the same answer.
Next step
Try this with X (Twitter)
The tool directory lists every endpoint with its current price. Inspect the inputs there, then let your agent run a small batch before scaling up.