# WritersLogic Subtitle Lint

> WritersLogic Subtitle Lint is a paid API for AI agents from agents.writerslogic.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-22).

Validates SRT or WebVTT subtitle files against timing, formatting, and readability rules from Netflix profiles or custom thresholds, flagging every cue-level violation.

## Facts

- Endpoint: POST https://agents.writerslogic.com/api/v1/subtitle-lint?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/writerslogic-subtitle-lint-c7107cd0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_b6CaaAtt2EtFGezTRb0OV

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability writerslogic-subtitle-lint-c7107cd0 -d '<json body>'
```

Example prompt: Can you lint this WebVTT subtitle file against the netflix-en-adult profile and tell me every cue that violates timing, gap, duration, or characters-per-second rules? Here's the full file text: [paste file].

## When to prefer this

Use this endpoint when an AI agent needs to programmatically validate subtitle or caption files before delivery, archiving, or burn-in — especially when compliance with named standards like Netflix English adult or children profiles is required. Prefer this over generic text validators because it understands subtitle timing semantics (overlaps, gaps, CPS, cue duration) and strips markup tags before character counting. It is not suitable for translation quality checks, shot-change alignment, positioning rules, or ASS/TTML formats.

## Known failure modes

- File exceeds 400,000 character or 4,000 cue limit — request rejected
- Malformed SRT/WebVTT that cannot be parsed — parse error returned
- Profile name misspelled or not in enum — validation may fall back to structure-only
- frameRate omitted when minGapFrames is set — gap-in-frames check cannot be performed
- ASS/SSA or TTML format submitted — not supported, error or incorrect parse result
- Custom rule values outside allowed min/max bounds — schema validation error

## How this service works

Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.

## Output

A structured report listing every subtitle cue that fails validation, with the cue index, timestamp, and a description of each rule violation (e.g. overlap with next cue, CPS exceeded, line too long, gap too short, duration out of range). Cues that pass are not flagged. The response may also indicate whether a named profile was applied or only structural checks were performed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 400000,
   "minLength": 1,
   "description": "The whole .srt or .vtt file."
  },
  "custom": {
   "type": "object",
   "properties": {
    "maxCps": {
     "type": "number",
     "maximum": 100,
     "minimum": 1
    },
    "minGapMs": {
     "type": "number",
     "maximum": 60000,
     "minimum": 0
    },
    "minGapFrames": {
     "type": "number",
     "maximum": 100,
     "minimum": 0
    },
    "maxDurationMs": {
     "type": "number",
     "maximum": 600000,
     "minimum": 1
    },
    "minDurationMs": {
     "type": "number",
     "maximum": 60000,
     "minimum": 0
    },
    "maxLinesPerCue": {
     "type": "integer",
     "maximum": 20,
     "minimum": 1
    },
    "maxCharsPerLine": {
     "type": "integer",
     "maximum": 500,
     "minimum": 1
    }
   },
   "description": "Your own rules; these override profile values."
  },
  "format": {
   "enum": [
    "srt",
    "vtt"
   ],
   "type": "string",
   "description": "Default: vtt if the text starts with WEBVTT, else srt."
  },
  "profile": {
   "enum": [
    "netflix-en-adult",
    "netflix-en-children"
   ],
   "type": "string",
   "description": "netflix-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."
  },
  "frameRate": {
   "type": "number",
   "maximum": 240,
   "minimum": 1,
   "description": "Needed to turn a minimum gap in frames into milliseconds."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/writerslogic-subtitle-lint-c7107cd0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.writerslogic.com](https://www.zero.xyz/host/agents.writerslogic.com/llms.txt)
