爱狐API

简洁易用的API接口服务

GET /api/v1/randimg
返回随机图片,支持重定向和JSON两种模式
https://www1.ifoxapi.com/api/v1/randimg
请求参数
  • type string
    type=json 返回JSON格式
返回示例
{"content":"...","device_type":"pc","image_url":"...","success":true}
GET /api/v1/headimg
返回随机头像图片
https://www1.ifoxapi.com/api/v1/headimg
返回示例
直接返回图片文件
GET /api/v1/yiyan
返回随机一言文本
https://www1.ifoxapi.com/api/v1/yiyan
请求参数
  • type string
    指定类型:动画/文学/游戏
返回示例
{"category_id":5,"commit_from":"web","created_at":1625675072,"created_date":"Thu, 08 Jul 2021 00:24:32 GMT","creator":"亭外花","creator_uid":9661,"from":"原创","from_who":"北城不夏","hitokoto":"在放弃之前,成功的可能性永远不会归零。","id":7386,"import_time":"Fri, 13 Feb 2026 15:28:24 GMT","length":19,"reviewer":4756,"type":"e","uuid":"eb51ac20-0f3a-44d6-be4a-c908e78ef03b"}
GET /api/v1/getip
获取请求端的真实IP地址,支持代理穿透
https://www1.ifoxapi.com/api/v1/getip
返回示例
192.168.1.1
GET /api/today
查询今天是否是节假日
https://www1.ifoxapi.com/api/today
返回示例
{"date":"2024-06-20","is_holiday":true,"name":"工作日","type":"工作日"}
GET /api/check/2024-06-20
获取请求端的真实IP地址,支持代理穿透
https://www1.ifoxapi.com/api/check/2024-06-20
返回示例
{"date":"2024-06-20","is_holiday":true,"name":"工作日","type":"工作日"}