Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@greatghoul
Last active January 8, 2019 03:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greatghoul/b74a941575088f9eeaa0944f867475a9 to your computer and use it in GitHub Desktop.
Save greatghoul/b74a941575088f9eeaa0944f867475a9 to your computer and use it in GitHub Desktop.
斗图啦的 API | 捷径社区

斗图啦的 API

请求地址

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 收集帖(长期更新) 技巧 | 捷径社区

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment