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 throwsAnimeSDKError for API errors, with statusCode and the raw response.