{"components":{"schemas":{"Attribution":{"properties":{"html":{"description":"The credit as an HTML link with the mark, styled inline; the kotoba-credit class restyles it.","type":"string"},"icon":{"description":"The dictionary's mark, an SVG that follows the reader's light or dark colour scheme.","examples":["https://kotoba.lt/api/mark/jp.svg"],"type":"string"},"name":{"description":"The name to credit.","examples":["Kotoba.lt"],"type":"string"},"tagline":{"description":"The dictionary the data is from, in the host's interface language.","examples":["Nemokamas japonų–lietuvių kalbų žodynas"],"type":"string"},"terms":{"description":"The attribution rules.","examples":["https://kotoba.lt/api#attribution"],"type":"string"},"text":{"description":"The credit as plain text.","examples":["Kotoba.lt · Nemokamas japonų–lietuvių kalbų žodynas"],"type":"string"},"url":{"description":"The page to link the credit to.","examples":["https://kotoba.lt/jp/1358280/食べる"],"type":"string"}},"required":["name","tagline","text","url","icon","html","terms"],"type":"object"},"ConjForm":{"properties":{"alt":{"description":"A second form, such as the colloquial potential.","type":"string"},"alt_reading":{"description":"The second form's reading.","type":"string"},"form":{"description":"The form.","examples":["食べた"],"type":"string"},"id":{"description":"The form's name within its section: dict, past, te, potential, ...","examples":["past"],"type":"string"},"label":{"description":"The form's name in the host's interface language.","type":"string"},"matches_query":{"description":"Whether this is the form that was looked up.","type":"boolean"},"reading":{"description":"Its reading, for a form with kanji.","examples":["たべた"],"type":"string"}},"required":["id","label","form"],"type":"object"},"ConjSection":{"properties":{"forms":{"description":"The section's forms.","items":{"$ref":"#/components/schemas/ConjForm"},"type":"array"},"id":{"description":"affirmative, negative, polite, polite-negative or forms.","examples":["affirmative"],"type":"string"},"label":{"description":"The section's name in the host's interface language.","type":"string"}},"required":["id","label","forms"],"type":"object"},"Conjugation":{"properties":{"group":{"description":"The conjugation class, as a JMdict part-of-speech code: v1, v5k, vs, adj-i, adj-na, ...","examples":["v1"],"type":"string"},"group_label":{"description":"The class's name in the host's interface language.","type":"string"},"sections":{"description":"The forms, by section.","items":{"$ref":"#/components/schemas/ConjSection"},"type":"array"}},"required":["group","group_label","sections"],"type":"object"},"Deinflection":{"properties":{"form":{"description":"The dictionary form it was traced to.","examples":["食べる"],"type":"string"},"query":{"description":"The inflected form searched for.","examples":["食べさせられました"],"type":"string"},"rules":{"description":"The transforms that lead from the dictionary form to the query, innermost first.","items":{"type":"string"},"type":"array"}},"required":["query","form","rules"],"type":"object"},"EntryRef":{"properties":{"headword":{"description":"The usual spelling.","examples":["食べる"],"type":"string"},"reading":{"description":"The headword's reading in kana.","examples":["たべる"],"type":"string"},"seq":{"description":"The entry's number, as in its URL.","examples":[1358280],"type":"integer"},"url":{"description":"The entry's page on Kotoba.","examples":["https://kotoba.lt/jp/1358280/食べる"],"type":"string"}},"required":["seq","headword","reading","url"],"type":"object"},"EntrySummary":{"properties":{"accents":{"description":"Tokyo pitch accent as downstep numbers, the usual first: 0 is flat (heiban), n means the pitch falls after the nth mora. Empty when unknown.","items":{"type":"integer"},"type":"array"},"attribution":{"allOf":[{"$ref":"#/components/schemas/Attribution"}],"description":"The credit to show with the entry."},"common":{"description":"Whether the word is marked as common.","type":"boolean"},"headword":{"description":"The usual spelling.","examples":["食べる"],"type":"string"},"jlpt":{"description":"JLPT level, 5 (N5) to 1 (N1), when the word has one.","type":"integer"},"pos":{"description":"Parts of speech, in the host's interface language.","items":{"type":"string"},"type":"array"},"reading":{"description":"The headword's reading in kana.","examples":["たべる"],"type":"string"},"romaji":{"description":"The reading in Hepburn romaji.","examples":["taberu"],"type":"string"},"seq":{"description":"The entry's number, as in its URL.","examples":[1358280],"type":"integer"},"summary":{"description":"The first Lithuanian meanings, in one line.","type":"string"},"url":{"description":"The entry's page on Kotoba.","examples":["https://kotoba.lt/jp/1358280/食べる"],"type":"string"}},"required":["seq","headword","reading","url","romaji","accents","common","pos","summary","attribution"],"type":"object"},"Error":{"properties":{"error":{"description":"What went wrong.","type":"string"},"status":{"description":"The HTTP status code.","type":"integer"}},"required":["status","error"],"type":"object"},"Example":{"properties":{"japanese":{"description":"The Japanese sentence.","examples":["もっと果物を食べるべきです。"],"type":"string"},"lithuanian":{"description":"The Lithuanian translation.","examples":["Turėtumėte valgyti daugiau vaisių."],"type":"string"},"reading":{"description":"The Japanese sentence in kana.","examples":["もっとくだものをたべるべきです。"],"type":"string"}},"required":["japanese","lithuanian"],"type":"object"},"Form":{"properties":{"info":{"description":"Notes on the spelling, such as rare or irregular.","type":"string"},"reading":{"description":"Its reading, for a spelling with kanji.","type":"string"},"text":{"description":"The spelling or reading.","type":"string"}},"required":["text"],"type":"object"},"FormOf":{"properties":{"form":{"description":"The form as the word's table spells it, stressed where known.","examples":["valgėme"],"type":"string"},"form_label":{"description":"Where the form sits in the table, in the host's interface language.","type":"string"},"headword":{"description":"The word with its stress marked.","examples":["valgyti"],"type":"string"},"url":{"description":"The word's page on Kotoba.","type":"string"},"word":{"description":"The word the query is a form of.","examples":["valgyti"],"type":"string"}},"required":["word","headword","form","form_label","url"],"type":"object"},"FormsGuess":{"properties":{"group":{"description":"The conjugation class, as a JMdict part-of-speech code: v1, v5k, vs, adj-i, adj-na, ...","examples":["v1"],"type":"string"},"group_label":{"description":"The class's name in the host's interface language.","type":"string"},"sections":{"description":"The forms, by section.","items":{"$ref":"#/components/schemas/ConjSection"},"type":"array"},"word":{"description":"The word as conjugated.","type":"string"}},"required":["word","group","group_label","sections"],"type":"object"},"JPEntry":{"properties":{"accents":{"description":"Tokyo pitch accent as downstep numbers, the usual first: 0 is flat (heiban), n means the pitch falls after the nth mora. Empty when unknown.","items":{"type":"integer"},"type":"array"},"attribution":{"allOf":[{"$ref":"#/components/schemas/Attribution"}],"description":"The credit to show with the entry."},"common":{"description":"Whether the word is marked as common.","type":"boolean"},"conjugation":{"allOf":[{"$ref":"#/components/schemas/Conjugation"}],"description":"The conjugation table, for verbs and adjectives."},"examples":{"description":"Example sentences with Lithuanian translations, at most 50.","items":{"$ref":"#/components/schemas/Example"},"type":"array"},"headword":{"description":"The usual spelling.","examples":["食べる"],"type":"string"},"jlpt":{"description":"JLPT level, 5 (N5) to 1 (N1), when the word has one.","type":"integer"},"kanji":{"description":"The kanji of the headword.","items":{"$ref":"#/components/schemas/Kanji"},"type":"array"},"other_forms":{"description":"Other spellings and readings.","items":{"$ref":"#/components/schemas/Form"},"type":"array"},"pos":{"description":"Parts of speech, in the host's interface language.","items":{"type":"string"},"type":"array"},"reading":{"description":"The headword's reading in kana.","examples":["たべる"],"type":"string"},"romaji":{"description":"The reading in Hepburn romaji.","examples":["taberu"],"type":"string"},"see_also":{"description":"Related words.","items":{"$ref":"#/components/schemas/SeeAlso"},"type":"array"},"senses":{"description":"The meanings, in order.","items":{"$ref":"#/components/schemas/Sense"},"type":"array"},"seq":{"description":"The entry's number, as in its URL.","examples":[1358280],"type":"integer"},"summary":{"description":"The first Lithuanian meanings, in one line.","type":"string"},"url":{"description":"The entry's page on Kotoba.","examples":["https://kotoba.lt/jp/1358280/食べる"],"type":"string"}},"required":["seq","headword","reading","url","romaji","accents","common","pos","summary","attribution","senses","other_forms","kanji","examples","see_also"],"type":"object"},"JPForms":{"properties":{"attribution":{"allOf":[{"$ref":"#/components/schemas/Attribution"}],"description":"The credit to show with the forms."},"conjugation":{"allOf":[{"$ref":"#/components/schemas/Conjugation"}],"description":"All forms of the entry, with the forms the entry page leaves out (causative passive, desire; adverb and polite forms of adjectives)."},"deinflected":{"allOf":[{"$ref":"#/components/schemas/Deinflection"}],"description":"Set when the word was an inflected form."},"entry":{"allOf":[{"$ref":"#/components/schemas/EntrySummary"}],"description":"The entry whose forms are given; missing when the dictionary lacks the word and the forms are guesses."},"guesses":{"description":"For a word the dictionary lacks: its forms in each verb group its ending allows.","items":{"$ref":"#/components/schemas/FormsGuess"},"type":"array"},"kana":{"description":"The kana a romaji query was read as.","type":"string"},"others":{"description":"Other entries the word could be; pass one's seq to get its forms.","items":{"$ref":"#/components/schemas/EntryRef"},"type":"array"},"query":{"description":"The word as received.","type":"string"},"url":{"description":"The forms page on Kotoba.","type":"string"}},"required":["query","others","guesses","url","attribution"],"type":"object"},"JPSearchResult":{"properties":{"attribution":{"allOf":[{"$ref":"#/components/schemas/Attribution"}],"description":"The credit to show with the results."},"deinflected":{"allOf":[{"$ref":"#/components/schemas/Deinflection"}],"description":"Set when the results lead with the dictionary form of an inflected query."},"kana":{"description":"The kana a romaji query was read as.","type":"string"},"query":{"description":"The query as received.","type":"string"},"results":{"description":"Matching entries, best first.","items":{"$ref":"#/components/schemas/EntrySummary"},"type":"array"},"url":{"description":"The search page on Kotoba.","type":"string"}},"required":["query","results","url","attribution"],"type":"object"},"Kanji":{"properties":{"character":{"description":"The kanji.","examples":["食"],"type":"string"},"kun":{"description":"Kun readings, in hiragana.","items":{"type":"string"},"type":"array"},"meanings":{"description":"Its meanings.","items":{"type":"string"},"type":"array"},"on":{"description":"On readings, in katakana.","items":{"type":"string"},"type":"array"}},"required":["character","meanings","on","kun"],"type":"object"},"LTCol":{"properties":{"id":{"description":"sg, pl; m_sg, m_pl, f_sg, f_pl; or form.","examples":["sg"],"type":"string"},"label":{"description":"The column's name in the host's interface language; empty for a section's one unnamed column.","type":"string"}},"required":["id","label"],"type":"object"},"LTDegree":{"properties":{"feminine":{"description":"An adjective's feminine of the degree.","examples":["geresnė"],"type":"string"},"form":{"description":"The form, an adjective's masculine.","examples":["geresnis"],"type":"string"},"id":{"description":"pos, comp or sup.","examples":["comp"],"type":"string"},"label":{"description":"The degree's name in the host's interface language.","type":"string"},"neuter":{"description":"An adjective's neuter of the degree, when it has one.","examples":["geriau"],"type":"string"}},"required":["id","label","form"],"type":"object"},"LTEquiv":{"properties":{"headword":{"description":"The Japanese word, as written; an inflected form now and then.","examples":["食べる"],"type":"string"},"reading":{"description":"Its reading in kana, when it has kanji.","examples":["たべる"],"type":"string"},"url":{"description":"Its Japanese entry's page on Kotoba, when it has one.","type":"string"}},"required":["headword"],"type":"object"},"LTForms":{"properties":{"attribution":{"allOf":[{"$ref":"#/components/schemas/Attribution"}],"description":"The credit to show with the tables."},"query":{"description":"The word as received.","type":"string"},"results":{"description":"A table for each word the query is a form of, at most three.","items":{"$ref":"#/components/schemas/LTFormsItem"},"type":"array"},"url":{"description":"The inflection page on Kotoba.","type":"string"}},"required":["query","results","url","attribution"],"type":"object"},"LTFormsItem":{"properties":{"attribution":{"allOf":[{"$ref":"#/components/schemas/Attribution"}],"description":"The credit to show with the table."},"degrees":{"description":"An adjective's or adverb's degrees.","items":{"$ref":"#/components/schemas/LTDegree"},"type":"array"},"form":{"description":"The query as the table spells it, when it is an inflected form.","type":"string"},"form_label":{"description":"Where that form sits in the table, in the host's interface language.","type":"string"},"guess":{"description":"Whether the forms are inflected from the ending alone, for a word the dictionary lacks; they are then unstressed.","type":"boolean"},"headline":{"description":"Principal parts, both genders, or the word.","examples":["válgyti, válgo, válgė"],"type":"string"},"id":{"description":"The entry's number, when the dictionary has the word; pass it as id to get this entry's forms alone.","type":"integer"},"meta":{"description":"Part of speech, gender, declension or conjugation, accent class, in the host's interface language.","items":{"type":"string"},"type":"array"},"participles":{"description":"A verb's participles, declined.","items":{"$ref":"#/components/schemas/LTParticiple"},"type":"array"},"pos":{"description":"Part of speech: noun, verb, adj, adv, ...","examples":["verb"],"type":"string"},"principal_parts":{"allOf":[{"$ref":"#/components/schemas/LTPrincipalParts"}],"description":"A verb's principal parts."},"sections":{"description":"The forms, by section.","items":{"$ref":"#/components/schemas/LTSection"},"type":"array"},"url":{"description":"The word's page on Kotoba, or for a guess the inflection page.","type":"string"},"word":{"description":"The word, when the dictionary has it.","examples":["valgyti"],"type":"string"}},"required":["headline","pos","meta","guess","sections","url","attribution"],"type":"object"},"LTHomonym":{"properties":{"definition":{"description":"Its first definition, in Lithuanian; empty when it has none.","type":"string"},"id":{"description":"The entry's number, as in its URL.","type":"integer"},"url":{"description":"The entry's page on Kotoba.","type":"string"},"word":{"description":"The word as spelt, without stress marks.","examples":["kasa"],"type":"string"}},"required":["id","word","url","definition"],"type":"object"},"LTParticiple":{"properties":{"id":{"description":"The participle, as the part section's row id.","type":"string"},"label":{"description":"Its name in the host's interface language.","type":"string"},"sections":{"description":"Its declension, plain and definite.","items":{"$ref":"#/components/schemas/LTSection"},"type":"array"}},"required":["id","label","sections"],"type":"object"},"LTPrincipalParts":{"properties":{"infinitive":{"examples":["válgyti"],"type":"string"},"past_3":{"description":"Third person past.","examples":["válgė"],"type":"string"},"present_3":{"description":"Third person present.","examples":["válgo"],"type":"string"}},"required":["infinitive","present_3","past_3"],"type":"object"},"LTRelated":{"properties":{"gloss":{"description":"Its first definition, in Lithuanian.","type":"string"},"headword":{"description":"The word, stressed where known.","examples":["suválgyti"],"type":"string"},"kind":{"description":"derived or prefixed.","examples":["prefixed"],"type":"string"},"url":{"description":"Its page on Kotoba, when it has one.","type":"string"}},"required":["headword","kind"],"type":"object"},"LTRow":{"properties":{"forms":{"description":"One cell per column; each cell lists the form and its variants, stressed where known, and is empty when the form does not exist.","items":{"items":{"type":"string"},"type":"array"},"type":"array"},"id":{"description":"nom, gen, dat, acc, ins, loc, voc; 1sg, 2sg, 3, 1pl, 2pl; ...","examples":["nom"],"type":"string"},"label":{"description":"The row's name in the host's interface language, or the pronouns of a tense row.","type":"string"}},"required":["id","label","forms"],"type":"object"},"LTSearchResult":{"properties":{"attribution":{"allOf":[{"$ref":"#/components/schemas/Attribution"}],"description":"The credit to show with the results."},"deinflected":{"allOf":[{"$ref":"#/components/schemas/Deinflection"}],"description":"Set when a Japanese query was an inflected form."},"form_of":{"description":"The words the query is an inflected form of, when it is not a word itself.","items":{"$ref":"#/components/schemas/FormOf"},"type":"array"},"kana":{"description":"The kana a romaji query was read as.","type":"string"},"phrases":{"description":"Always empty. Kept so older clients don't break.","items":{"$ref":"#/components/schemas/LTSearchRow"},"type":"array"},"query":{"description":"The query as received.","type":"string"},"url":{"description":"The search page on Kotoba.","type":"string"},"words":{"description":"Lithuanian words, best first.","items":{"$ref":"#/components/schemas/LTSearchRow"},"type":"array"}},"required":["query","form_of","words","phrases","url","attribution"],"type":"object"},"LTSearchRow":{"properties":{"attribution":{"allOf":[{"$ref":"#/components/schemas/Attribution"}],"description":"The credit to show with the word."},"context":{"description":"Words around the gloss in parentheses that put the row here.","type":"string"},"definition":{"description":"The first definition, given when several results share the word or the word has no equivalents.","type":"string"},"equivalents":{"description":"The word's equivalents as the search row shows them: at most five, in sense order.","items":{"$ref":"#/components/schemas/LTEquiv"},"type":"array"},"form":{"allOf":[{"$ref":"#/components/schemas/FormOf"}],"description":"Set when the query is an inflected form of the word."},"headword":{"description":"The word with its stress marked, where known.","examples":["válgyti"],"type":"string"},"id":{"description":"The entry's or phrase's number, as in its URL; get it from the entries endpoint.","type":"integer"},"pos":{"description":"Part of speech: noun, verb, adj, adv, ...","examples":["verb"],"type":"string"},"translations":{"description":"Japanese translations, at most 10. Empty when the word has Japanese senses.","items":{"$ref":"#/components/schemas/Translation"},"type":"array"},"url":{"description":"The word's page on Kotoba.","type":"string"},"word":{"description":"The Lithuanian word or phrase.","examples":["valgyti"],"type":"string"}},"required":["id","word","headword","translations","url","attribution"],"type":"object"},"LTSection":{"properties":{"columns":{"description":"The columns.","items":{"$ref":"#/components/schemas/LTCol"},"type":"array"},"id":{"description":"decl, decl_def, comp, sup, pres, past, past_freq, fut, cond, imp, part, ...","examples":["decl"],"type":"string"},"label":{"description":"The section's name in the host's interface language.","type":"string"},"rows":{"description":"The rows.","items":{"$ref":"#/components/schemas/LTRow"},"type":"array"}},"required":["id","label","columns","rows"],"type":"object"},"LTSense":{"properties":{"definition":{"description":"The definition, in Lithuanian.","examples":["gauti maisto, pasistiprinti"],"type":"string"},"definition_ja":{"description":"The definition in Japanese, readings in parentheses after words with kanji.","examples":["手本（てほん）として示す（しめす）もの"],"type":"string"},"equivalents":{"description":"The words a Japanese speaker would use for this sense, as the page shows them above the definition.","items":{"$ref":"#/components/schemas/LTEquiv"},"type":"array"},"example":{"description":"An example sentence, with stress marks.","examples":["Mẽs válgome kartù."],"type":"string"},"example_ja":{"description":"The example in Japanese, readings in parentheses.","examples":["兄（あに）を見習い（みならい）なさい。"],"type":"string"},"government":{"description":"The cases the word takes in this sense.","examples":["ką, kuo"],"type":"string"},"labels":{"description":"Usage and field labels, in the host's interface language where the site has names for them, else the Lithuanian abbreviation.","items":{"type":"string"},"type":"array"},"see":{"allOf":[{"$ref":"#/components/schemas/LTSenseRef"}],"description":"The word whose sense this one refers to; definition is then that sense's."}},"type":"object"},"LTSenseRef":{"properties":{"url":{"description":"Its page on Kotoba, when it has one.","type":"string"},"word":{"description":"The Lithuanian word.","examples":["eiti"],"type":"string"}},"required":["word"],"type":"object"},"LTWord":{"properties":{"accent_class":{"description":"The accent class: 1 to 4, or a combination such as 34b.","type":"string"},"attribution":{"allOf":[{"$ref":"#/components/schemas/Attribution"}],"description":"The credit to show with the word."},"definitions":{"description":"The word's definitions in Lithuanian, in the dictionary's order.","items":{"$ref":"#/components/schemas/LTSense"},"type":"array"},"derived_from":{"description":"The words that list this word as one derived from them or as their prefixed verb.","items":{"$ref":"#/components/schemas/LTWordRef"},"type":"array"},"examples":{"description":"Example sentences.","items":{"$ref":"#/components/schemas/Example"},"type":"array"},"feminine":{"description":"An adjective's feminine.","type":"string"},"form_of":{"description":"Words this word is itself a form of, such as a participle's verb.","items":{"$ref":"#/components/schemas/FormOf"},"type":"array"},"gender":{"description":"A noun's gender: m, f or mf.","type":"string"},"gender_pair":{"description":"A feminine noun's masculine, or a masculine noun's feminines.","items":{"$ref":"#/components/schemas/LTWordRef"},"type":"array"},"genitive":{"description":"A noun's genitive singular.","type":"string"},"headline":{"description":"The page's title line: a verb's principal parts, an adjective's masculine and feminine, else the headword.","examples":["válgyti, válgo, válgė"],"type":"string"},"headword":{"description":"The word with its stress marked, where known.","examples":["válgyti"],"type":"string"},"homonym":{"description":"Which of the entries spelt the same this is, from 1; 0 when the spelling has one entry.","type":"integer"},"homonyms":{"description":"The other entries spelt the same, by homonym.","items":{"$ref":"#/components/schemas/LTHomonym"},"type":"array"},"id":{"description":"The entry's or phrase's number, as in its URL /lt/{id}/{word}.","type":"integer"},"inflection":{"description":"The inflection table, by section.","items":{"$ref":"#/components/schemas/LTSection"},"type":"array"},"meta":{"description":"The line under the headline: part of speech, gender, declension or conjugation, accent class, in the host's interface language.","items":{"type":"string"},"type":"array"},"phrase":{"description":"Whether this is a phrase rather than a word.","type":"boolean"},"phrase_words":{"description":"A phrase's words that have pages.","items":{"$ref":"#/components/schemas/LTWordRef"},"type":"array"},"pos":{"description":"Part of speech: noun, verb, adj, adv, ...","examples":["verb"],"type":"string"},"principal_parts":{"allOf":[{"$ref":"#/components/schemas/LTPrincipalParts"}],"description":"A verb's principal parts."},"related":{"description":"Derived words, then prefixed verbs, as the Lithuanian dictionaries list them under this word.","items":{"$ref":"#/components/schemas/LTRelated"},"type":"array"},"translations":{"description":"Japanese translations.","items":{"$ref":"#/components/schemas/Translation"},"type":"array"},"url":{"description":"The word's page on Kotoba.","type":"string"},"variants":{"description":"Other spellings of the word.","items":{"$ref":"#/components/schemas/LTWordRef"},"type":"array"},"word":{"description":"The word as spelt, without stress marks.","examples":["valgyti"],"type":"string"}},"required":["id","homonym","word","headword","headline","phrase","meta","definitions","translations","inflection","form_of","gender_pair","variants","derived_from","phrase_words","related","homonyms","examples","url","attribution"],"type":"object"},"LTWordRef":{"properties":{"headword":{"description":"The word with its stress marked, where known.","type":"string"},"id":{"description":"The entry's number, as in its URL.","type":"integer"},"url":{"description":"The word's page on Kotoba.","type":"string"},"word":{"description":"The Lithuanian word.","type":"string"}},"required":["id","word","headword","url"],"type":"object"},"SeeAlso":{"properties":{"reading":{"description":"Its entry's reading.","type":"string"},"seq":{"description":"Its entry's number, when it has an entry.","type":"integer"},"text":{"description":"The word referred to.","type":"string"},"url":{"description":"Its entry's page on Kotoba.","type":"string"}},"required":["text"],"type":"object"},"Sense":{"properties":{"glosses":{"description":"Lithuanian meanings.","items":{"type":"string"},"type":"array"},"labels":{"description":"Part of speech and usage, field and dialect labels, in the host's interface language.","items":{"type":"string"},"type":"array"},"notes":{"description":"Explanations and notes under the meanings.","items":{"type":"string"},"type":"array"}},"required":["labels","glosses","notes"],"type":"object"},"StatusResult":{"properties":{"database_built":{"description":"The date the dictionary was built, YYYY-MM-DD.","examples":["2026-10-18"],"type":"string"},"status":{"description":"ok when the server is up.","examples":["ok"],"type":"string"}},"required":["status","database_built"],"type":"object"},"Translation":{"properties":{"context":{"description":"Words around the gloss in parentheses, such as (iš ko nors).","type":"string"},"headword":{"description":"The Japanese word.","examples":["食べる"],"type":"string"},"reading":{"description":"Its reading in kana.","examples":["たべる"],"type":"string"},"register":{"description":"How the Japanese word is used, such as honorific or colloquial, in the host's interface language. Word pages only.","items":{"type":"string"},"type":"array"},"seq":{"description":"The Japanese entry's number.","examples":[1358280],"type":"integer"},"url":{"description":"The Japanese entry's page on Kotoba.","type":"string"}},"required":["seq","headword","reading","url"],"type":"object"}}},"externalDocs":{"url":"https://ja.kotoba.lt/api"},"info":{"description":"Both kotoba.lt and ja.kotoba.lt answer at the same paths. Labels such as parts of speech, cases and form names are in the host's language, Lithuanian or Japanese; field names are the same.\n\nPitch accent is given as downstep numbers: 0 is flat, n means the pitch falls after the nth mora, and a list such as [0, 3] gives a word said both ways, the usual first.\n\n## Attribution\n\nAny app, site or file that shows data from this API must credit Kotoba.lt and the dictionary the data is from, as each answer's attribution gives it:\n\n- Show the credit next to or inside every entry, form table or other item built from API data. A clearly bounded group of results from one dictionary, such as a search box, may carry one credit for the whole group, linked to the answer's url. A credit in a footer or on an about page is not enough.\n- Link each credit to its item's page, the url in its attribution. Where links can't be followed, as in print, a terminal or speech, write the url out.\n- Use text at least as large as the body text, in a colour that reads against its background.\n- The credit stays with the data when it is cached, edited, translated, merged with other data, exported or published as a dataset. Anyone you pass the data to must keep it.\n- Don't present the data as your own, and don't suggest that Kotoba.lt endorses your app.\n\nEvery answer, and every entry, word, search row and form table in it, has an attribution: its name, tagline, text, url, icon, html and terms.","termsOfService":"https://ja.kotoba.lt/api#attribution","title":"Kotoba API","version":"1.0.0"},"openapi":"3.1.0","paths":{"/api/v1/jp/entries/{seq}":{"get":{"description":"One Japanese entry by its number.","operationId":"getJapaneseEntry","parameters":[{"description":"The entry's number, as in its URL /jp/{seq}/{headword}.","example":1358280,"in":"path","name":"seq","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JPEntry"}}},"description":"OK"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"}},"summary":"Get a Japanese entry"}},"/api/v1/jp/forms":{"get":{"description":"Every form of a Japanese verb or adjective, given any of its forms.","operationId":"getJapaneseForms","parameters":[{"description":"The word, in its dictionary form or any conjugated one.","example":"食べました","in":"query","name":"q","required":true,"schema":{"type":"string"}},{"description":"Which entry to give the forms of, when the word could be several (see others).","example":1358280,"in":"query","name":"seq","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JPForms"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or bad parameter"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"}},"summary":"Get every form of a Japanese verb or adjective"}},"/api/v1/jp/search":{"get":{"description":"Finds entries by kanji, kana, romaji or Lithuanian, conjugated forms included.","operationId":"searchJapanese","parameters":[{"description":"The query: Japanese in any form, romaji or Lithuanian.","example":"食べる","in":"query","name":"q","required":true,"schema":{"type":"string"}},{"description":"How many results to give per list, 1 to 50; 20 when left out.","example":5,"in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JPSearchResult"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or bad parameter"}},"summary":"Search Japanese entries"}},"/api/v1/lt/entries/{id}":{"get":{"description":"One Lithuanian entry or phrase by its id.","operationId":"getLithuanianEntry","parameters":[{"description":"The entry's number, as in its URL /lt/{id}/{word}.","example":93972,"in":"path","name":"id","required":true,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LTWord"}}},"description":"OK"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"}},"summary":"Get a Lithuanian entry"}},"/api/v1/lt/forms":{"get":{"description":"Every inflected form of a Lithuanian noun, adjective or verb, given any of its forms.","operationId":"getLithuanianForms","parameters":[{"description":"The word, in any form.","example":"valgėme","in":"query","name":"q","required":true,"schema":{"type":"string"}},{"description":"Which entry to give the forms of, when the word is a form of several (each result's id).","example":93972,"in":"query","name":"id","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LTForms"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or bad parameter"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Not found"}},"summary":"Get every form of a Lithuanian word"}},"/api/v1/lt/search":{"get":{"description":"Finds Lithuanian entries by any inflected form, with or without diacritics, or by Japanese.","operationId":"searchLithuanian","parameters":[{"description":"The query: a Lithuanian word in any form, or Japanese.","example":"valgyti","in":"query","name":"q","required":true,"schema":{"type":"string"}},{"description":"How many results to give per list, 1 to 50; 20 when left out.","example":5,"in":"query","name":"limit","required":false,"schema":{"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LTSearchResult"}}},"description":"OK"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Missing or bad parameter"}},"summary":"Search Lithuanian entries"}},"/api/v1/status":{"get":{"description":"Whether the server is up, and when the dictionary was built.","operationId":"getStatus","responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResult"}}},"description":"OK"}},"summary":"Health check"}}},"security":[],"servers":[{"url":"https://ja.kotoba.lt"}]}
