Vocab Bloom Hub

Публичный API v1

Справочник read-only API словаря, сгенерированный из OpenAPI-документа, который публикует сервер, — того же контракта, из которого собраны SDK.

Read-only dictionary API under /api/v1 (contract version 1): no authentication, every answer in a { data, meta } envelope, errors as { statusCode, message, error: true }, X-API-Version on every response. Successful GET answers carry ETag, Last-Modified and Cache-Control. Documentation: https://vocab-bloom-hub.com/en/docs/api.

Базовый URLhttps://<instance>/api/v1
Каждый инстанс отдаёт API под своим origin; в примерах ниже — заглушка.
Контракт
Документ OpenAPI 3, каждый инстанс отдаёт его по адресу /api/v1/openapi.json; файл в репозитории
Дальше

Эндпоинты

GET/api/v1/meta

API and dataset versions, data license and counts of the served dictionary

Параметры

Без параметров.

Ответы

Пример

curl 'https://your-instance.example/api/v1/meta'

Попробовать в плейграунде

GET/api/v1/openapi.json

The OpenAPI 3 document of the public API (this contract)

Параметры

Без параметров.

Ответы

  • 200OKobject
  • 429Rate limit of the public prefix exceeded (PUBLIC_API_RATE_LIMIT); retry after the windowPublicApiErrorT
  • 503Not available: the OpenAPI document is not ready, or the suggestion queue is fullPublicApiErrorT

Пример

curl 'https://your-instance.example/api/v1/openapi.json'

GET/api/v1/search/detailed

Search dictionary entries with pagination, meanings and translations

The detailed search: the same term and tiers, paged, with meanings and translations joined on request; the fields travel in the query string (`translation_languages` as a repeated key). Cacheable like every public GET.

Параметры

ИмяГдеТипОбязателенОписание
searchquerystringдаThe term to search for
typequerystring
wordgrammar_patternphrase
нетRestrict the answer to one entry type
limitqueryintegerнет
по умолчанию: 10
pagequeryintegerнет
по умолчанию: 1
with_meaningsquerybooleanнетJoin the meanings (with translations, synonyms, antonyms) of every item
по умолчанию: false
with_translationsquerybooleanнетJoin the short translations of every item
по умолчанию: false
translation_languagesquerystring[]
ruesfrdeptzhar
нетKeep only these translation languages (a repeated key); omit the key for all of them

Ответы

Пример

curl 'https://your-instance.example/api/v1/search/detailed'

Попробовать в плейграунде

GET/api/v1/words/{word}

All entries of a headword: parts of speech, forms, meanings, translations, links

Параметры

ИмяГдеТипОбязателенОписание
wordpathstringдаHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry

Ответы

Пример

curl 'https://your-instance.example/api/v1/words/run'

Попробовать в плейграунде

GET/api/v1/words/{word}/meanings

The meanings of a headword across its entries

Параметры

ИмяГдеТипОбязателенОписание
wordpathstringдаHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry

Ответы

Пример

curl 'https://your-instance.example/api/v1/words/run/meanings'

Попробовать в плейграунде

GET/api/v1/words/{word}/translations

The short and per-meaning translations of a headword

Параметры

ИмяГдеТипОбязателенОписание
wordpathstringдаHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry
languagequerystring[]
ruesfrdeptzhar
нетTranslation languages; no value means all of them

Ответы

Пример

curl 'https://your-instance.example/api/v1/words/run/translations'

Попробовать в плейграунде

GET/api/v1/words/{word}/forms

The inflected forms of a headword across its entries

Параметры

ИмяГдеТипОбязателенОписание
wordpathstringдаHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry

Ответы

Пример

curl 'https://your-instance.example/api/v1/words/run/forms'

Попробовать в плейграунде

GET/api/v1/words/{word}/synonyms

The synonyms of a headword, per meaning

One item per linked headword and meaning; each names its `meaning_id`, `word_id` and `part_of_speech`.

Параметры

ИмяГдеТипОбязателенОписание
wordpathstringдаHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry

Ответы

Пример

curl 'https://your-instance.example/api/v1/words/run/synonyms'

Попробовать в плейграунде

