Because the Google Dictionary API is deprecated (e.g., following)
http://www.google.com/dictionary/json?callback=a&sl=en&tl=en&q=love
and has been replaced with define (e.g., following)
https://www.google.com/#q=define+love
Does anybody know how to use/invoke the "Google define" API in java?
Here is the chrome extension which does similar thing.
https://chrome.google.com/webstore/detail/google-dictionary-by-goog/mgijmajocgfcbeboacabfgobmjgjcoja
As an alternative, are there any open source dictionary APIs? I found Oxford (OED), Cambridge, Merriam-Webster, Wordnik APIs which provide APIs in subscription models.
Also found Wordnet 3.1 which is pretty old. Not sure if it being updated or not.
Google does not provide API for Google Dictionary.
The Merriam-Webster Dictionary API gives developers access to a comprehensive resource of dictionary and thesaurus content as well as specialized medical, Spanish, ESL, and student-friendly vocabulary.
Free, immediate accessFor the first time, we're offering you free, self-service access to our dictionary data so you can quickly and easily incorporate our lexical data in your apps via one single API.
Unfortunately, like others have said, the Google Dictionary API is deprecated.
As I needed a Google Dictionary API for my project, I decided to create one.
I scraped the web page for the URL https://www.google.com/#q=define+term
where term
is any word you want to get meaning of, and created the API. You can find it here.
The basic syntax of a URL request to the API is shown below:
https://api.dictionaryapi.dev/api/v2/entries/<--language_code-->/<--word-->
As an example, to get definition of English word hello, you can send request to:
https://api.dictionaryapi.dev/api/v2/entries/en/hello
The API also provides other meanings of the word, example sentences, and synonyms, if any.
If you want me to include any other details, please comment and I will happily extend the API to cover your needs.
The source code is on GitHub.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With