转贴:在线词典API

转贴:在线词典API

默认分类 2010-11-26 14:51:10 阅读39 评论0   字号: 订阅

1.海词

http://api.dict.cn/ws.php?utf8=true&q=#{word}

返回格式XML

<?xml version="1.0" encoding="UTF-8" ?> 
<dict> 
  <key>word</key> 
  <lang>ec</lang> 
  <audio>http://dict.cn/mp3.php?q=efVw7</audio> 
  <pron>w&#601;:d</pron> 
  <def>n. 词,单词,消息,诺言 vt. 用词语表达</def> 
  <sent> 
    <orig>Could we have a word before you go to the meeting?</orig> 
    <trans>你去开会之前,咱们能私下说句话吗?</trans> 
  </sent> 
  <sent> 
    <orig>Tell me what happened in your own words.</orig> 
    <trans>用你自己的话把发生的事情告诉我。</trans> 
  </sent> 
  <sent> 
    <orig>My friend sent word that he was well.</orig> 
    <trans>我朋友捎来口信说他很好。</trans> 
  </sent> 
</dict> 

2.爱词霸

http://dict-co.iciba.com/api/dictionary.php?w=#{word}

返回格式XML

<?xml version="1.0" encoding="UTF-8"?>
<dict num="219" id="219" name="219">
    <key>will</key>
    <ps>wil,w??l,??l,l</ps>
    <pron>http://res.iciba.com/resource/amp3/1/8/18218139eec55d83cf82679934e5cd75.mp3</pron>
    <pos>n.</pos>
    <acceptation>意志, 决心, 意向, 遗嘱</acceptation>
    <pos>v.</pos>
    <acceptation>aux.将, 愿意, 必须</acceptation>
    <sent>
        <orig>We will.</orig>
        <pron>http://res.iciba.com/resource/phrase_mp3/1/e/1ece4c394ade54ec3327883821c256db.mp3</pron>
        <trans>我们会的。</trans>
    </sent>
    <sent>
        <orig>ill will</orig>
        <pron>http://res.iciba.com/resource/phrase_mp3/3/4/34f9c8e6b4f1e88b6efba3000c166f67.mp3</pron>
        <trans>恶意</trans>
    </sent>
    <sent>
        <orig>Will they?</orig>
        <pron>http://res.iciba.com/resource/phrase_mp3/2/0/20d580950b625b80d872bb449fad880e.mp3</pron>
        <trans>是吗?</trans>
    </sent>
    <sent>
        <orig>Will do.</orig>
        <pron>http://res.iciba.com/resource/phrase_mp3/1/0/105d2e8ca45f93a6eb40a48fc3447d92.mp3</pron>
        <trans>好的。</trans>
    </sent>
    <sent>
        <orig>Thanks.I will.</orig>
        <pron>http://res.iciba.com/resource/phrase_mp3/b/d/bd9e3c70eaa8b4fea8b3a282124edbd4.mp3</pron>
        <trans>好的,多谢。</trans>
    </sent>
</dict>

3.QQ词典

http://dict.qq.com/dict?q=#{word}

返回格式JSON

