Skip to main content

Base URL

所有聚合 API 的基础请求地址:
https://api.qhaigc.net/v2/apis
所有接口均支持通过 encoding 参数指定返回格式:json(默认)、text(纯文本)、markdown(AI 友好)。

调用示例

curl --location --request GET 'https://api.qhaigc.net/v2/apis/60s?date&encoding&force-update'

🕘 周期资讯

GET /v2/apis/60s
参数类型必填说明
datestring指定日期,格式如 2025-03-01
encodingstring返回格式:text / json / markdown / image / image-proxy
force-updateboolean强制刷新数据源缓存
curl --location --request GET 'https://api.qhaigc.net/v2/apis/60s?encoding=json'
如果需要 RSS 订阅,可以使用 GET /v2/apis/60s/rss 端点。
GET /v2/apis/ai-news
参数类型必填说明
datestring新闻日期,格式如 2025-11-11
allstring设为 1 拉取全部日期数据
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/ai-news?encoding=json'
GET /v2/apis/bing
参数类型必填说明
encodingstring返回格式:text / json / image / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/bing?encoding=json'
GET /v2/apis/exchange-rate
参数类型必填说明
currencystring基准货币,默认 CNY
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/exchange-rate?currency=CNY&encoding=json'
GET /v2/apis/today-in-history
参数类型必填说明
datestring指定日期,格式 YYYY-MM-DD
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/today-in-history?encoding=json'
数据来源于百度百科。
GET /v2/apis/epic
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/epic?encoding=json'

🍱 实用功能

GET /v2/apis/weather
参数类型必填说明
querystring查询地区名称
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/weather?query=北京&encoding=json'
天气数据来源于腾讯天气。
GET /v2/apis/weather/forecast
参数类型必填说明
querystring查询地区名称
daysinteger预报天数,最大 8 天
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/weather/forecast?query=上海&days=3&encoding=json'
天气数据来源于腾讯天气。
GET /v2/apis/moyu
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/moyu?encoding=json'
GET /v2/apis/lyric
参数类型必填说明
querystring歌曲名称
cleanboolean是否隐藏附加信息
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/lyric?query=晴天&encoding=json'
歌曲、歌词数据来自 QQ 音乐。
GET /v2/apis/fanyi
参数类型必填说明
textstring源文本
fromstring源语言,默认 auto
tostring目标语言,默认 auto
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/fanyi?text=你好世界&to=en&encoding=json'
数据来源于有道翻译。查询支持的语言列表:GET /v2/apis/fanyi/langs
GET /v2/apis/baike
参数类型必填说明
wordstring词条名称
encodingstring返回格式
curl --location --request GET 'https://api.qhaigc.net/v2/apis/baike?word=西游记&encoding=json'
GET /v2/apis/whois
参数类型必填说明
domainstring查询域名
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/whois?domain=example.com&encoding=json'
优先使用 RDAP 协议数据,降级到常规 Whois 本地递归查询。
GET /v2/apis/qrcode
参数类型必填说明
textstringURL 或文本内容
sizeinteger尺寸,默认 256
levelstring容错等级:L / M / Q / H,默认 M
encodingstring返回格式
curl --location --request GET 'https://api.qhaigc.net/v2/apis/qrcode?text=https://qhaigc.net&size=256'
GET /v2/apis/ip
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/ip?encoding=json'
GET /v2/apis/og
参数类型必填说明
urlstring目标链接
curl --location --request GET 'https://api.qhaigc.net/v2/apis/og?url=https://github.com'
GET /v2/apis/hash
参数类型必填说明
contentstring待处理的文本内容
curl --location --request GET 'https://api.qhaigc.net/v2/apis/hash?content=你好👋'
GET /v2/apis/health
参数类型必填说明
heightinteger身高(cm)
weightinteger体重(kg)
ageinteger年龄
genderstring性别:male / female
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/health?height=175&weight=70&age=25&gender=male&encoding=json'
多维度分析身体健康状态,包括 BMI、理想体重、预估体脂、预估三围、健康建议等。
GET /v2/apis/password
参数类型必填说明
lengthinteger密码长度
numbersstring是否包含数字
uppercasestring是否包含大写字母
lowercasestring是否包含小写字母
symbolsstring是否包含特殊字符
exclude_similarstring排除相似字符
exclude_ambiguousstring排除模糊字符
encodingstring返回格式
curl --location --request GET 'https://api.qhaigc.net/v2/apis/password?length=16&encoding=json'
GET /v2/apis/password/check
参数类型必填说明
passwordstring待检测密码
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/password/check?password=MyP@ss123&encoding=json'
GET /v2/apis/color/random
参数类型必填说明
colorstring指定颜色值,如 #33AAFF
encodingstring返回格式:text / json / html / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/color/random?encoding=json'
GET /v2/apis/color/palette
参数类型必填说明
colorstring基础颜色值,如 #33AAFF
encodingstring返回格式:text / json / html / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/color/palette?color=%2333AAFF&encoding=json'
GET /v2/apis/gold-price
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/gold-price?encoding=json'
GET /v2/apis/fuel-price
参数类型必填说明
regionstring查询地区
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/fuel-price?encoding=json'
GET /v2/apis/olympics
参数类型必填说明
idstring奥运赛事 ID,默认当前最新赛事
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/olympics?encoding=json'
GET /v2/apis/lunar
curl --location --request GET 'https://api.qhaigc.net/v2/apis/lunar'
该接口目前仍在开发中,功能可能不完整。

