Skip to content

API

StremThru provides a REST API for interacting with stores, proxying content, and mapping content IDs.

Authentication

API requests are authenticated using the X-StremThru-Authorization header with Basic auth.

X-StremThru-Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=

The credentials are checked against the STREMTHRU_PROXY_AUTH configuration.

Store Selection

For store endpoints, use the X-StremThru-Store-Name header to specify which store to use. If not provided, the first store configured for the user via STREMTHRU_STORE_AUTH is used.

For non-proxy-authorized requests, the store is authenticated using:

  • X-StremThru-Store-Authorization header
  • Authorization header (forwarded to the external store)

Endpoints

SectionDescription
ProxyProxify URLs
StoreManage magnets and generate links
MetaContent ID mapping

Enums

MagnetStatus

ValueDescription
cachedContent is cached on the store
queuedMagnet is queued for download
downloadingContent is being downloaded
processingContent is being processed
downloadedContent is fully downloaded
uploadingContent is being uploaded
failedDownload failed
invalidInvalid magnet
unknownUnknown status

UserSubscriptionStatus

Value
expired
premium
trial