antvaset.com
/
dictionary-api

Dictionary API

Query the Dictionary programmatically via an API.

Dictionary API reference

The Dictionary API is organized around JSON-RPC. The API accepts JSON-encoded request bodies and returns JSON-encoded responses.

The API is available at https://www.antvaset.com/api.

There is no authentication. The API is free to use for any purpose.

dictionary.query
Query the dictionary for a word or phrase. The query string is matched against the spelling of the entries.
The response contains an array of matching entries. Each entry contains the spelling and the IPA of the word or phrase. The response may contain multiple entries if the query string matches multiple entries.

Parameters

{
Query string
query: string,
Language code
lang: string
}

Result

{
Matching entries
entries: {
Text (spelling)
text: string,
IPA transcription, with tokens separated by vertial bars
ipa: string,
Variant, e.g. UK or US
variant?: string
}[]
}
dictionary.stats
Get statistics about the dictionary. The response contains the number of entries per language edition.

Parameters

No parameters.

Result

{
Language editions
editions: {
Language code
lang: string,
Number of entries
entryCount: number
}[]
}

Thanks for stopping by my digital playground! If you want to say hi, you can reach out to me on LinkedIn or via email. I'm always keen to chat and connect.

If you really-really like my work, you can support me by buying me a coffee.