acyka api

GET /api/v1/people/{id}/titles

personTitles

needs catalog:read

curl https://api.acyka.cc/api/v1/people/52991/titles?lang=en&limit=10 \
  -H "Authorization: Bearer $ACYKA_TOKEN"

Asking #

In the address

fieldtypewhat it is
id numberthe shikimori id

Narrowing it

fieldtypewhat it is
lang may be absentstring | undefinedwhich of a title's three names leads: `en` (romaji), `ru`, `ja`, `uk`, `uz`. Defaults to `en`.
limit may be absentnumber | undefinedhow many rows, 1-100; 30 by default
offset may be absentnumber | undefinedwhere to carry on from

Answering #

200 Page<Appearance> a page: items, and total beside it

It pages by limit and offset. Every library has a paginator that walks it — see Paging, which is also where the reason it stops on a short page rather than on total is written down.

The shapes #

Appearance #

A title a character appears in, and what they are in it.

fieldtypewhat it is
id number
title string
title_orig may be absentstring | undefined
poster may be absentstring | undefined
year may be absentnumber | undefined
kind string`tv` | `movie` | `ova` | `ona` | `special` | `music`
episodes number
score may be absentnumber | undefinedThe one number a reader sees: what the people here think of it and what the outside number said, weighed against each other.
roles string[]

When it says no #

A refusal is { "message": "errors.something" } — a phrase name and never a sentence, because one screen can be read in five languages. Every library turns the name into a type, so you catch the class you can do something about. Errors has the list.