The common properties of all subjects on WaniKani.

This only represents a partial structure of a subject, and it's highly recommended to use one of the child type definitions that extend this type definition.

https://docs.api.wanikani.com/20170710/#subjects

interface WKSubjectData {
    auxiliary_meanings: WKSubjectAuxiliaryMeaning[];
    characters: null | string;
    created_at: WKDatableString;
    document_url: string;
    hidden_at: null | WKDatableString;
    lesson_position: number;
    level: WKLevel;
    meaning_mnemonic: string;
    meanings: WKSubjectMeaning[];
    slug: string;
    spaced_repetition_system_id: number;
}

Hierarchy (view full)

Properties

auxiliary_meanings: WKSubjectAuxiliaryMeaning[]

Collection of auxiliary meanings.

characters: null | string

The UTF-8 characters for the subject, including kanji and hiragana.

Unlike kanji and vocabulary, radicals can have a null value for characters. Not all radicals have a UTF entry, so the radical must be visually represented with an image instead.

created_at: WKDatableString

Timestamp when the subject was created.

document_url: string

A URL pointing to the page on wanikani.com that provides detailed information about this subject.

hidden_at: null | WKDatableString

Timestamp when the subject was hidden, indicating associated assignments will no longer appear in lessons or reviews and that the subject page is no longer visible on wanikani.com.

lesson_position: number

The position that the subject appears in lessons. Note that the value is scoped to the level of the subject, so there are duplicate values across levels.

level: WKLevel

The level of the subject, from 1 to 60.

meaning_mnemonic: string

The subject's meaning mnemonic.

meanings: WKSubjectMeaning[]

The subject meanings.

slug: string

The string that is used when generating the document URL for the subject. Radicals use their meaning, downcased. Kanji and vocabulary use their characters.

spaced_repetition_system_id: number

Unique identifier of the associated Spaced Repetition System.