GET /api/v1/people/{id}
getPerson
needs catalog:read
curl https://api.acyka.cc/api/v1/people/52991?lang=en \
-H "Authorization: Bearer $ACYKA_TOKEN" Asking #
In the address
| field | type | what it is |
|---|---|---|
id | number | the shikimori id |
Narrowing it
| field | type | what it is |
|---|---|---|
lang may be absent | string | undefined | which of a title's three names leads: `en` (romaji), `ru`, `ja`, `uk`, `uz`. Defaults to `en`. |
Answering #
200 PersonPage
The shapes #
PersonPage #
A person, as their own page.
| field | type | what it is |
|---|---|---|
id | number | |
name | string | |
name_orig may be absent | string | undefined | |
poster may be absent | string | undefined | |
seyu | boolean | What this person is. All three can be false — most of a crew is none of them — and several can be true at once. |
mangaka | boolean | |
producer | boolean | |
japanese may be absent | string | undefined | |
website may be absent | string | undefined | |
titles | number | |
roles | number |
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.