Vocab Bloom Hub

API pública v1

A referência da API somente leitura do dicionário, gerada a partir do documento OpenAPI publicado pelo servidor — o mesmo contrato a partir do qual os SDKs são construídos.

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.

URL basehttps://<instance>/api/v1
Cada instância serve a API na sua própria origem; os exemplos abaixo usam um marcador.
Contrato
Documento OpenAPI 3, servido por cada instância em /api/v1/openapi.json; o arquivo versionado
Leia mais

Endpoints

GET/api/v1/meta

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

Parâmetros

Sem parâmetros.

Respostas

Exemplo

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

Testar no playground

GET/api/v1/openapi.json

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

Parâmetros

Sem parâmetros.

Respostas

  • 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

Exemplo

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.

Parâmetros

NomeEmTipoObrigatórioDescrição
searchquerystringsimThe term to search for
typequerystring
wordgrammar_patternphrase
nãoRestrict the answer to one entry type
limitqueryintegernão
padrão: 10
pagequeryintegernão
padrão: 1
with_meaningsquerybooleannãoJoin the meanings (with translations, synonyms, antonyms) of every item
padrão: false
with_translationsquerybooleannãoJoin the short translations of every item
padrão: false
translation_languagesquerystring[]
ruesfrdeptzhar
nãoKeep only these translation languages (a repeated key); omit the key for all of them

Respostas

Exemplo

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

Testar no playground

GET/api/v1/words/{word}

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

Parâmetros

NomeEmTipoObrigatórioDescrição
wordpathstringsimHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry

Respostas

Exemplo

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

Testar no playground

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

The meanings of a headword across its entries

Parâmetros

NomeEmTipoObrigatórioDescrição
wordpathstringsimHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry

Respostas

Exemplo

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

Testar no playground

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

The short and per-meaning translations of a headword

Parâmetros

NomeEmTipoObrigatórioDescrição
wordpathstringsimHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry
languagequerystring[]
ruesfrdeptzhar
nãoTranslation languages; no value means all of them

Respostas

Exemplo

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

Testar no playground

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

The inflected forms of a headword across its entries

Parâmetros

NomeEmTipoObrigatórioDescrição
wordpathstringsimHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry

Respostas

Exemplo

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

Testar no playground

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`.

Parâmetros

NomeEmTipoObrigatórioDescrição
wordpathstringsimHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry

Respostas

Exemplo

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

Testar no playground

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`.

Parâmetros

NomeEmTipoObrigatórioDescrição
wordpathstringsimHeadword spelling, case-insensitive (spaces URL-encoded for phrases). An inflected form resolves to its base entry

Respostas

Exemplo

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

Testar no playground

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

One dictionary entry by its numeric id

Parâmetros

NomeEmTipoObrigatórioDescrição
idpathnumbersim

Respostas

Exemplo

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

Testar no playground

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.

Parâmetros

NomeEmTipoObrigatórioDescrição
searchquerystringnãoHeadword prefix, case-insensitive (`ru` lists run, rung, runner, …)
is_obsoletequerybooleannãotrue: obsolete entries only, false: current ones only
part_of_speechquerystring[]
nounverbmodal_verbadjectiveadverbpronounnumeralnumeral_fractionaldeterminerinterjectionarticleprepositionconjunctionletterphrasegrammar_pattern
não
word_levelquerystring[]
A1A2B1B2C1C2
não
language_registerquerystring[]
formalinformalslang
não
categoryquerystring[]
scientifictechnicalmedicallegalbusinessITartpoliticalsportculinary
nãoWords tagged with any of the categories
area_variantquerystring[]
commonbritishamericanaustralian
não
form_of_wordquerystring[]
base_formplural_formpossessive_singular_formpossessive_plural_formpast_simplepast_participlepresent_participlethird_person_singularcomparative_formsuperlative_formobjectpossessive_adjectivepossessive_pronounreflexiveordinalmultiplicative
nãoDefaults to base forms only
padrão: ["base_form"]
cursorquerystringnãoThe `meta.next_cursor` of the previous page; omit for the first page
limitqueryintegernão
padrão: 20
with_meaningsquerybooleannãoJoin the meanings of every word
padrão: false
with_translationsquerybooleannãoJoin the short translations of every word
padrão: false