GET/api/v1/words/{word}/antonyms

The antonyms of a headword, per meaning

One item per linked headword and meaning; each names its `meaning_id`, `word_id` and `part_of_speech`.

Параметры

ИмяГдеТипОбязателенОписание
wordpathstringдаHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry

Ответы

Пример

curl 'https://your-instance.example/api/v1/words/run/antonyms'

Попробовать в плейграунде

GET/api/v1/words/id/{id}

One dictionary entry by its numeric id

Параметры

ИмяГдеТипОбязателенОписание
idpathnumberда

Ответы

Пример

curl 'https://your-instance.example/api/v1/words/id/1'

Попробовать в плейграунде

GET/api/v1/words

List dictionary entries by filters, cursor-paged and ordered by (word, id)

Every enum filter accepts a repeated key; values of one filter are OR-ed, filters are AND-ed. `search` keeps the headwords starting with the prefix (an autocomplete or an A–Z browser: cacheable, unlike the search). Pass `meta.next_cursor` back as `cursor` to read the next page.

Параметры

ИмяГдеТипОбязателенОписание
searchquerystringнетHeadword prefix, case-insensitive (`ru` lists run, rung, runner, …)
is_obsoletequerybooleanнетtrue: obsolete entries only, false: current ones only
part_of_speechquerystring[]
nounverbmodal_verbadjectiveadverbpronounnumeralnumeral_fractionaldeterminerinterjectionarticleprepositionconjunctionletterphrasegrammar_pattern
нет
word_levelquerystring[]
A1A2B1B2C1C2
нет
language_registerquerystring[]
formalinformalslang
нет
categoryquerystring[]
scientifictechnicalmedicallegalbusinessITartpoliticalsportculinary
нетWords tagged with any of the categories
area_variantquerystring[]
commonbritishamericanaustralian
нет
form_of_wordquerystring[]
base_formplural_formpossessive_singular_formpossessive_plural_formpast_simplepast_participlepresent_participlethird_person_singularcomparative_formsuperlative_formobjectpossessive_adjectivepossessive_pronounreflexiveordinalmultiplicative
нетDefaults to base forms only
по умолчанию: ["base_form"]
cursorquerystringнетThe `meta.next_cursor` of the previous page; omit for the first page
limitqueryintegerнет
по умолчанию: 20
with_meaningsquerybooleanнетJoin the meanings of every word
по умолчанию: false
with_translationsquerybooleanнетJoin the short translations of every word
по умолчанию: false

Ответы

  • 200OKPublicWordsV1ResT
  • 400Invalid input: an unknown field, a value outside the allowed set, or a foreign cursorPublicApiErrorT
  • 429Rate limit of the public prefix exceeded (PUBLIC_API_RATE_LIMIT); retry after the windowPublicApiErrorT

Пример

curl 'https://your-instance.example/api/v1/words'

Попробовать в плейграунде

GET/api/v1/random

A random dictionary entry matching the filters (base forms unless form_of_word is given)

Параметры

ИмяГдеТипОбязателенОписание
searchquerystringнетHeadword prefix, case-insensitive (`ru` lists run, rung, runner, …)
is_obsoletequerybooleanнетtrue: obsolete entries only, false: current ones only
part_of_speechquerystring[]
nounverbmodal_verbadjectiveadverbpronounnumeralnumeral_fractionaldeterminerinterjectionarticleprepositionconjunctionletterphrasegrammar_pattern
нет
word_levelquerystring[]
A1A2B1B2C1C2
нет
language_registerquerystring[]
formalinformalslang
нет
categoryquerystring[]
scientifictechnicalmedicallegalbusinessITartpoliticalsportculinary
нетWords tagged with any of the categories
area_variantquerystring[]
commonbritishamericanaustralian
нет
form_of_wordquerystring[]
base_formplural_formpossessive_singular_formpossessive_plural_formpast_simplepast_participlepresent_participlethird_person_singularcomparative_formsuperlative_formobjectpossessive_adjectivepossessive_pronounreflexiveordinalmultiplicative
нетDefaults to base forms only
по умолчанию: ["base_form"]

Ответы

Пример

