lookup
/lookup
allows you to perform dictionary lookups via headwords. It is equivalent to the lookup CLI command. Results are returned only as JSON.
Example Usage
curl "http://localhost:5005/lookup?dictionary=wikieng&query=dog&query=cat"
Parameters
Name | Description | Default Value | Optional? |
---|---|---|---|
dictionary | The alias of the dictionary to use (added via dictionaries add). | Only if a single dictionary is being served. | |
query | The query to lookup. You can pass this parameter multiple times. | ❌ | |
follow | Whether to follow entry aliases. | false | ✅ |
split | The split threshold. See the split command. | 0 | ✅ |