WordReference APIThesaurus JSONHere is an example of the JSON output for a thesaurus entry, /thesaurus/house: {
"term0": {
"term": "house",
"senses": {
"0": {
"sensetext": "A habitation",
"synonyms": {
"0": {
"synonym": "home",
"context": ""
},
"1": {
"synonym": "dwelling",
"context": ""
},
"2": {
"synonym": "residence",
"context": ""
}
}
},
"1": {
"sensetext": "A large business establishment",
"synonyms": {
"0": {
"synonym": "organization",
"context": ""
},
"1": {
"synonym": "firm",
"context": ""
},
"2": {
"synonym": "company",
"context": ""
}
}
},
"2": {
"sensetext": "A family",
"synonyms": {
"0": {
"synonym": "line",
"context": ""
},
"1": {
"synonym": "family",
"context": ""
}
}
},
"3": {
"sensetext": "A legislative body",
"synonyms": {
"0": {
"synonym": "congress",
"context": ""
},
"1": {
"synonym": "parliament",
"context": ""
}
}
}
}
},
"Lines": "End Reached",
"END": true
}
Just like the other dictionaries, the API will return a series of zero or more objects of the type
Inside each entry-block, a string and an object are returned. The string,
Within each sense object, a string,
The numbered objects inside the synonyms object contain a pair of strings, If the context string for a particular synonym is blank, there is no context. Additionally, if the sensetext string is blank, that means there are no differentiated senses for that particular term. For example, the term "abode" has only one sense object, and it has no sensetext.
At the end of the response, the pairs, Return to the main API documentation page. Questions? Comments? Suggestions? Send us a message.
|