Overview
Addons provide resources through well-defined request/response patterns. Each resource type serves a specific purpose in the Stremio ecosystem.Resource Response
All addon responses use theResourceResponse enum:
Cache Control
Responses can include cache hints:Seconds to cache the response. Sets
Cache-Control: max-age=.Seconds to serve stale content while revalidating. Sets
Cache-Control: stale-while-revalidate=.Seconds to serve stale content on error. Sets
Cache-Control: stale-if-error=.Catalog Resource
Provides lists of content items for browsing.Request
type: Content type (e.g.,movie,series)id: Catalog identifier from manifestextra: Optional query parameters (e.g.,genre=Action&skip=100)
Response
MetaItemPreview Fields
Unique identifier for the item (e.g., IMDb ID
tt1254207).Content type:
movie, series, tv, channel, etc.Display name of the item.
Poster image URL.
Background image URL.
Logo image URL.
Brief description or plot summary.
Release year or date information.
Duration information (e.g.,
"120 min", "2h 30m").ISO 8601 release date.
Shape of the poster:
poster (default), square, or landscape.External links (IMDb, genres, etc.).
Trailer streams for the item.
Hints about item behavior.
Meta Resource
Provides detailed metadata including videos/episodes.Request
Response
MetaItem Structure
All preview fields (see Catalog Resource).
Episodes, movies, or other playable content.
Video Fields
Unique video identifier. For series:
{seriesId}:{season}:{episode}.Episode or video title.
Release date.
Episode description.
Thumbnail image URL.
Season number (for series).
Episode number (for series).
Pre-attached streams for this video.
Trailer streams.
Stream Resource
Provides playable video sources.Request
Response
Stream Structure
The video source. See Stream Sources below.
Display name for the stream (e.g., quality, provider).
Additional information about the stream.
Thumbnail image URL.
Embedded subtitle tracks.
Playback hints and metadata.
Stream Sources
URL Stream
Torrent Stream
20-byte torrent info hash (40 hex characters).
File index in the torrent. Omit for automatic selection.
Tracker URLs.
Filename must contain these strings.
YouTube Stream
Archive Streams
For RAR, ZIP, 7ZIP, TAR, TGZ files:rarUrls, zipUrls, 7zipUrls, tarUrls, tgzUrls
External Stream
Player Frame
Stream Behavior Hints
Stream is not playable in web browsers.
Identifier for grouping streams for binge-watching.
List of countries where stream is available.
Headers to use when proxying the stream.
Suggested filename for downloads.
Hash of the video content.
Video file size in bytes.
Subtitles Resource
Provides subtitle tracks.Request
Response
Subtitles Fields
Unique identifier for the subtitle track.
ISO 639-3 language code (e.g.,
eng, spa, fra).Direct URL to the subtitle file (SRT, VTT, etc.).
