What is a YouTube itag?
An itag is YouTube's numeric ID for one specific format — a combination of container, codec, resolution and audio/video content.
Definition
Every rendition YouTube serves for a video has an itag: for example a 360p MP4 with audio, a 1080p video-only MP4, or an Opus audio track. Downloaders historically picked formats by itag number.
The set of itags offered changes over time and varies per video, so hard-coding itag numbers is fragile.
In practice
Older tutorials list itag tables such as 18 (360p MP4 with audio) or 22 (720p MP4 with audio). Those tables go stale: a format that existed for years can disappear for new uploads, and the same video can expose different itags depending on the client asking.
If you maintain code that branches on itag numbers, the safest migration is to switch to describing what you want — container, resolution, audio or video — and letting the resolver map that to whatever the platform currently offers.
Why it matters when downloading video
- Scripts that request a fixed itag break when YouTube stops offering it.
- CrawlFetch abstracts itags away: you ask for
formatandres, and get the closest match.
FAQ
Do I need itags with the API?
No. Use format and res, or read formats[] for what's available.
Related
Last updated 2026-10-25