STANDS4 Web Services:
Dictionary Definitions API
The Dictionary Definitions API from STANDS4 enables you to get dictionary definitions information for a given word.
Request URL:
https://www.stands4.com/services/v2/defs.php
Request parameters:
Parameter | Value | Required | Default | Description |
---|---|---|---|---|
uid | string | Y | Your API user id |
|
tokenid | string | Y | Your valid developer token id |
|
word | string | Y | The word you would like to get dictionary definitions for |
|
format | string | N | xml | The format in which you want the result returned (xml or json) |
Sample request URL:
https://www.stands4.com/services/v2/defs.php?uid=1001&tokenid=tk324324&word=consistent&format=xml
Response elements:
Element | Description |
---|---|
results | Contains all of the query responses |
result | Contains each individual response |
term | The term this result is referring to |
definition | A definition for the specific sense |
partofspeech | adj, verb etc |
example | Usage example for the word |
Sample response:
<?xml version="1.0" encoding="UTF-8"?>
<results>
<result>
<term>consistent, uniform</term>
<definition>the same throughout in structure or composition</definition>
<partofspeech>adj</partofspeech>
<example>bituminous coal is often treated as a consistent and homogeneous product</example>
</result>
</results>
{
"results": {
"result": {
"term": "consistent, uniform",
"definition": "the same throughout in structure or composition",
"partofspeech": "adj",
"example": "bituminous coal is often treated as a consistent and homogeneous product"
}
}
}
Example use cases:
CodeProject features a comprehensive article on how to retrieve and parse XML formatted API data in general using STANDS4's Definitions API.
Roman Movchan created a cool Vocabulary Builder game, based on our Definitions API - check it out here.
Want to use this service?
The Definitions API service is free to use for up to 100 queries per day.
For a premium commercial license, please contact us.