curl 'https://your-instance.example/api/v1/random'

Попробовать в плейграунде

POST/api/v1/words/batch

Up to 50 headwords in one request

Every spelling is matched like `GET /words/{word}`; the answer keeps the request order, collapses duplicates, and lists the spellings without an entry under `meta.not_found` instead of failing. One request against the rate limit, whatever the size of the batch.

Тело запроса · WordsBatchV1ReqDTO

ИмяТипОбязателенОписание
wordsstring[]даHeadword spellings, 50 at most, each matched like GET /words/{word} (case-insensitively; an inflected form resolves to its base entry)

Ответы

Пример

curl -X POST 'https://your-instance.example/api/v1/words/batch' \
  -H 'Content-Type: application/json' \
  -d '{"words":["example"]}'

Попробовать в плейграунде

POST/api/v1/suggestions

Report a mistake in the dictionary data

Files a report for the instance admin to review: what is wrong with a headword (optionally one specific entry of it) and, ideally, what would be right. The headword must exist in the dictionary. Strictly rate-limited; once too many reports are waiting for the admin the endpoint answers 503 until the queue is worked down.

Тело запроса · CreateSuggestionV1ReqDTO

ИмяТипОбязателенОписание
headwordstringдаThe headword the report is about; must exist in the dictionary
word_idobjectнетId of the entry (part of speech) the report points at, from the word answers
kindstring
reportedit
нет
по умолчанию: "report"
messageobjectнетWhat is wrong and, ideally, what would be right. Required for a report; an optional comment on an edit
editsSuggestionEditV1DTO[]нетEdit flow: every touched target of the word form with its proposed values

Ответы

Пример

curl -X POST 'https://your-instance.example/api/v1/suggestions' \
  -H 'Content-Type: application/json' \
  -d '{"headword":"example"}'

Попробовать в плейграунде

Схемы

SuggestionEditV1DTO

ИмяТипОбязателенОписание
target_typestring
wordmeaningmeaning_translationshort_translation
да
target_idnumberдаId of the targeted row, from the word answers
changesobjectдаThe proposed field values, e.g. { "definition": "…" }. The accepted fields depend on target_type; unknown fields, empty values and values equal to the current ones are rejected

CreateSuggestionV1ReqDTO

ИмяТипОбязателенОписание
headwordstringдаThe headword the report is about; must exist in the dictionary
word_idobjectнетId of the entry (part of speech) the report points at, from the word answers
kindstring
reportedit
нет
по умолчанию: "report"
messageobjectнетWhat is wrong and, ideally, what would be right. Required for a report; an optional comment on an edit
editsSuggestionEditV1DTO[]нетEdit flow: every touched target of the word form with its proposed values

WordsBatchV1ReqDTO

ИмяТипОбязателенОписание
wordsstring[]даHeadword spellings, 50 at most, each matched like GET /words/{word} (case-insensitively; an inflected form resolves to its base entry)

PublicSearchV1MetaT

ИмяТипОбязателенОписание
countintegerда
fuzzybooleanда
short_termbooleanда

PublicSearchV1ResT

ИмяТипОбязателенОписание
dataPublicSearchWordV1T[]да
metaPublicSearchV1MetaTда

PublicSearchWordV1T

ИмяТипОбязателенОписание
idintegerда
wordstringда
part_of_speechEnPartOfSpeechEда
form_of_wordEnWordFormsEда
is_obsoletebooleanда
is_abbreviationbooleanда
word_levelWordLevelE | nullда
area_variantEnAreaVariantsE | nullда
categoriesCategoryE[]да
language_registerLanguageRegisterE | nullда
descriptionstring | nullда
transcriptionstring | nullда
patternstring[] | nullда
noun___irregular_pluralboolean | nullда
noun___uncountableboolean | nullда
noun___is_properboolean | nullда
noun___always_pluralboolean | nullда
verb___is_irregularboolean | nullда
verb___transitivityEnVerbTransitivityE | nullда
verb___is_phrasalboolean | nullда
verb___phrasal_object_patternEnPhrasalObjectPatternE | nullда
base_phrasalstring | nullда
formsPublicWordV1FormT[]да
similaritynumberнет

