GETDefine Word
https://api-dictionary.dataandapis.com/v1/define/{word}
Path parameters
| Parameter | Example | |
|---|---|---|
| word | dog | Required |
Query parameters
| Parameter | Example | |
|---|---|---|
| pos | noun | Optional |
Example request
curl "https://api-dictionary.dataandapis.com/v1/define/dog?pos=noun" \
-H "X-Api-Key: YOUR_API_KEY"// npm install dataandapis
import { DataAndApis } from "dataandapis";
const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY
const data = await client.dictionary.defineWord({ word: "dog", pos: "noun" });{
"word": "dog",
"definition_count": 8,
"parts_of_speech": [
"noun",
"verb"
],
"definitions": {
"noun": [
{
"sense": 1,
"definition": "a member of the genus Canis (probably descended from the common wolf) that has been domesticated by man since prehistoric times; occurs in many breeds",
"examples": [
"the dog barked all night"
]
},
{
"sense": 3,
"definition": "informal term for a man",
"examples": [
"you lucky dog"
]
}
]
},
"source": "Princeton WordNet 3.1"
}



