背单词 RESTful Api 接口
获取单词表
接口地址: https://3yya.com/u/{rel_key}/word/app/words
请求方式: get
请求参数:
参数名 | 类型 | 必填 | 描述 |
---|---|---|---|
page | int | 否 | 默认值:1。返回的页码,从 1 开始。 |
limit | int | 否 | 默认值:10。返回的帖子数。 |
返回参数:
参数名 | 类型 | 说明 |
---|---|---|
amount | int | 单词的总数量。 |
results | array | 单词列表。 |
id | int | 单词 id。 |
word | int | 单词。 |
uk_phonetic | string | 英式音标。 |
us_phonetic | string | 美式音标。 |
uk_phonetic_audio | string | 英式发音地址。 |
us_phonetic_audio | string | 美式发音地址。 |
example_en | string | 例句英文。 |
example_zh | string | 例句中文。 |
example_dict | string | 例句来源。 |
example_audio | string | 例句发音地址。 |
explains | array | 释义数组。 |
pos | string | 词性。 |
trans | string | 解释。 |
JSON 返回示例:
{
amount: 5153,
results: [
{
id: 1,
word: "a",
uk_phonetic: "ə; eɪ",
us_phonetic: "ə; eɪ",
explains: [
{
pos: "art.",
trans: "一;任一;每一",
},
],
example_en: "They had a butler, a cook, and a maid.",
example_zh: "他们有一位管家、一位厨师和一位女仆。",
example_dict: "《柯林斯英汉双解大词典》",
uk_phonetic_audio: "https://qiniu.3yya.com/dict/uk/a.mp3",
us_phonetic_audio: "https://qiniu.3yya.com/dict/us/a.mp3",
example_audio: "https://qiniu.3yya.com/dict/example/a.mp3",
},
],
}