EnPartOfSpeechE

Одно из: noun, verb, modal_verb, adjective, adverb, pronoun, numeral, numeral_fractional, determiner, interjection, article, preposition, conjunction, letter, phrase, grammar_pattern

EnWordFormsE

Одно из: base_form, plural_form, possessive_singular_form, possessive_plural_form, past_simple, past_participle, present_participle, third_person_singular, comparative_form, superlative_form, object, possessive_adjective, possessive_pronoun, reflexive, ordinal, multiplicative

WordLevelE

Одно из: A1, A2, B1, B2, C1, C2

EnAreaVariantsE

Одно из: common, british, american, australian

CategoryE

Одно из: scientific, technical, medical, legal, business, IT, art, political, sport, culinary

LanguageRegisterE

Одно из: formal, informal, slang

EnVerbTransitivityE

Одно из: transitive, intransitive, both

EnPhrasalObjectPatternE

Одно из: no_object, inseparable, separable, separable_pronoun_only

PublicWordV1FormT

ИмяТипОбязателенОписание
idintegerда
wordstringда
form_of_wordEnWordFormsEда
area_variantEnAreaVariantsEда
transcriptionstring | nullда

PublicSearchDetailedV1MetaT

ИмяТипОбязателенОписание
pageintegerда
limitintegerда
has_morebooleanда
fuzzybooleanда
short_termbooleanда

PublicSearchDetailedV1ResT

ИмяТипОбязателенОписание
dataPublicWordV1T[]да
metaPublicSearchDetailedV1MetaTда

PublicWordV1T

ИмяТипОбязателенОписание
meaningsPublicWordV1MeaningT[]да
short_translationsPublicWordV1ShortTranslationT[]да
phrasal_variantsstring[]нет
idintegerда
wordstringда
part_of_speechEnPartOfSpeechEда
form_of_wordEnWordFormsEда
is_obsoletebooleanда
is_abbreviationbooleanда
word_levelWordLevelE | nullда
area_variantEnAreaVariantsE | nullда
categoriesCategoryE[]да
language_registerLanguageRegisterE | nullда
descriptionstring | nullда
transcriptionstring | nullда
patternstring[] | nullда
noun___irregular_pluralboolean | nullда
noun___uncountableboolean | nullда
noun___is_properboolean | nullда
noun___always_pluralboolean | nullда
verb___is_irregularboolean | nullда
verb___transitivityEnVerbTransitivityE | nullда
verb___is_phrasalboolean | nullда
verb___phrasal_object_patternEnPhrasalObjectPatternE | nullда
base_phrasalstring | nullда
formsPublicWordV1FormT[]да
similaritynumberнет

PublicWordV1MeaningT

ИмяТипОбязателенОписание
idintegerда
sort_orderintegerда
titlestringда
definitionstringда
is_obsoletebooleanда
examplesstring[]да
categoriesCategoryE[]да
meaning_levelWordLevelE | nullда
area_variantEnAreaVariantsEда
language_registerLanguageRegisterE | nullда
translationsPublicWordV1MeaningTranslationT[]да
synonymsstring[]да
antonymsstring[]да

PublicWordV1MeaningTranslationT

ИмяТипОбязателенОписание
idintegerда
languageAvailableTranslationLanguagesEда
titlestringда
definitionstringда
variants_of_wordsstring[]да

AvailableTranslationLanguagesE

Одно из: ru, es, fr, de, pt, zh, ar

PublicWordV1ShortTranslationT

ИмяТипОбязателенОписание
idintegerда
languageAvailableTranslationLanguagesEда
descriptionstringда
variants_of_wordsstring[]да

PublicWordV1ResT

ИмяТипОбязателенОписание
dataPublicWordV1Tда

PublicHeadwordV1MetaT

ИмяТипОбязателенОписание
wordstringда
countintegerда

PublicHeadwordV1ResT

ИмяТипОбязателенОписание
dataPublicWordV1T[]да
metaPublicHeadwordV1MetaTда

PublicMeaningV1T

