
Search for Entries with Suggestions
Search for an entry matching specified criteria and spelling suggestions if the word can't be found
Searches the Longman Dictionary of Contemporary English for entries which match the supplied criteria, if no match is found and one of the two 'suggest' parameters is set then it will suggest words which you may have misspelt. The result is returned in the format requested.
The syntax of the API is as follows:
http://api.pearson.com/longman/dictionary/entry.[format]?q=[search pattern]&suggest=[suggest]&suggestWordsOnly=[suggestWordsOnly]&apikey=[apikey]&jsonp=[callback name]
where:
- [search pattern] is the text to search for and can include * as a wildcard character
- [suggest] if true then suggestions are made if an exact match is not found
- [suggestWordsOnly] if true then suggestions are made if an exact match is not found, however only the word and the ID is returned (not the whole entry for each suggestion)
- [format] is the representation to be used for returning the results, can be one of the following:
- html
- xml
- json
- [callback name] when the format requested is json, the jsonp parameter is used to wrap the response in a jsonp style callback
Note: When accessing the full production API, remember to use your full production API key instead of your sandbox API key