{
    "local": [
        {
            "word": "word",
            "sd": "0f39bcd7f6df740236abce2cc7f696d2",
            "pho": [
                "w&#601;:d"
            ],
            "des": [
                {
                    "p": "n.",
                    "d": "消息, 词, 诺言, 话, 命令, 字"
                },
                {
                    "p": "vt.",
                    "d": "用言辞表达, 用言词表达"
                }
            ],
            "sen": [
                {
                    "p": "n.",
                    "s": [
                        {
                            "es": "He is a man of his <b>word</b>.",
                            "cs": "他是个信守诺言的人。"
                        },
                        {
                            "es": "The general gave the <b>word</b> to execute the deserters.",
                            "cs": "将军下令处决逃兵。"
                        },
                        {
                            "es": "I hope you will always respect your <b>word</b>.",
                            "cs": "我希望你能始终遵守自已的诺言。"
                        },
                        {
                            "es": "Can I have a <b>word</b> with you?",
                            "cs": "我能和你说几句话吗?"
                        }
                    ]
                }
            ],
            "mor": [
                {
                    "c": "名词复数",
                    "m": "words"
                },
                {
                    "c": "动词过去式",
                    "m": "worded"
                },
                {
                    "c": "过去分词",
                    "m": "worded"
                },
                {
                    "c": "现在分词",
                    "m": "wording"
                }
            ],
            "syn": [
                {
                    "p": "v.",
                    "c": [
                        "put",
                        "express",
                        "voice",
                        "tell",
                        "say",
                        "communicate",
                        "phrase"
                    ]
                },
                {
                    "p": "n.",
                    "c": [
                        "parole"
                    ]
                }
            ],
            "ph": [
                {
                    "phs": "my word upon it",
                    "phd": "我向你保证确是这样"
                },
                {
                    "phs": "word for word",
                    "phd": "逐字地"
                },
                {
                    "phs": "by word of mouth",
                    "phd": "口头地"
                },
                {
                    "phs": "send word",
                    "phd": "通知"
                },
                {
                    "phs": "from the word go",
                    "phd": "从一开始"
                },
                {
                    "phs": "in other words",
                    "phd": "换句话说, 也就是说"
                },
                {
                    "phs": "give one&#39;s word of honour",
                    "phd": "以名誉担保"
                },
                {
                    "phs": "give words to",
                    "phd": "用言语表达"
                },
                {
                    "phs": "upon my word",
                    "phd": "嗳呀, 我向你保证确是这样"
                },
                {
                    "phs": "be as good as one&#39;s word",
                    "phd": "守信"
                },
                {
                    "phs": "break one&#39;s word",
                    "phd": "失信"
                },
                {
                    "phs": "leave word",
                    "phd": "留言"
                },
                {
                    "phs": "eat one&#39;s words",
                    "phd": "认错道歉"
                },
                {
                    "phs": "on one&#39;s word of honour",
                    "phd": "以名誉担保"
                }
            ]
        }
    ],
    "netdes": [
        {
            "word": "word",
            "des": [
                {
                    "mf": "word",
                    "d": "字",
                    "f": 732,
                    "tag": "net",
                    "s": "wom 一次写入存储器 | <b>word 字</b> | word address 字地址"
                },
                {
                    "mf": "word",
                    "d": "单词",
                    "f": 642,
                    "tag": "net",
                    "s": "词类 part of speech | <b>单词 word</b> | 实词 notional word"
                },
                {
                    "mf": "Word",
                    "d": "字长",
                    "f": 390,
                    "tag": "net",
                    "s": "Wireless revolution无线革命 | <b>Word字长</b> | Word processing文字处理"
                },
                {
                    "mf": "word",
                    "d": "词",
                    "f": 275,
                    "tag": "net",
                    "s": "woof (狗的) 吠声 (4A9) | <b>word 词 (4A8)</b> | work 工作;劳动 (5A4)"
                },
                {
                    "mf": "word",
                    "d": "abbr. w; 字",
                    "f": 1,
                    "tag": "abbr",
                    "s": "-1"
                }
            ]
        }
    ],
    "netsen": [
        {
            "cs": "A: 哪一个单词大家总是把它念错?",
            "es": "A: What is the <b>word</b> that everybody always says wrong? "
        },
        {
            "cs": "女人在任何争论上都拥有最后的裁决权。",
            "es": "英文: A woman has the last <b>word</b> in any argument. "
        },
        {
            "cs": "说出口的话,扔出去的石头/一言既出,驷马难追。",
            "es": "①A <b>word</b> and a stone let go cannot be recalled. "
        },
        {
            "cs": "诚实人的话像他的契约一样靠得住。",
            "es": "An honest man&amp;apos;s <b>word</b> is as good as his bond. "
        },
        {
<pre style="padding-right: 0px; padding-left: 0px; font-size: 8pt; padding-bottom: 0px; margin: 0em; overflow: visible; widt
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值