M3U M3U8 Playlist Parser HLS IPTV Batch API
Free tier included · MediaM3U/M3U8 Playlist Parser API is a comprehensive tool for processing streaming playlists, covering everything from basic IPTV lists to complex RFC 8216 HLS media and master manifests. Built to handle real-world irregularities, it parses EXTINF attributes (`tvg-id`, `tvg-logo`, `group-title`), live-stream durations, encryption keys (`EXT-X-KEY`), variant streams, and segment details. Beyond simple parsing, advanced endpoints allow you to validate structural issues, deduplicate channel URLs, compute granular statistics, export cleaned playlists into JSON or normalized M3U, and process up to 100 playlists in a single batch request.
There are no external network calls or persistent request logs, ensuring absolute privacy for your streaming data and media catalogs. Strict mode enforces a valid `#EXTM3U` header to reject malformed files instantly.
Honest limits: Individual playlist size is restricted to 5MB (5,242,880 bytes UTF-8) per request, and batch requests are capped at 100 items. The parser performs static text analysis only; it does not probe URLs, verify stream uptime, or fetch external segment chunks.
Endpoints
| Method | Path | What it does |
|---|---|---|
GET | / | API metadata, root indicator. |
GET | /health | Liveness probe checking service status. |
POST | /parse | Parse basic and extended IPTV M3U playlists, extracting entries, attributes, and live durations. |
POST | /hls | Parse HLS media and master playlists for target durations, encryption keys, segments, or variant streams. |
POST | /stats | Extract basic playlist statistics including entry counts and group distributions. |
POST | /decode/full | Return the complete parsed structure of an M3U/M3U8 playlist including all entries, attributes, groups, and metadata. |
POST | /batch | Decode up to 100 playlists in a single request, parsing each independently and returning them with identifiers. |
POST | /export | Parse a playlist and export it in a normalized format: either structured JSON or clean M3U text. |
POST | /dedup | Parse a playlist and remove duplicate channel URLs, keeping the first occurrence of each unique URL. |
POST | /validate | Check a playlist for structural issues, missing headers, invalid lines, duplicate URLs, and malformed entries. |
POST | /stats/full | Detailed statistics including entry count, total duration, group distribution, attribute summary, and duplicate detection. |
Quick start
curl -X POST "https://m3u.p.rapidapi.com/parse" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: m3u.p.rapidapi.com" \
-H "Content-Type: application/json" \
-d '{"text": "#EXTM3U\n#EXTINF:-1 tvg-id=\"demo.tv\" group-title=\"News\",Example Channel\nhttps://example.com/live/channel1.m3u8\n"}'
FAQ
Does the API check if the streaming URLs are online?
No. The API performs pure static text analysis and parsing. It does not ping URLs, check stream uptime, or validate segment availability.
What is the maximum allowed playlist size?
Each playlist text payload is capped at 5MB (5,242,880 bytes UTF-8). Batch requests support up to 100 individual playlists per call.
Are requests logged or stored?
No. The service is entirely stateless and offline. No playlist content or request metadata is stored or logged.
What happens if the playlist is missing the #EXTM3U header?
In strict mode, playlists lacking the `#EXTM3U` header line are rejected with a validation error.
Try M3U M3U8 Playlist Parser HLS IPTV Batch free
Free tier on every plan. Get an API key and start calling in under a minute.
Open on RapidAPI