Respostas

  • 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

Exemplo

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

Testar no playground

GET/api/v1/random

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

Parâmetros

NomeEmTipoObrigatórioDescrição
searchquerystringnãoHeadword prefix, case-insensitive (`ru` lists run, rung, runner, …)
is_obsoletequerybooleannãotrue: obsolete entries only, false: current ones only
part_of_speechquerystring[]
nounverbmodal_verbadjectiveadverbpronounnumeralnumeral_fractionaldeterminerinterjectionarticleprepositionconjunctionletterphrasegrammar_pattern
não
word_levelquerystring[]
A1A2B1B2C1C2
não
language_registerquerystring[]
formalinformalslang
não
categoryquerystring[]
scientifictechnicalmedicallegalbusinessITartpoliticalsportculinary
nãoWords tagged with any of the categories
area_variantquerystring[]
commonbritishamericanaustralian
não
form_of_wordquerystring[]
base_formplural_formpossessive_singular_formpossessive_plural_formpast_simplepast_participlepresent_participlethird_person_singularcomparative_formsuperlative_formobjectpossessive_adjectivepossessive_pronounreflexiveordinalmultiplicative
nãoDefaults to base forms only
padrão: ["base_form"]

Respostas

Exemplo

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

Testar no playground

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.

Corpo da requisição · WordsBatchV1ReqDTO

NomeTipoObrigatórioDescrição
wordsstring[]simHeadword spellings, 50 at most, each matched like GET /words/{word} (case-insensitively; an inflected form resolves to its base entry)

Respostas

Exemplo

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

Testar no playground

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.

Corpo da requisição · CreateSuggestionV1ReqDTO

NomeTipoObrigatórioDescrição
headwordstringsimThe headword the report is about; must exist in the dictionary
word_idobjectnãoId of the entry (part of speech) the report points at, from the word answers
kindstring
reportedit
não
padrão: "report"
messageobjectnãoWhat is wrong and, ideally, what would be right. Required for a report; an optional comment on an edit
editsSuggestionEditV1DTO[]nãoEdit flow: every touched target of the word form with its proposed values

Respostas

Exemplo

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

Testar no playground

Esquemas

SuggestionEditV1DTO

NomeTipoObrigatórioDescrição
target_typestring
wordmeaningmeaning_translationshort_translation
sim
target_idnumbersimId of the targeted row, from the word answers
changesobjectsimThe 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

NomeTipoObrigatórioDescrição
headwordstringsimThe headword the report is about; must exist in the dictionary
word_idobjectnãoId of the entry (part of speech) the report points at, from the word answers
kindstring
reportedit
não
padrão: "report"
messageobjectnãoWhat is wrong and, ideally, what would be right. Required for a report; an optional comment on an edit
editsSuggestionEditV1DTO[]nãoEdit flow: every touched target of the word form with its proposed values

WordsBatchV1ReqDTO

NomeTipoObrigatórioDescrição
wordsstring[]simHeadword spellings, 50 at most, each matched like GET /words/{word} (case-insensitively; an inflected form resolves to its base entry)

PublicSearchV1MetaT

NomeTipoObrigatórioDescrição
countintegersim
fuzzybooleansim
short_termbooleansim

PublicSearchV1ResT

NomeTipoObrigatórioDescrição
dataPublicSearchWordV1T[]sim
metaPublicSearchV1MetaTsim

PublicSearchWordV1T

NomeTipoObrigatórioDescrição
idintegersim
wordstringsim
part_of_speechEnPartOfSpeechEsim
form_of_wordEnWordFormsEsim
is_obsoletebooleansim
is_abbreviationbooleansim
word_levelWordLevelE | nullsim
area_variantEnAreaVariantsE | nullsim
categoriesCategoryE[]sim
language_registerLanguageRegisterE | nullsim
descriptionstring | nullsim
transcriptionstring | nullsim
patternstring[] | nullsim
noun___irregular_pluralboolean | nullsim
noun___uncountableboolean | nullsim
noun___is_properboolean | nullsim
noun___always_pluralboolean | nullsim
verb___is_irregularboolean | nullsim
verb___transitivityEnVerbTransitivityE | nullsim
verb___is_phrasalboolean | nullsim
verb___phrasal_object_patternEnPhrasalObjectPatternE | nullsim
base_phrasalstring | nullsim
formsPublicWordV1FormT[]sim
similaritynumbernão

