zoukankan      html  css  js  c++  java
  • 查词API[转载]

    API – 在线词典

    1.金山词霸查词接口Beta版

    接口:

    http://dict-co.iciba.com/api/dictionary.php?w=$userSearch

    说明:
    $userSearch 为用户要查的词或短句,请使用url转码。

    Xml标签说明:

    • 返回xml以<dict>开始以</dict>结束
    • Key 用户查询内容
    • Ps 音标
    • Pron 发音
    • Pos 词性
    • Acceptation 解释
    • Sent 短句
    • Orig 短句内容
    • Trans 翻译

    注意:
    多个词性会有多个解释
    当前版本的短句会返回5条记录

    2.QQ词典

    http://dict.qq.com/dict?q=[word]

    3.有道翻译API

    在使用有道翻译API前,需要先申请key。使用API key时,请求频率限制为每小时1000次,超过限制会被封禁。

    数据接口

    http://fanyi.youdao.com/openapi.do?keyfrom=&key=&type=data&doctype=&version=1.1&q=要翻译的文本

    版本:1.1,请求方式:get,编码方式:utf-8
    主要功能:中英互译,同时获得有道翻译结果和有道词典结果(可能没有)
    参数说明:
    type – 返回结果的类型,固定为data
    doctype – 返回结果的数据格式,xml或json或jsonp
    version – 版本,当前最新版本为1.1
    q – 要翻译的文本,不能超过200个字符,需要使用utf-8编码
    errorCode:
    0 – 正常
    20 – 要翻译的文本过长
    30 – 无法进行有效的翻译
    40 – 不支持的语言类型
    50 – 无效的key

    4.The Merriam-Webster Dictionary(Developer Center)

    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. Make your applications better by integrating our authoritative definitions, etymologies, audio pronunciations, synonyms and antonyms, and more.

    The Merriam-Webster Dictionary API is free as long as it is for non-commercial use, usage does not exceed 1000 queries per day per API key, and use is limited to two reference APIs.

    5.Google Translate API

    With Google Translate, you can dynamically translate text between thousands of language pairs. Google Translate API is available as a paid service.

    6.百度翻译API

    将指定内容从指定源语言语种翻译为指定目标语言语种。需要开发者在百度连接平台上注册得到的授权API key。支持中英,英中,中日,日中翻译。

    7.Microsoft Translator

    需要付费。

    Microsoft Translator delivers automatic translation (Machine Translation) of a text into a specified language. It is a state-of-the-art statistical machine translation system translating between any of the supported languages, and powering millions of translations every day. It also provides additional functionality such as detection of the language of a given text.

    8.Cambridge Dictionaries Online API

    The Cambridge Dictionaries Online API gives you access to a range of dictionaries and dictionary resources. We currently offer these titles:

    • Cambridge Advanced Learner’s Dictionary
    • Cambridge Dictionary of American English
    • Cambridge Business English Dictionary
    • Cambridge Learner’s English-Turkish Dictionary
    • Cambridge Learner’s Dictionary.

    Our methods let you make a search, get an entry, get pronunciations, get a thesaurus topic and get a Word of the Day, among other things.

    9.Dictionary.com API

    Here is the content available for free through our API as long as it is not for commercial use:

    • Words (1 million words including derivatives and inflections)
    • Definitions (shorted versions to optimize space on mobile devices)
    • Phonetic pronunciation
    • Synonyms
    • Antonyms
    • Spelling suggestions
    • Word of the day
    • Random word generator
    • Slang dictionary
    • Etymology (word origin)
    • Example sentences

    And here are some additional things that are available for a fee, just contact us at api@dictionary.com if you are interested in these data sets:

    • Audio pronunciation
    • Question of the day database
    • Reverse dictionary
    • Complete dictionary with long definitions

    10.Longman Dictionary API(Pearson Developers Community)

    The Longman Dictionary of Contemporary English is the flagship Longman dictionary. It is a best-selling title – in both print and digital formats, voted one of the best English dictionaries by iPhone© app users. The database is the most up to date dictionary of the English language aimed at non-native speakers of English.

  • 相关阅读:
    《深入了解 Linq to SQL》之对象的标识 —— 麦叔叔呕心呖血之作
    闲聊吉日与水军
    谈谈需求的变更
    ALinq BUG & 版本发布
    Linq to SQL (ALinq) 也来AOP —— ALinq Inject 博客园首发
    使用Orachard与Bootstrap建站心得
    一位软件作者的吐嘈——读《Google Reader猝死启示录:互联网无法永远免费》有感
    被神化的架构和被夸大的CTRL+C、CTRL+V
    我对程序员技能的一些认识
    又见ORM跑分 —— 对ORM跑分的吐嘈
  • 原文地址:https://www.cnblogs.com/buxianghe/p/2834692.html
Copyright © 2011-2022 走看看