December 2017
Intermediate to advanced
260 pages
7h 34m
English
The definition API provides an endpoint to get the meaning of the word.
The following URL exposes the definitions API. We will call this URL with a GET request and pass the actual input word instead of {word}:
GET https://wordsapiv1.p.mashape.com/words/{word}/definitions
For example, to get the meaning of the word infinity the endpoint definition will be:
GET https://wordsapiv1.p.mashape.com/words/infinity/definitions
The following code snippet represents the request example:
curl --get --include 'https://wordsapiv1.p.mashape.com/words/infinity/definitions' \
-H 'X-Mashape-Key: YOUR_API_KEY' \
-H 'Accept: application/json'
The following code line represents the response headers:
Content-Type: application/json
The following ...
Read now
Unlock full access