acyka api

GET /api/v1/characters/{id}

getCharacter

needs catalog:read

curl https://api.acyka.cc/api/v1/characters/52991?lang=en \
  -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`.

Answering #

200 Character

The shapes #

Character #

A character, as its own page.

fieldtypewhat it is
id number
name string
name_orig may be absentstring | undefined
poster may be absentstring | undefined
titles numberhow many titles carry them

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.