翻译

https://glosbe.com/gapi/{function-name}[?[{function-parameter1}={value}[&{function-parameter2}={value}[&{function-parameter3}={value}...]]]]

translate

Parameters

https://glosbe.com/gapi/translate?from=eng&dest=eng&format=json&phrase=beautiful&pretty=true

  • from - (required) language of phrase to translate, values: ISO 693-3 three letter language code, no default, beware: if language is invalid you’ll get server 500 error code in return
  • dest - (required) destination language, values: ISO 693-3 three letter language code, no default
  • phrase - (required) phrase to be translated, values: arbitrary text, no default, case sensitive
  • tm - whether to include examples (make translation memories search), values: ‘true’ or ‘false’, default: ‘false’
  • format - described elsewhere
  • callback - described elsewhere

tm

Parameters

  • from - (required) language of phrase to translate, values: ISO 693-3 three letter language code, no default
  • dest - (required) destination language, values: ISO 693-3 three letter language code, no default
  • phrase - (required) phrase to be searched in existing translated sentences, values: arbitrary text, no default
  • page - page of results to be displayed, values: counted from 1, positive number lower than arbitrary limit - you cannot see results above 200 item, default: 1;
  • pageSize - size of the result page, values: positive number lower or equal 30, default: 30
  • format - described elsewhere
  • callback - described elsewhere

vocabulary

https://corpus.vocabulary.com/api/1.0/examples.json?&query=hyperbole&maxResults=24&startOffset=0&filter=0

  • filter: fiction, arts/culture, news, business, sports, science\med, technology

https://www.vocabulary.com/dictionary/

历史记录

  • 2016-04-24 - 初稿

猜你喜欢


文章标题:Interesting APIs

文章字数:1727

本文作者:Mickir

发布时间:2016-04-24

最后更新:2016-12-06

原始链接:https://mickir.me/blog/Interesting-APIs.html

版权声明: "署名-非商用-相同方式共享 4.0" 转载请保留原文链接及作者。