ИмяТипОбязателенОписание
word_idintegerда
part_of_speechEnPartOfSpeechEда
idintegerда
sort_orderintegerда
titlestringда
definitionstringда
is_obsoletebooleanда
examplesstring[]да
categoriesCategoryE[]да
meaning_levelWordLevelE | nullда
area_variantEnAreaVariantsEда
language_registerLanguageRegisterE | nullда
translationsPublicWordV1MeaningTranslationT[]да
synonymsstring[]да
antonymsstring[]да

PublicHeadwordMeaningsV1ResT

ИмяТипОбязателенОписание
dataPublicMeaningV1T[]да
metaPublicHeadwordV1MetaTда

PublicWordFormV1T

ИмяТипОбязателенОписание
word_idintegerда
part_of_speechEnPartOfSpeechEда
idintegerда
wordstringда
form_of_wordEnWordFormsEда
area_variantEnAreaVariantsEда
transcriptionstring | nullда

PublicHeadwordFormsV1ResT

ИмяТипОбязателенОписание
dataPublicWordFormV1T[]да
metaPublicHeadwordV1MetaTда

PublicShortTranslationV1T

ИмяТипОбязателенОписание
word_idintegerда
part_of_speechEnPartOfSpeechEда
idintegerда
languageAvailableTranslationLanguagesEда
descriptionstringда
variants_of_wordsstring[]да

PublicMeaningTranslationV1T

ИмяТипОбязателенОписание
meaning_idintegerда
word_idintegerда
part_of_speechEnPartOfSpeechEда
idintegerда
languageAvailableTranslationLanguagesEда
titlestringда
definitionstringда
variants_of_wordsstring[]да

PublicWordLinkV1T

ИмяТипОбязателенОписание
meaning_idintegerда
wordstringда
word_idintegerда
part_of_speechEnPartOfSpeechEда

PublicHeadwordLinksV1ResT

ИмяТипОбязателенОписание
dataPublicWordLinkV1T[]да
metaPublicHeadwordV1MetaTда

PublicHeadwordTranslationsV1T

ИмяТипОбязателенОписание
short_translationsPublicShortTranslationV1T[]да
meaning_translationsPublicMeaningTranslationV1T[]да

PublicHeadwordTranslationsV1ResT

ИмяТипОбязателенОписание
metaPublicHeadwordV1MetaTда
dataPublicHeadwordTranslationsV1Tда

PublicWordsBatchItemV1T

ИмяТипОбязателенОписание
wordstringда
countintegerда
entriesPublicWordV1T[]да

PublicWordsBatchV1MetaT

ИмяТипОбязателенОписание
countintegerда
not_foundstring[]да

PublicWordsBatchV1ResT

ИмяТипОбязателенОписание
dataPublicWordsBatchItemV1T[]да
metaPublicWordsBatchV1MetaTда

PublicWordsV1MetaT

ИмяТипОбязателенОписание
limitintegerда
has_morebooleanда
next_cursorstring | nullда

PublicWordsV1ResT

ИмяТипОбязателенОписание
dataPublicWordV1T[]да
metaPublicWordsV1MetaTда

PublicDatasetCountsV1T

ИмяТипОбязателенОписание
entriesintegerда
wordsintegerда
phrasesintegerда
grammar_patternsintegerда
word_formsintegerда
meaningsintegerда
meaning_translationsintegerда
short_translationsintegerда

PublicMetaV1T

ИмяТипОбязателенОписание
api_versionstringда
app_versionstringда
dataset_versionstring | nullда
licensestringда
license_urlstringда
attributionstringда
noticestringда
countsPublicDatasetCountsV1Tда
available_languagesPublicAvailableLanguagesV1Tда

PublicAvailableLanguagesV1T

ИмяТипОбязателенОписание
sourcestring[]да
translationsAvailableTranslationLanguagesE[]да

PublicMetaV1ResT

ИмяТипОбязателенОписание
dataPublicMetaV1Tда

PublicSuggestionCreatedV1T

ИмяТипОбязателенОписание
idintegerда
statusstringда

PublicSuggestionCreatedV1ResT

ИмяТипОбязателенОписание
dataPublicSuggestionCreatedV1Tда

PublicApiErrorT

ИмяТипОбязателенОписание
statusCodenumberда
messagestringда
errorbooleanда