Anipedia API
Let members connect your streaming site, tracker, browser extension or app to their Anipedia account, then keep their list up to date as they watch, the way sites sync with AniList or MyAnimeList today. Members sign in with “Log in with Anipedia” (OAuth 2 with PKCE) and choose what your app may do.
Quick start
- Register your app in Settings → Developer apps to get a client ID (and a client secret for server apps).
- Send members to the authorize URL; they log in, see what you ask for and allow it.
- Exchange the code for tokens, then call the API with the access token.
- Anime are identified by AniList id (Anipedia uses the same ids). Have MyAnimeList ids? Look them up with
GET /api/v1/anime?mal_id=….
Scopes
list:read: See your anime list: status, episodes watched, your scores and dates (not your private notes).list:write: Update your anime list: add and remove shows, change status, episodes, scores and dates.offline_access: Stay connected when you're not using it, until you disconnect it in Settings.
Ask for offline_access if you sync in the background: without it there is no refresh token, and your access ends when the member logs out of Anipedia. Every token can call /api/v1/me.
2. Get tokens
POST https://anipedia.app/api/auth/oauth2/token
Content-Type: application/x-www-form-urlencoded
grant_type=authorization_code
&code=THE_CODE
&redirect_uri=https://example.com/auth/anipedia/callback
&client_id=YOUR_CLIENT_ID
&code_verifier=THE_CODE_VERIFIERServer apps also authenticate with their secret: HTTP Basic (Authorization: Basic base64(client_id:client_secret)) or a client_secret field. Apps in a browser, extension or mobile app have no secret; this endpoint allows cross-origin calls for them.
{
"access_token": "…",
"token_type": "Bearer",
"expires_in": 3600,
"refresh_token": "…",
"scope": "list:read list:write offline_access"
}Access tokens last an hour. A code works once: using it twice revokes the tokens it gave. Refresh before the access token runs out:
POST https://anipedia.app/api/auth/oauth2/token
Content-Type: application/x-www-form-urlencoded
grant_type=refresh_token&refresh_token=THE_REFRESH_TOKEN&client_id=YOUR_CLIENT_IDEach refresh returns a new refresh token; store it and drop the old one. Refresh tokens expire after 90 days without use. When a member disconnects your app in Settings, its tokens stop working at once; send them through step 1 again. To sign a member out of your app, revoke the token with POST https://anipedia.app/api/auth/oauth2/revoke (token=…&client_id=…). Endpoint metadata: /.well-known/oauth-authorization-server.
3. Call the API
Base URL https://anipedia.app/api/v1. Send Authorization: Bearer ACCESS_TOKEN. Bodies and responses are JSON. Every endpoint allows cross-origin requests.
The member: id, username, display name, avatar URL, profile URL, and the token's scopes. Never their email.
Add a show or change it. Send any of status (WATCHING, COMPLETED, PLANNING, ON_HOLD, DROPPED), progress (episodes watched), score (1–10, or null to clear), favorite, startedAt and finishedAt (YYYY-MM-DD or null). What you leave out stays as it is. Returns the entry.
PATCH https://anipedia.app/api/v1/me/list/154587
Authorization: Bearer ACCESS_TOKEN
Content-Type: application/json
{ "progress": 3 }A show that isn't on the list yet starts as WATCHING when you send episodes, otherwise PLANNING. Like on Anipedia itself: progress is capped at the show's episode count, COMPLETED fills it in, and start and finish dates are set automatically unless you send them. Mark a show completed yourself when the member finishes it.
One entry, or 404 if the show isn't on the list.
Take the show off the list. 204 on success.
The whole list, oldest change first, up to 500 per page (default 100), with hasNextPage. For incremental syncs, pass the last updatedAt you saw as updated_since.
{
"data": [{
"anime": {
"id": 154587, "anilistId": 154587, "malId": 52991,
"title": { "romaji": "Sousou no Frieren", "english": "Frieren: Beyond Journey's End", "native": "葬送のフリーレン" },
"format": "TV", "status": "FINISHED", "episodes": 28, "season": "FALL", "seasonYear": 2023,
"coverImage": "https://anipedia.app/img/…", "url": "https://anipedia.app/anime/154587"
},
"status": "WATCHING", "progress": 3, "score": null, "favorite": false,
"startedAt": "2026-11-28", "finishedAt": null, "updatedAt": "2026-11-28T12:00:00.000Z"
}],
"page": 1, "perPage": 100, "hasNextPage": false
}Catalog lookups, up to 50 ids, no token needed. Use mal_id to map MyAnimeList ids to Anipedia ids.
Errors and limits
Errors look like { "error": "invalid_token", "message": "…" }:
400 invalid_request: a bad id, query or body.401 invalid_token: missing, expired or revoked token (refresh it, or send the member through step 1).403 insufficient_scope: the token lacks the scope named inWWW-Authenticate.404 not_found: not on the list, or not in the catalog.429 rate_limited: waitRetry-Afterseconds. Each access token gets about 90 requests a minute; catalog lookups are limited per IP.
Rules
- Only change a member's list because of something they did, like finishing an episode on your site.
- Keep tokens and client secrets private, and don't share members' list data beyond what they expect.
- Don't pass off scores from other sites as a member's Anipedia rating. Scores you send are the member's own.
- Apps that break these rules or the terms can be disabled. Questions: anipediaapp11@gmail.com.