Guides

Recipes for specific tasks against the API.

Your first request

Find a series by name, fetch its full record, and list where to read it. No account or key needed.

Use a personal access token

Call the account endpoints as yourself with a personal access token (PAT).

Paginate through results

Search and list endpoints return one page at a time, with a link to the next.

Map your IDs to MangaBaka

Already have a list of series from another site? Turn each entry into a MangaBaka series id, trying the most exact method first. No account or key needed.

Let users sign in with OAuth

Use OAuth when other people sign in to your app with their MangaBaka account.

Sync a user's library

Keep a local copy of a MangaBaka library up to date. Read it once, store a cursor, and from then on fetch only what changed, removals included.

Follow merged and deleted series

When two records turn out to be the same series, one is merged into the other. If you store series ids, check them now and then and move merged ids to their replacement.

Write to a library in bulk

Create or update up to 100 library entries in one request. The batch is all or nothing: if any entry fails, nothing is written.

Submit series data

Edit a series, or add a new one, through the same submission API the website uses. Fetch the current record, change what you need, and send it back.

Integrate a userscript or extension

Add your own data to MangaBaka pages from a userscript or browser extension, through marked injection points and two DOM events.

Read a library's events

Show what a user did in their library, filter it by series, event type or date, and poll for new events without missing any.