T

Toolshed · Convert VTT SRT

by Toolshed

POSTBaseSolana

$0.002

per call · USD Coin on Base

WebVTT to SubRip. POST a .vtt file; the response is an .srt file. Cues are renumbered from 1 and hour-less timestamps are expanded to hh:mm:ss,mmm. The WEBVTT header, NOTE/STYLE/REGION blocks and per-cue settings are dropped, because SubRip cannot express them. Input that does not begin with WEBVTT is refused.

Endpoint

POST https://toolshed.lemon-agent.dev/convert/vtt-srt

1

Calls / 30d

1

Unique payers / 30d

Sep 2

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://toolshed.lemon-agent.dev/convert/vtt-srt", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify("WEBVTT\n\n00:00:01.000 --> 00:00:02.000\nHello.\n"),
});
const data = await res.json();
cURL
curl -X POST \
  "https://toolshed.lemon-agent.dev/convert/vtt-srt" \
  -H "Content-Type: application/json" \
  -d '"WEBVTT\n\n00:00:01.000 --> 00:00:02.000\nHello.\n"' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

"1\n00:00:01,000 --> 00:00:02,000\nHello.\n"

Payment details

Pay to0x0adc7adac7bbaffffbd73505711e42378c4f9f9e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from Toolshed & similar services