{"openapi":"3.1.0","info":{"title":"Shorty Free Tools API","version":"1.0.0","description":"No account or API key required. 60 requests per 60 seconds per client across all endpoints. Input is validated before counting. All responses allow cross-origin access, carry X-Request-Id and use Cache-Control: no-store. OPTIONS is available on every endpoint. Errors follow RFC 9457."},"servers":[{"url":"https://aishorty.com"}],"tags":[{"name":"Free tools"}],"security":[],"paths":{"/api/tools/srt-to-vtt":{"post":{"operationId":"srt_to_vtt","summary":"SRT to VTT Converter","description":"Convert SRT subtitles to WebVTT while keeping cue timing and multi-line text.","tags":["Free tools"],"security":[],"parameters":[{"in":"query","name":"format","schema":{"type":"string","const":"file"}}],"requestBody":{"required":true,"description":"UTF-8 body, at most 524288 bytes.","content":{"application/json":{"schema":{"type":"object","properties":{"srt":{"type":"string"}},"required":["srt"]}},"text/plain":{"schema":{"type":"string"}},"application/x-subrip":{"schema":{"type":"string"}}}},"responses":{"200":{"description":"Successful result. JSON by default; Markdown on an explicit Markdown Accept header without JSON or HTML. Request text/vtt in Accept, or set format=file, to download the converted file.","content":{"application/json":{"schema":{"type":"object","properties":{"vtt":{"type":"string"}},"required":["vtt"],"additionalProperties":false}},"text/markdown":{"schema":{"type":"string"}},"text/vtt":{"schema":{"type":"string"}}}},"400":{"description":"Invalid input; no rate-limit allowance consumed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Request exceeds 524288 bytes.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"The shared client allowance has been exhausted.","headers":{"Retry-After":{"schema":{"type":"string"}},"RateLimit-Policy":{"schema":{"type":"string"}},"RateLimit":{"schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/tools/vtt-to-srt":{"post":{"operationId":"vtt_to_srt","summary":"VTT to SRT Converter","description":"Convert WebVTT subtitles to numbered SRT cues while keeping timing and text.","tags":["Free tools"],"security":[],"parameters":[{"in":"query","name":"format","schema":{"type":"string","const":"file"}}],"requestBody":{"required":true,"description":"UTF-8 body, at most 524288 bytes.","content":{"application/json":{"schema":{"type":"object","properties":{"vtt":{"type":"string"}},"required":["vtt"]}},"text/plain":{"schema":{"type":"string"}},"text/vtt":{"schema":{"type":"string"}}}},"responses":{"200":{"description":"Successful result. JSON by default; Markdown on an explicit Markdown Accept header without JSON or HTML. Request application/x-subrip in Accept, or set format=file, to download the converted file.","content":{"application/json":{"schema":{"type":"object","properties":{"srt":{"type":"string"}},"required":["srt"],"additionalProperties":false}},"text/markdown":{"schema":{"type":"string"}},"application/x-subrip":{"schema":{"type":"string"}}}},"400":{"description":"Invalid input; no rate-limit allowance consumed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Request exceeds 524288 bytes.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"The shared client allowance has been exhausted.","headers":{"Retry-After":{"schema":{"type":"string"}},"RateLimit-Policy":{"schema":{"type":"string"}},"RateLimit":{"schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/tools/word-counter":{"post":{"operationId":"word_counter","summary":"Word Counter","description":"Count words, characters, sentences and paragraphs, with reading and speaking time estimates.","tags":["Free tools"],"security":[],"requestBody":{"required":true,"description":"UTF-8 body, at most 524288 bytes.","content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"text/plain":{"schema":{"type":"string"}}}},"responses":{"200":{"description":"Successful result. JSON by default; Markdown on an explicit Markdown Accept header without JSON or HTML.","content":{"application/json":{"schema":{"type":"object","properties":{"words":{"type":"integer","minimum":0,"maximum":9007199254740991},"characters":{"type":"integer","minimum":0,"maximum":9007199254740991},"charactersNoSpaces":{"type":"integer","minimum":0,"maximum":9007199254740991},"sentences":{"type":"integer","minimum":0,"maximum":9007199254740991},"paragraphs":{"type":"integer","minimum":0,"maximum":9007199254740991},"readingMinutes":{"type":"number","minimum":0},"speakingMinutes":{"type":"number","minimum":0}},"required":["words","characters","charactersNoSpaces","sentences","paragraphs","readingMinutes","speakingMinutes"],"additionalProperties":false}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid input; no rate-limit allowance consumed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Request exceeds 524288 bytes.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"The shared client allowance has been exhausted.","headers":{"Retry-After":{"schema":{"type":"string"}},"RateLimit-Policy":{"schema":{"type":"string"}},"RateLimit":{"schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/tools/reading-time":{"post":{"operationId":"reading_time","summary":"Reading Time Calculator","description":"Estimate how long text takes to read at your chosen words per minute.","tags":["Free tools"],"security":[],"parameters":[{"in":"query","name":"wpm","schema":{"description":"Reading speed for a raw text body. For JSON, pass wpm in the body.","type":"number","exclusiveMinimum":0},"description":"Reading speed for a raw text body. For JSON, pass wpm in the body."}],"requestBody":{"required":true,"description":"UTF-8 body, at most 524288 bytes.","content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string"},"wpm":{"type":"number","exclusiveMinimum":0}},"required":["text"]}},"text/plain":{"schema":{"type":"string"}}}},"responses":{"200":{"description":"Successful result. JSON by default; Markdown on an explicit Markdown Accept header without JSON or HTML.","content":{"application/json":{"schema":{"type":"object","properties":{"words":{"type":"integer","minimum":0,"maximum":9007199254740991},"minutes":{"type":"number","minimum":0},"seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"label":{"type":"string"}},"required":["words","minutes","seconds","label"],"additionalProperties":false}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid input; no rate-limit allowance consumed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Request exceeds 524288 bytes.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"The shared client allowance has been exhausted.","headers":{"Retry-After":{"schema":{"type":"string"}},"RateLimit-Policy":{"schema":{"type":"string"}},"RateLimit":{"schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/tools/youtube-timestamp-link":{"get":{"operationId":"youtube_timestamp_link","summary":"YouTube Timestamp Link Generator","description":"Create a YouTube link that starts at a chosen timestamp, ready to copy and share.","tags":["Free tools"],"security":[],"parameters":[{"in":"query","name":"url","schema":{"type":"string","minLength":1},"required":true},{"in":"query","name":"t","schema":{"type":"string","minLength":1,"description":"Nonnegative whole seconds, M:SS, H:MM:SS, or 1h2m3s.","examples":["83","1:23","1:02:03","1h2m3s"]},"required":true,"description":"Nonnegative whole seconds, M:SS, H:MM:SS, or 1h2m3s."}],"responses":{"200":{"description":"Successful result. JSON by default; Markdown on an explicit Markdown Accept header without JSON or HTML.","content":{"application/json":{"schema":{"type":"object","properties":{"videoId":{"type":"string"},"seconds":{"type":"integer","minimum":0,"maximum":9007199254740991},"url":{"type":"string","format":"uri"},"watchUrl":{"type":"string","format":"uri"}},"required":["videoId","seconds","url","watchUrl"],"additionalProperties":false}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid input; no rate-limit allowance consumed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Request exceeds 524288 bytes.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"The shared client allowance has been exhausted.","headers":{"Retry-After":{"schema":{"type":"string"}},"RateLimit-Policy":{"schema":{"type":"string"}},"RateLimit":{"schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/tools":{"get":{"operationId":"list_free_tools","summary":"List free tools and related Shorty products","tags":["Free tools"],"security":[],"responses":{"200":{"description":"Successful result. JSON by default; Markdown on an explicit Markdown Accept header without JSON or HTML.","content":{"application/json":{"schema":{"type":"object","properties":{"tools":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"method":{"type":"string","enum":["GET","POST"]},"apiPath":{"type":"string"},"relatedPage":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"}},"required":["slug","name"],"additionalProperties":false},"url":{"type":"string","format":"uri"}},"required":["slug","name","description","method","apiPath","relatedPage","url"],"additionalProperties":false}},"relatedTools":{"type":"array","items":{"type":"object","properties":{"slug":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["slug","name","description","url"],"additionalProperties":false}}},"required":["tools","relatedTools"],"additionalProperties":false}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid input; no rate-limit allowance consumed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Request exceeds 524288 bytes.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"The shared client allowance has been exhausted.","headers":{"Retry-After":{"schema":{"type":"string"}},"RateLimit-Policy":{"schema":{"type":"string"}},"RateLimit":{"schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}},"/api/tools/openapi.json":{"get":{"operationId":"free_tools_openapi","summary":"Read the free tools OpenAPI document","tags":["Free tools"],"security":[],"responses":{"200":{"description":"Successful result. JSON by default; Markdown on an explicit Markdown Accept header without JSON or HTML.","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"text/markdown":{"schema":{"type":"string"}}}},"400":{"description":"Invalid input; no rate-limit allowance consumed.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"413":{"description":"Request exceeds 524288 bytes.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"429":{"description":"The shared client allowance has been exhausted.","headers":{"Retry-After":{"schema":{"type":"string"}},"RateLimit-Policy":{"schema":{"type":"string"}},"RateLimit":{"schema":{"type":"string"}}},"content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}},"500":{"description":"Unexpected server failure.","content":{"application/problem+json":{"schema":{"$ref":"#/components/schemas/Problem"}}}}}}}},"components":{"schemas":{"Problem":{"type":"object","properties":{"type":{"type":"string","description":"A URI identifying the problem type.","example":"https://aishorty.com/docs/api/errors/validation_failed"},"title":{"type":"string","description":"Short, human-readable summary of the problem type.","example":"Validation failed"},"status":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"HTTP status code, duplicated for convenience.","example":400},"detail":{"description":"Human-readable explanation specific to this occurrence.","type":"string"},"instance":{"type":"string","description":"Identifies this specific occurrence (a request URN).","example":"urn:request:req_01J9Z8ABCDEFGH0123456789"},"code":{"type":"string","description":"Stable, machine-readable error code clients switch on.","example":"validation_failed"},"request_id":{"type":"string","description":"The request id (also sent as the Request-Id header).","example":"req_01J9Z8ABCDEFGH0123456789"},"errors":{"description":"Field-level errors (present on validation_failed problems).","type":"array","items":{"$ref":"#/components/schemas/ProblemFieldError"}}},"required":["type","title","status","instance","code","request_id"],"additionalProperties":false},"ProblemFieldError":{"type":"object","properties":{"pointer":{"type":"string","description":"JSON-pointer-ish path to the offending input field, e.g. \"#/body/url\".","example":"#/body/url"},"code":{"type":"string","description":"Machine-readable validation code (from the validator).","example":"invalid_type"},"message":{"type":"string","description":"Human-readable explanation of this field error.","example":"Expected string, received number"}},"required":["pointer","code","message"],"additionalProperties":false}}}}