请求地址
https://www.doutula.com/api/search?keyword=[关键字]&mime=0&page=2
keyword
- 关键词page
- 分页(最大支持50页)mime
- 图片类型(0: 所有, 1: 动图, 2: 静图, mime方式过虑有漏网的,使用的可以自行过虑一下。)
GET 或 POST
{
"status": 1,
"data": {
"list": [
{
"out_id": 1624522,
"desc": "哈哈(金馆长)",
"image_url": "https://ws4.sinaimg.cn/bmiddle/9150e4..."
},
{
"out_id": 8557071,
"desc": "金馆长抽烟",
"image_url": "https://ws2.sinaimg.cn/bmiddle/9150e4..."
},
{
"out_id": 5051678,
"desc": "金馆长猫脸",
"image_url": "https://ws1.sinaimg.cn/bmiddle/9150e4..."
}
],
"more": 1
}
}
其中 more
表示下一页是否还有数据,0
就别再请求了。
{
"status": 0,
"data": {
"list": [],
"more": 0
}
}
此 API 的详细用法,参考 https://www.doutula.com/apidoc
由 Kim 整理
更多 API 请访问 公共 API 收集帖(长期更新) 技巧 | 捷径社区