查询英语单词-金山非官方(四)

非官方接口API

非官方接口:http://www.iciba.com/index.php

查询参数:

  • a:固定值 getWordMean
  • c:固定值 search
  • list:以 1,3,4,5,8,9,10,12,13,14,18,21,3003,3005 为字符串进行组合
    • 1:对应 baesInfo 字段,基础释义
    • 3:对应 collins 字段,柯林斯高阶英汉双解学习词典
    • 4:对应 ee_mean 字段,英英词典
    • 5:对应 rade_means 字段,行业词典
    • 8:对应 sentence 字段,双语例句
    • 9:对应 netmean 字段,网络释义
    • 10:对应 auth_sentence 字段,权威例句
    • 12:对应 synonym 字段,同义词
    • 13:对应 antonym 字段,反义词
    • 14:对应 phrase 字段,词组搭配
    • 18:对应 encyclopedia 字段,百科全书
    • 21:对应 cetFour 字段,四级真题
    • 3003:对应 bidec 字段,英汉双向大词典
    • 3005:对应 ushi 字段,例句
  • word:释义单词

案例:查询hello单词

  1. 案例-请求:http://www.iciba.com/index.php?a=getWordMean&c=search&list=1%2C2%2C3%2C4%2C5%2C8%2C9%2C10%2C12%2C13%2C14%2C18%2C21%2C22%2C3003%2C3005&word=hello
  2. 案例-数据:
  1 {
  2   "errno": 0,
  3   "errmsg": "success",
  4   "baesInfo": {
  5     "word_name": "hello",
  6     "is_CRI": 1,
  7     "exchange": {
  8       "word_pl": [
  9         "hellos"
 10       ],
 11       "word_past": [],
 12       "word_done": [],
 13       "word_ing": [],
 14       "word_third": [],
 15       "word_er": [],
 16       "word_est": [],
 17       "word_prep": [],
 18       "word_adv": [],
 19       "word_verb": [],
 20       "word_noun": [],
 21       "word_adj": [],
 22       "word_conn": []
 23     },
 24     "symbols": [
 25       {
 26         "ph_en": "hə'ləʊ",
 27         "ph_am": "həˈloʊ",
 28         "ph_other": "",
 29         "ph_en_mp3": "",
 30         "ph_am_mp3": "http://res.iciba.com/resource/amp3/1/0/5d/41/5d41402abc4b2a76b9719d911017c592.mp3",
 31         "ph_tts_mp3": "http://res-tts.iciba.com/5/d/4/5d41402abc4b2a76b9719d911017c592.mp3",
 32         "parts": [
 33           {
 34             "part": "int.",
 35             "means": [
 36               "哈喽,喂",
 37               "你好,您好",
 38               "表示问候",
 39               "打招呼"
 40             ]
 41           },
 42           {
 43             "part": "n.",
 44             "means": [
 45               "“喂”的招呼声或问候声"
 46             ]
 47           },
 48           {
 49             "part": "vi.",
 50             "means": [
 51               "喊“喂”"
 52             ]
 53           }
 54         ]
 55       }
 56     ],
 57     "translate_type": 1
 58   },
 59   "trade_means": [
 60     {
 61       "word_trade": "计算机",
 62       "word_mean": [
 63         "【信】呼叫"
 64       ]
 65     }
 66   ],
 67   "sentence": [
 68     {
 69       "Network_id": "2305937",
 70       "Network_en": "I answered the phone and this voice went, \"Hello? Is that Alison?\"",
 71       "Network_cn": "我拿起电话,就听到这个声音:“喂?是艾利森吗?”",
 72       "tts_mp3": "http://res-tts.iciba.com/tts_new_dj//9/c/5/9c5d0ff9b35eebb6513dedcbebd1dab2.mp3",
 73       "tts_size": "23K",
 74       "source_type": 0,
 75       "source_id": 0,
 76       "source_title": "普通双语例句"
 77     },
 78     {
 79       "Network_id": "2316006",
 80       "Network_en": "A moment later, Cohen picked up the phone. \"Hello?\"",
 81       "Network_cn": "过了一会儿,科恩接起电话。“喂?”",
 82       "tts_mp3": "http://res-tts.iciba.com/tts_new_dj//3/2/a/32afb35883a6db321dc9fbfb1bce03b0.mp3",
 83       "tts_size": "19K",
 84       "source_type": 0,
 85       "source_id": 0,
 86       "source_title": "普通双语例句"
 87     },
 88     {
 89       "Network_id": "2370456",
 90       "Network_en": "\"Hello, I don't think we've met,\" Robert introduced himself.",
 91       "Network_cn": "“你好,我想我们还没有见过吧,”罗伯特自我介绍道。",
 92       "tts_mp3": "http://res-tts.iciba.com/tts_new_dj//d/d/4/dd4e191c23a5f6e41416d1cbbe9da999.mp3",
 93       "tts_size": "20K",
 94       "source_type": 0,
 95       "source_id": 0,
 96       "source_title": "普通双语例句"
 97     }
 98   ],
 99   "netmean": {
100     "PerfectNetExp": [
101       {
102         "id": "13356",
103         "key": "hello",
104         "exp": "你好",
105         "url": "http://wenku.baidu.com/view/17275e1252d380eb62946d48.html",
106         "bas": 17040,
107         "abs": "小学英语单词表_百度文库 ... Module 4 let′s 让我们 Hello 你好 Goodbye 再见."
108       },
109       {
110         "id": "30576",
111         "key": "hello",
112         "exp": "哈罗",
113         "url": "http://xh.5156edu.com/html3/5555.html",
114         "bas": 6806,
115         "abs": "哈字的解释---在线新华字典 ... 哈雷彗星〖 Halley’scomet;theHalleyComet〗 哈罗〖 hello〗 哈密〖 Kumul;Hami〗."
116       },
117       {
118         "id": "65650",
119         "key": "hello",
120         "exp": "",
121         "url": "http://www.docin.com/p-206550454.html",
122         "bas": 2880,
123         "abs": "初中英语单词表大全2182个带音标 - 豆丁网 ... fifteen 十五 44 hello 喂(问候或唤起注意) 45 please 请 46."
124       },
125       {
126         "id": "121482",
127         "key": "hello",
128         "exp": "您好",
129         "url": "http://wenku.baidu.com/view/39b6ca41336c1eb91a375dcd.html",
130         "bas": 1344,
131         "abs": "做一个有道德的人_百度文库 ... 晚安! 6、老师再见! see you everyone! 、 “您好”“ ”“ Hello” “请”“ ”“ please”."
132       }
133     ],
134     "RelatedPhrase": [
135       {
136         "word": "hello kitty",
137         "list": [
138           {
139             "id": "98200",
140             "key": "hello kitty",
141             "exp": "凯蒂猫",
142             "url": "http://dj.iciba.com",
143             "bas": 1756,
144             "abs": "why hello kitty has no mouth ., 凯蒂猫为什么没有嘴巴."
145           }
146         ]
147       },
148       {
149         "word": "hello summer",
150         "list": [
151           {
152             "id": "9325",
153             "key": "hello summer",
154             "exp": "夏日甜心",
155             "url": "http://www.youtube.com/playlist?list=PLMxdtc9UYU_rdstX2KeqsoF2-UmkwYtDc",
156             "bas": 25873,
157             "abs": "武艺Philip ✰... ... 2011 Dare - As One 敢不敢之在一起 2011 Hello Summer 夏日甜心 2010 Begin To Understand 开始懂了."
158           }
159         ]
160       },
161       {
162         "word": "say hello",
163         "list": [
164           {
165             "id": "323744",
166             "key": "say hello",
167             "exp": "打招呼",
168             "url": "http://www.chinajiaoan.cn/you3/onews9.asp?id=3746",
169             "bas": 368,
170             "abs": "大班英语(学习单词)—幼儿园大班英语教案 ... 5. say good bye( 说再见)。 1. say hello( 打招呼): 2. warm up( 热身运动):."
171           }
172         ]
173       },
174       {
175         "word": "hello baby",
176         "list": [
177           {
178             "id": "19439",
179             "key": "hello baby",
180             "exp": "哈罗宝贝",
181             "url": "http://tw.mag.cnyes.com/Content/20110113/F13FC3E6257749BBAF082DA7DB6474EF.shtml",
182             "bas": 11299,
183             "abs": "目前旗下自有品牌有贝喜力克(Basilic)与哈罗宝贝(Hello Baby),产品则专注于奶嘴、奶瓶、奶粉盒、喂药器与固齿器等小型婴幼 …"
184           },
185           {
186             "id": "40617",
187             "key": "hello baby",
188             "exp": "你好宝贝",
189             "url": "http://zhidao.baidu.com/question/168012638.html",
190             "bas": 4983,
191             "abs": "求英语翻译_百度知道 ... courage to hug 拥抱的勇气 hello baby 你好宝贝 to cuddle 相拥而卧."
192           }
193         ]
194       }
195     ]
196   },
197   "synonym": [
198     {
199       "part_name": "n.",
200       "means": [
201         {
202           "word_mean": "表示问候",
203           "cis": [
204             "greetings",
205             "good",
206             "salutations",
207             "day"
208           ]
209         }
210       ]
211     },
212     {
213       "part_name": "",
214       "means": [
215         {
216           "word_mean": "其他释义",
217           "cis": [
218             "day",
219             "salute",
220             "greeting",
221             "salutation",
222             "good"
223           ]
224         }
225       ]
226     }
227   ],
228   "encyclopedia": {
229     "image": "",
230     "url": "http://baike.baidu.com/view/4741.htm",
231     "content": " 演唱:莱昂纳尔·里奇(Lionel Richie) 这是一首85年的冠军金曲 HELLO I've been alone with you inside my mind And in my dreams I've kissed your lips a thousand times I sometimes see you pass outside my door Hello, is it me you're looking for? I can see it in your eyes I can see it in your smile You're all I've ever wanted, (and) my arms are open wide 'Cause you know just what to say And you know jus"
232   },
233   "collins": [
234     {
235       "entry": [
236         {
237           "posp": "CONVENTION",
238           "tran": "哈罗;你好",
239           "def": "You say 'Hello' to someone when you meet them.",
240           "example": [
241             {
242               "ex": "Hello, Trish...",
243               "tran": "你好,特里茜。",
244               "tts_mp3": "http://res-tts.iciba.com/tts_dj/8/6/4/864e12ad6ce80d24e1ba37e053926db9.mp3",
245               "tts_size": "7K"
246             },
247             {
248               "ex": "Do you want to pop your head in and say hallo to my girlfriend?",
249               "tran": "你要不要进来和我女友打个招呼?",
250               "tts_mp3": "http://res-tts.iciba.com/tts_dj/8/9/a/89a65a15f9484c27baa044eaaae6aa5e.mp3",
251               "tts_size": "18K"
252             }
253           ]
254         },
255         {
256           "posp": "CONVENTION",
257           "tran": "(打电话时的招呼语)喂",
258           "def": "You say 'Hello' to someone at the beginning of a telephone conversation, either when you answer the phone or before you give your name or say why you are phoning.",
259           "example": [
260             {
261               "ex": "A moment later, Cohen picked up the phone. 'Hello?'",
262               "tran": "过了一会儿,科恩接起电话。“喂?”",
263               "tts_mp3": "http://res-tts.iciba.com/tts_dj/5/d/0/5d0adc572a923f70295005dad2c016ef.mp3",
264               "tts_size": "19K"
265             },
266             {
267               "ex": "Hallo, may I speak to Frank, please.",
268               "tran": "喂,我找弗兰克。",
269               "tts_mp3": "http://res-tts.iciba.com/tts_dj/7/f/7/7f7ecf52c91adc778a7f830e82abf9c5.mp3",
270               "tts_size": "15K"
271             }
272           ]
273         },
274         {
275           "posp": "CONVENTION",
276           "tran": "(用于引起别人注意)喂",
277           "def": "You can call 'hello' to attract someone's attention.",
278           "example": [
279             {
280               "ex": "She could see the open door of a departmental office. 'Hello! Excuse me. This is the department of French, isn't it?'...",
281               "tran": "她看到一个系办公室的门开着。“喂!请问,这是法语系,对吗?”",
282               "tts_mp3": "http://res-tts.iciba.com/tts_dj/b/6/f/b6fec747bebb7612e7c87284c50443a4.mp3",
283               "tts_size": "46K"
284             },
285             {
286               "ex": "Very softly, she called out: 'Hallo? Who's there?'",
287               "tran": "她轻声细气喊道:“喂?有人吗?”",
288               "tts_mp3": "http://res-tts.iciba.com/tts_dj/1/8/1/1813d136cd08698cd45940c3e8b72bce.mp3",
289               "tts_size": "20K"
290             }
291           ]
292         }
293       ]
294     }
295   ],
296   "ee_mean": [
297     {
298       "part_name": "Noun",
299       "means": [
300         {
301           "word_mean": "1. an expression of greeting;",
302           "sentences": [
303             {
304               "sentence": "\"every morning they exchanged polite hellos\""
305             }
306           ]
307         }
308       ]
309     }
310   ],
311   "auth_sentence": [
312     {
313       "id": "22993",
314       "content": "Hello - some responses to some of your points.",
315       "link": "http://www.bbc.co.uk/blogs/theeditors/2007/05/suggestions_box.html",
316       "short_link": "http://www.bbc.co.uk/8kw5s",
317       "source": "BBC",
318       "score": "1",
319       "cache_status": "1",
320       "tts_mp3": "http://res-tts.iciba.com/tts_authority/7/4/5/74562d88262e506cebe79879155c345d.mp3",
321       "tts_size": "15.0",
322       "diff": "2",
323       "oral": "1",
324       "res_content": "<b>Hello</b> - some responses to some of your points.",
325       "res_content_con": "Hello - some responses to some of your points.",
326       "res_key": "74562d88262e506cebe79879155c345d",
327       "source_type": 0,
328       "source_id": 0,
329       "source_title": "普通权威例句"
330     },
331     {
332       "id": "58450",
333       "content": "Hello, focus on what's important in life.",
334       "link": "http://online.wsj.com/community/86b3f6ab-6a73-4d5a-b5b4-09c6da4b7a5e/activity",
335       "short_link": "http://asia.wsj.com/yyjsn",
336       "source": "WSJ",
337       "score": "1",
338       "cache_status": "1",
339       "tts_mp3": "http://res-tts.iciba.com/tts_authority/4/5/9/45925c53c74f0554e794ef1301dc7da6.mp3",
340       "tts_size": "15.0",
341       "diff": "1",
342       "oral": "1",
343       "res_content": "<b>Hello</b>, focus on what's important in life.",
344       "res_content_con": "Hello, focus on what's important in life.",
345       "res_key": "45925c53c74f0554e794ef1301dc7da6",
346       "source_type": 0,
347       "source_id": 0,
348       "source_title": "普通权威例句"
349     },
350     {
351       "id": "93924",
352       "content": "I say hello and offer a hand in greeting.",
353       "link": "http://www.thetimes.co.uk/tto/life/article3592197.ece",
354       "short_link": "http://www.thetimes.co.uk/82buh",
355       "source": "THETIMES",
356       "score": "1",
357       "cache_status": "1",
358       "tts_mp3": "http://res-tts.iciba.com/tts_authority/e/4/7/e474cdfb8c160c66794037b75eb2be5b.mp3",
359       "tts_size": "13.0",
360       "diff": "1",
361       "oral": "0",
362       "res_content": "I say <b>hello</b> and offer a hand in greeting.",
363       "res_content_con": "I say hello and offer a hand in greeting.",
364       "res_key": "e474cdfb8c160c66794037b75eb2be5b",
365       "source_type": 0,
366       "source_id": 0,
367       "source_title": "普通权威例句"
368     }
369   ],
370   "bidec": {
371     "word_name": "hello",
372     "parts": [
373       {
374         "part_name": "interj.",
375         "word_id": "20092",
376         "part_id": "26780",
377         "means": [
378           {
379             "word_mean": "",
380             "part_id": "26780",
381             "mean_id": "50506",
382             "sentences": [
383               {
384                 "en": "Hello, Brooks!How are you?",
385                 "cn": "喂, 布鲁克斯!你好吗?"
386               }
387             ]
388           }
389         ]
390       }
391     ]
392   },
393   "jushi": [
394     {
395       "english": "Hello,Brooks!How are you?",
396       "chinese": "喂,布鲁克斯!你好吗?",
397       "mp3": "http://res-tts.iciba.com/tts_synusage/c/2/2/c22734dcdc231e646434c320d81740b4.mp3"
398     },
399     {
400       "english": "Hello, who is speaking, please?",
401       "chinese": "喂,请问是谁呀?",
402       "mp3": "http://res-tts.iciba.com/tts_synusage/b/7/3/b738ffa4f7de074f7916df487d0e10e6.mp3"
403     },
404     {
405       "english": "Hello!Is there anybody there?",
406       "chinese": "喂!有人吗?",
407       "mp3": "http://res-tts.iciba.com/tts_synusage/6/e/4/6e460d1cdd682c180949c39bed30faee.mp3"
408     }
409   ],
410   "_word_flag": 1,
411   "exchanges": [
412     "hellos",
413     "hello"
414   ]
415 }
View Code

英语单词查询Demo

源代码请见Github: https://github.com/Kybs0/SearchWordByYoudao

 

posted @ 2018-11-23 14:25  唐宋元明清2188  阅读(553)  评论(0)    收藏  举报