🔥 热门榜单

GET /v2/apis/douyin
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/douyin?encoding=json'
GET /v2/apis/rednote
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/rednote?encoding=json'
GET /v2/apis/weibo
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/weibo?encoding=json'
GET /v2/apis/bili
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/bili?encoding=json'
GET /v2/apis/zhihu
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/zhihu?encoding=json'
GET /v2/apis/toutiao
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/toutiao?encoding=json'
GET /v2/apis/baidu/hot
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/baidu/hot?encoding=json'
GET /v2/apis/baidu/teleplay
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/baidu/teleplay?encoding=json'
GET /v2/apis/baidu/tieba
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/baidu/tieba?encoding=json'
GET /v2/apis/quark
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/quark?encoding=json'
数据来自夸克 7x24 小时实时热点。
GET /v2/apis/dongchedi
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/dongchedi?encoding=json'
GET /v2/apis/ncm-rank/list
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/ncm-rank/list?encoding=json'
GET /v2/apis/ncm-rank/{id}
参数类型必填说明
idstring排行榜 ID,如热歌榜为 3778678
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/ncm-rank/3778678?encoding=json'
GET /v2/apis/hacker-news/{type}
参数类型必填说明
typestring类型:new / top / best
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/hacker-news/top?encoding=json'
GET /v2/apis/maoyan/all/movie
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/maoyan/all/movie?encoding=json'
GET /v2/apis/maoyan/realtime/movie
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/maoyan/realtime/movie?encoding=json'
GET /v2/apis/maoyan/realtime/tv
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/maoyan/realtime/tv?encoding=json'
GET /v2/apis/maoyan/realtime/web
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/maoyan/realtime/web?encoding=json'
GET /v2/apis/douban/weekly/movie
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/douban/weekly/movie?encoding=json'
GET /v2/apis/douban/weekly/tv_chinese
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/douban/weekly/tv_chinese?encoding=json'
GET /v2/apis/douban/weekly/tv_global
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/douban/weekly/tv_global?encoding=json'
GET /v2/apis/douban/weekly/show_chinese
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/douban/weekly/show_chinese?encoding=json'
GET /v2/apis/douban/weekly/show_global
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/douban/weekly/show_global?encoding=json'

🎤 消遣娱乐

GET /v2/apis/hitokoto
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/hitokoto?encoding=json'
GET /v2/apis/luck
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/luck?encoding=json'
GET /v2/apis/duanzi
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/duanzi?encoding=json'
GET /v2/apis/dad-joke
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/dad-joke?encoding=json'
GET /v2/apis/fabing
参数类型必填说明
namestring对象名字,默认”主人”
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/fabing?name=启航&encoding=json'
GET /v2/apis/answer
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/answer?encoding=json'
GET /v2/apis/kfc
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/kfc?encoding=json'
GET /v2/apis/awesome-js
参数类型必填说明
encodingstring返回格式:text / json / markdown
curl --location --request GET 'https://api.qhaigc.net/v2/apis/awesome-js?encoding=json'
GET /v2/apis/changya无需参数,直接返回音频。
curl --location --request GET 'https://api.qhaigc.net/v2/apis/changya'

通用返回格式

所有接口(除特殊格式外)统一使用以下 JSON 结构返回:
{
  "code": 200,
  "message": "success",
  "data": {
    // 具体数据内容
  }
}
时间戳字段提供两种格式:带 _at 后缀的为 13 位毫秒时间戳(如 updated_at),不带后缀的为日期时间字符串(如 updated)。链接字段统一命名为 link,封面图字段统一命名为 cover