小小API是一个稳定 快速 的 API 接口服务   点击加入QQ群

答案之书

GEThttps://v2.xxapi.cn/api/answers

接口描述

探索答案之书免费API,轻松集成随机答案生成功能到您的应用程序或网站中。

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://v2.xxapi.cn/api/answers?question=我该继续吗'
}

axios(config)
  .then(function (response) {
    console.log(JSON.stringify(response.data))
  })
  .catch(function (error) {
    console.log(error)
  })

返回示例

{
  "code": 200,
  "msg": "数据请求成功",
  "data": {
    "description_en": "Cultivate sympathy and understanding; care about others' feelings.",
    "description_zh": "培养同情心和理解力,关心他人的感受。",
    "title_en": "Cultivate empathy.",
    "title_zh": "培养同理心"
  },
  "request_id": "4da102f7ff2fce5aeeac0578"
}