EnPartOfSpeechE

Um de: noun, verb, modal_verb, adjective, adverb, pronoun, numeral, numeral_fractional, determiner, interjection, article, preposition, conjunction, letter, phrase, grammar_pattern

EnWordFormsE

Um de: 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

Um de: A1, A2, B1, B2, C1, C2

EnAreaVariantsE

Um de: common, british, american, australian

CategoryE

Um de: scientific, technical, medical, legal, business, IT, art, political, sport, culinary

LanguageRegisterE

Um de: formal, informal, slang

EnVerbTransitivityE

Um de: transitive, intransitive, both

EnPhrasalObjectPatternE

Um de: no_object, inseparable, separable, separable_pronoun_only

PublicWordV1FormT

NomeTipoObrigatórioDescrição
idintegersim
wordstringsim
form_of_wordEnWordFormsEsim
area_variantEnAreaVariantsEsim
transcriptionstring | nullsim

PublicSearchDetailedV1MetaT

NomeTipoObrigatórioDescrição
pageintegersim
limitintegersim
has_morebooleansim
fuzzybooleansim
short_termbooleansim

PublicSearchDetailedV1ResT

NomeTipoObrigatórioDescrição
dataPublicWordV1T[]sim
metaPublicSearchDetailedV1MetaTsim

PublicWordV1T

NomeTipoObrigatórioDescrição
meaningsPublicWordV1MeaningT[]sim
short_translationsPublicWordV1ShortTranslationT[]sim
phrasal_variantsstring[]não
idintegersim
wordstringsim
part_of_speechEnPartOfSpeechEsim
form_of_wordEnWordFormsEsim
is_obsoletebooleansim
is_abbreviationbooleansim
word_levelWordLevelE | nullsim
area_variantEnAreaVariantsE | nullsim
categoriesCategoryE[]sim
language_registerLanguageRegisterE | nullsim
descriptionstring | nullsim
transcriptionstring | nullsim
patternstring[] | nullsim
noun___irregular_pluralboolean | nullsim
noun___uncountableboolean | nullsim
noun___is_properboolean | nullsim
noun___always_pluralboolean | nullsim
verb___is_irregularboolean | nullsim
verb___transitivityEnVerbTransitivityE | nullsim
verb___is_phrasalboolean | nullsim
verb___phrasal_object_patternEnPhrasalObjectPatternE | nullsim
base_phrasalstring | nullsim
formsPublicWordV1FormT[]sim
similaritynumbernão

PublicWordV1MeaningT

NomeTipoObrigatórioDescrição
idintegersim
sort_orderintegersim
titlestringsim
definitionstringsim
is_obsoletebooleansim
examplesstring[]sim
categoriesCategoryE[]sim
meaning_levelWordLevelE | nullsim
area_variantEnAreaVariantsEsim
language_registerLanguageRegisterE | nullsim
translationsPublicWordV1MeaningTranslationT[]sim
synonymsstring[]sim
antonymsstring[]sim

PublicWordV1MeaningTranslationT

NomeTipoObrigatórioDescrição
idintegersim
languageAvailableTranslationLanguagesEsim
titlestringsim
definitionstringsim
variants_of_wordsstring[]sim

AvailableTranslationLanguagesE

Um de: ru, es, fr, de, pt, zh, ar

PublicWordV1ShortTranslationT

NomeTipoObrigatórioDescrição
idintegersim
languageAvailableTranslationLanguagesEsim
descriptionstringsim
variants_of_wordsstring[]sim

PublicWordV1ResT

NomeTipoObrigatórioDescrição
dataPublicWordV1Tsim

PublicHeadwordV1MetaT

NomeTipoObrigatórioDescrição
wordstringsim
countintegersim

PublicHeadwordV1ResT

NomeTipoObrigatórioDescrição
dataPublicWordV1T[]sim
metaPublicHeadwordV1MetaTsim

PublicMeaningV1T

NomeTipoObrigatórioDescrição
word_idintegersim
part_of_speechEnPartOfSpeechEsim
idintegersim
sort_orderintegersim
titlestringsim
definitionstringsim
is_obsoletebooleansim
examplesstring[]sim
categoriesCategoryE[]sim
meaning_levelWordLevelE | nullsim
area_variantEnAreaVariantsEsim
language_registerLanguageRegisterE | nullsim
translationsPublicWordV1MeaningTranslationT[]sim
synonymsstring[]sim
antonymsstring[]sim

