谷歌词典 API 不起作用——还有其他解决方案吗? [英] Google Dictionary API not working--is there another solution?

查看:27
本文介绍了谷歌词典 API 不起作用——还有其他解决方案吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 Google Dictionary API 并通过以下网址访问它:

I have been using the Google Dictionary API and accessing it with this url:

http://www.google.com/dictionary/json?callback=a&q='test'&sl=en&tl=en&restrict=pr,de&client=te

http://www.google.com/dictionary/json?callback=a&q='test'&sl=en&tl=en&restrict=pr,de&client=te

然而,现在这个 url 会抛出一个错误.

However, now this url throws an error.

然后,我找到了这个网站:http://google-dictionary.so8848.com/meaning?word=test 这很好用.在他们的网站上挖掘,我在他们的代码中发现了与我相同的网址.然而,当复制并粘贴到浏览器时也会引发错误.

Then, I found this site: http://google-dictionary.so8848.com/meaning?word=test and this works fine. Digging around their site I found the same url as mine in their code. Yet, when copied and pasted into a browser also throws an error.

所以,我相信这个网站仍然可以访问这个 Google 字典 API,尽管我不知道要尝试什么 url 和/或是否有人对不同的字典 API 有建议.

So, I believe somehow this site is still able to access this Google dictionary API though I don't know what url to try and/or if anyone has a suggestion for a different Dictionary API.

推荐答案

这项服务不再免费,它仍然是相同的 API,但您必须付费才能让您在您的网站或应用程序中使用它.最好使用替代解决方案,例如

This service is no longer free, it is still the same API, but you have to pay to let you use it in your site or application. better to use an alternative solution like

http://glosbe.com/a-api

这篇关于谷歌词典 API 不起作用——还有其他解决方案吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