Skip to main content
The official SDK wraps the Partners API: it handles authentication, token caching and renewal, and retries with exponential backoff. Works in Node.js and the browser.

Install

Quickstart

Options

On a 401, the SDK clears the cached token, re-authenticates, and retries once — so expiring tokens are handled transparently.

Methods

getContentCatalog()

Every series + episodes you can access.

getSeries(seriesId)

getEpisodeStream(episodeId)

Resolves a video stream URL, or manga/webtoon page URLs.

searchContent(query)

getAnalytics()

clearAuth()

Drops the cached token to force re-authentication on the next call.

Error handling

The SDK throws AnimeSDKError for API errors, with statusCode and the raw response.

TypeScript