PublicHeadwordMeaningsV1ResT

NomeTipoObrigatórioDescrição
dataPublicMeaningV1T[]sim
metaPublicHeadwordV1MetaTsim

PublicWordFormV1T

NomeTipoObrigatórioDescrição
word_idintegersim
part_of_speechEnPartOfSpeechEsim
idintegersim
wordstringsim
form_of_wordEnWordFormsEsim
area_variantEnAreaVariantsEsim
transcriptionstring | nullsim

PublicHeadwordFormsV1ResT

NomeTipoObrigatórioDescrição
dataPublicWordFormV1T[]sim
metaPublicHeadwordV1MetaTsim

PublicShortTranslationV1T

NomeTipoObrigatórioDescrição
word_idintegersim
part_of_speechEnPartOfSpeechEsim
idintegersim
languageAvailableTranslationLanguagesEsim
descriptionstringsim
variants_of_wordsstring[]sim

PublicMeaningTranslationV1T

NomeTipoObrigatórioDescrição
meaning_idintegersim
word_idintegersim
part_of_speechEnPartOfSpeechEsim
idintegersim
languageAvailableTranslationLanguagesEsim
titlestringsim
definitionstringsim
variants_of_wordsstring[]sim

PublicWordLinkV1T

NomeTipoObrigatórioDescrição
meaning_idintegersim
wordstringsim
word_idintegersim
part_of_speechEnPartOfSpeechEsim

PublicHeadwordLinksV1ResT

NomeTipoObrigatórioDescrição
dataPublicWordLinkV1T[]sim
metaPublicHeadwordV1MetaTsim

PublicHeadwordTranslationsV1T

NomeTipoObrigatórioDescrição
short_translationsPublicShortTranslationV1T[]sim
meaning_translationsPublicMeaningTranslationV1T[]sim

PublicHeadwordTranslationsV1ResT

NomeTipoObrigatórioDescrição
metaPublicHeadwordV1MetaTsim
dataPublicHeadwordTranslationsV1Tsim

PublicWordsBatchItemV1T

NomeTipoObrigatórioDescrição
wordstringsim
countintegersim
entriesPublicWordV1T[]sim

PublicWordsBatchV1MetaT

NomeTipoObrigatórioDescrição
countintegersim
not_foundstring[]sim

PublicWordsBatchV1ResT

NomeTipoObrigatórioDescrição
dataPublicWordsBatchItemV1T[]sim
metaPublicWordsBatchV1MetaTsim

PublicWordsV1MetaT

NomeTipoObrigatórioDescrição
limitintegersim
has_morebooleansim
next_cursorstring | nullsim

PublicWordsV1ResT

NomeTipoObrigatórioDescrição
dataPublicWordV1T[]sim
metaPublicWordsV1MetaTsim

PublicDatasetCountsV1T

NomeTipoObrigatórioDescrição
entriesintegersim
wordsintegersim
phrasesintegersim
grammar_patternsintegersim
word_formsintegersim
meaningsintegersim
meaning_translationsintegersim
short_translationsintegersim

PublicMetaV1T

NomeTipoObrigatórioDescrição
api_versionstringsim
app_versionstringsim
dataset_versionstring | nullsim
licensestringsim
license_urlstringsim
attributionstringsim
noticestringsim
countsPublicDatasetCountsV1Tsim
available_languagesPublicAvailableLanguagesV1Tsim

PublicAvailableLanguagesV1T

NomeTipoObrigatórioDescrição
sourcestring[]sim
translationsAvailableTranslationLanguagesE[]sim

PublicMetaV1ResT

NomeTipoObrigatórioDescrição
dataPublicMetaV1Tsim

PublicSuggestionCreatedV1T

NomeTipoObrigatórioDescrição
idintegersim
statusstringsim

PublicSuggestionCreatedV1ResT

NomeTipoObrigatórioDescrição
dataPublicSuggestionCreatedV1Tsim

PublicApiErrorT

NomeTipoObrigatórioDescrição
statusCodenumbersim
messagestringsim
errorbooleansim