Subtitle lint: SRT and WebVTT overlaps, duration, reading speed, line length

$0.005 USDC per call · Business, finance and compliance · POST /api/v1/subtitle-lint · Id subtitle-lint

Parses an SRT or WebVTT file (up to 400000 characters, 4000 cues) and checks every cue for an agent about to deliver or burn in captions: end after start, overlaps and out-of-order cues, minimum gap, minimum and maximum duration, lines per cue, characters per line and characters per second (markup tags are not counted). Rules come from a named profile (netflix-en-adult, netflix-en-children, values quoted from the Netflix Partner Help Center with page URLs) or from your own custom values; with neither it checks structure only and answers unknown. It does not judge translation quality, shot changes, positioning or languages other than the profile's own, and does not read ASS/SSA or TTML.

What you get

A delivery rejected for reading speed or overlaps costs a re-spin; this lists every offending cue with the exact numbers.

Call it

Send the JSON body below to https://agents.writerslogic.com/api/v1/subtitle-lint. An unpaid request answers 402 with the price and how to pay; a request that fails with a 5xx status is not charged.

curl -i -X POST https://agents.writerslogic.com/api/v1/subtitle-lint \
  -H 'content-type: application/json' \
  -d '{"text":"1\n00:00:01,000 --> 00:00:03,000\nHello there.\n\n2\n00:00:02,500 --> 00:00:04,000\nOverlapping cue.\n","profile":"netflix-en-adult","frameRate":24}'

Input

FieldTypeRequiredDescription
textstring; length 1..400000yesThe whole .srt or .vtt file.
formatstring; one of "srt", "vtt"noDefault: vtt if the text starts with WEBVTT, else srt.
profilestring; one of "netflix-en-adult", "netflix-en-children"nonetflix-en-adult: 42 chars/line, 2 lines, 20 cps, 5/6 s to 7 s, 2-frame gap. netflix-en-children: same at 17 cps.
customobjectnoYour own rules; these override profile values.
frameRatenumber; 1..240noNeeded to turn a minimum gap in frames into milliseconds.

Example request body

{
  "text": "1\n00:00:01,000 --> 00:00:03,000\nHello there.\n\n2\n00:00:02,500 --> 00:00:04,000\nOverlapping cue.\n",
  "profile": "netflix-en-adult",
  "frameRate": 24
}

Result

The response is { "data": ..., "_provenance": ... }. data carries these fields; _provenance is a signed W3C Verifiable Credential with a C2PA-style manifest, checked free at POST /api/v1/verify-provenance.

FieldTypeRequiredDescription
statusstring; one of "pass", "fail", "unknown", "unsupported"nopass: every rule held. fail: a rule was violated (see witnesses). unknown: the input lacks the evidence to decide. unsupported: outside what this engine covers. Missing evidence is never a pass.
formatstringno
profilestringno
appliedRulesobjectnoThe rule values actually applied.
cueCountintegerno
violationCountsobjectnoViolations per rule id.
maxCpsone ofno
skippedRulesarray<string>no
witnessesTruncatedbooleannoTrue when more than 200 violations were found; counts are still complete.
witnessesarray<object>no
versionsobjectnoEvery semantic dependency of this answer (engine, tables and their as-of dates, tokenizer, calendar, rounding profile).
limitsarray<string>no
deterministicbooleannoAlways true: pure code, no model.

Pay and connect

Available through: x402 (USDC on Base), MCP. MCP clients reach it through the identifier-text-kit package.

Machine-readable