Is Short
Metadata
Is Short
Detect whether a YouTube URL is a Short (vertical) or a regular video
POST
Is Short
Overview
Classify a YouTube URL as a Short (vertical) or a regular video by inspecting the actual video dimensions. No download is performed. This is more reliable than checking the URL pattern: a URL of the formyoutube.com/watch?v=... can still be a Short in disguise (and vice versa). Only the real video dimensions tell the truth.
How the classification works
is_short = height > widthon the best available video formatvideo_typeis"live"when the URL is a live stream, otherwise"short"when vertical, otherwise"video"duration_secondsis returned for context but does not affect the decision
Header Parameters
Your API key for authentication
Request
The YouTube URL to classify. Accepts every YouTube URL form:
watch?v=, youtu.be/, /shorts/, /embed/. URLs from other platforms return 400.Response
true when the video is vertical (height greater than width).One of
"short", "video", or "live".Width in pixels of the best available video format. May be
null if no video-bearing format is exposed.Height in pixels of the best available video format. May be
null if no video-bearing format is exposed.height / width. Values greater than 1.0 mean vertical. May be null when dimensions are missing.Total video duration in seconds. Informational only — not used in the classification.
Examples
Success Response
Error Responses
x-api-key header was sent, or the key is invalid / revoked.
The 502 response means a transient upstream issue (proxy hiccup, YouTube error). Retry after a short delay.
Use Cases
Conditional routing
Pick a different quality preset, container, or storage folder based on whether the video is a Short.Pre-filtering a batch
When ingesting a creator’s catalog, separate Shorts from full videos before queueing downloads.UI hints
Show a different player or thumbnail aspect ratio in your front-end as soon as the URL is pasted.Notes
- Latency: typically 2–3 seconds.
- No server-side cache: if you call the endpoint repeatedly for the same URL, consider caching the response on your side.
- No download: only video information is fetched; storage and bandwidth are not charged for this call.
