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

历史上的今天图片版

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

接口描述

免费API提供“历史上的今天”图片版功能,用户可以查看与历史事件相关的图片信息,适用于历史教育、内容展示和社交平台集成。

请求参数

请求示例

var axios = require('axios')

var config = {
  method: 'get',
  url: 'https://v2.xxapi.cn/api/historypic?return-302'
}

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

返回示例

{
  "code": 200,
  "msg": "数据请求成功",
  "data": "https://cdn.xxhzm.cn/v2api/cache/history/2024-11-02.jpg"
}