跳转到主要内容
Qhaigc provides a rich collection of utility APIs for common data needs — daily news digests, real-time weather, trending charts, translation, QR code generation, and much more. Every endpoint lives under the /v2/apis path and returns the same predictable JSON envelope, so you can integrate any of them with minimal glue code.

Base URL

https://api.qhaigc.net/v2/apis
Every endpoint accepts an encoding query parameter that controls the response format:
ValueDescription
jsonStructured JSON object (default)
textPlain text string
markdownAI-friendly Markdown

Uniform Response Format

Unless otherwise noted, every endpoint wraps its payload in the following envelope:
{
  "code": 200,
  "message": "success",
  "data": { ... }
}
Timestamp fields ending in _at (e.g. updated_at) are 13-digit millisecond Unix timestamps. Fields without the suffix (e.g. updated) are human-readable datetime strings. Link fields are named link; cover image fields are named cover.

Quick Start

curl "https://api.qhaigc.net/v2/apis/60s?encoding=json"

Endpoints

Daily 60-Second World News — GET /v2/apis/60s

A daily digest of world news, readable in 60 seconds.
ParameterTypeRequiredDescription
datestringNoTarget date in YYYY-MM-DD format
encodingstringNojson / text / markdown / image / image-proxy
force-updatebooleanNoForce a cache refresh from the upstream source
curl "https://api.qhaigc.net/v2/apis/60s?encoding=json"
You can also subscribe via RSS at GET /v2/apis/60s/rss.

AI Industry News — GET /v2/apis/ai-news

A curated daily briefing of AI industry news.
ParameterTypeRequiredDescription
datestringNoNews date in YYYY-MM-DD format
allstringNoSet to 1 to fetch all available dates
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/ai-news?encoding=json"

Bing Daily Wallpaper — GET /v2/apis/bing

Retrieves the Bing daily wallpaper image and metadata.
ParameterTypeRequiredDescription
encodingstringNojson / text / image / markdown
curl "https://api.qhaigc.net/v2/apis/bing?encoding=json"

Live Currency Exchange Rates — GET /v2/apis/exchange-rate

Returns current exchange rates relative to a base currency.
ParameterTypeRequiredDescription
currencystringNoBase currency code (default: CNY)
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/exchange-rate?currency=CNY&encoding=json"

Historical Events Today — GET /v2/apis/today-in-history

Returns notable historical events that occurred on today’s date (or a specified date). Data sourced from Baidu Baike.
ParameterTypeRequiredDescription
datestringNoTarget date in YYYY-MM-DD format
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/today-in-history?encoding=json"

Epic Games Weekly Free Games — GET /v2/apis/epic

Returns the current free games available on the Epic Games Store.
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/epic?encoding=json"

Real-Time Weather — GET /v2/apis/weather

Returns current weather conditions for a city or region. Data sourced from Tencent Weather.
ParameterTypeRequiredDescription
querystringNoCity or region name
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/weather?query=Beijing&encoding=json"

Weather Forecast — GET /v2/apis/weather/forecast

Returns a multi-day weather forecast (up to 8 days). Data sourced from Tencent Weather.
ParameterTypeRequiredDescription
querystringNoCity or region name
daysintegerNoNumber of forecast days (max 8)
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/weather/forecast?query=Shanghai&days=3&encoding=json"

Work Slack Daily Digest — GET /v2/apis/moyu

A light-hearted daily digest to help you take a break at work.
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/moyu?encoding=json"

Song Lyrics Search — GET /v2/apis/lyric

Searches for song lyrics by song name. Data sourced from QQ Music.
ParameterTypeRequiredDescription
querystringYesSong name to search for
cleanbooleanNoStrip supplementary metadata from the response
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/lyric?query=Sunny+Day&encoding=json"

Translation — GET /v2/apis/fanyi

Translates text between 109 supported languages. Data sourced from Youdao Translate.To retrieve the full list of supported language codes, call GET /v2/apis/fanyi/langs.
ParameterTypeRequiredDescription
textstringYesSource text to translate
fromstringNoSource language code (default: auto)
tostringNoTarget language code (default: auto)
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/fanyi?text=Hello+world&to=zh&encoding=json"

Baidu Encyclopedia Lookup — GET /v2/apis/baike

Returns a summary for a term from Baidu Baike (Baidu’s encyclopedia).
ParameterTypeRequiredDescription
wordstringYesTerm to look up
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/baike?word=Journey+to+the+West&encoding=json"

WHOIS Domain Lookup — GET /v2/apis/whois

Returns WHOIS registration data for a domain. Uses RDAP protocol where available, falling back to standard recursive WHOIS.
ParameterTypeRequiredDescription
domainstringYesDomain name to look up
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/whois?domain=example.com&encoding=json"

QR Code Generator — GET /v2/apis/qrcode

Generates a QR code image from a URL or any text string.
ParameterTypeRequiredDescription
textstringNoURL or text content to encode
sizeintegerNoImage size in pixels (default: 256)
levelstringNoError correction level: L / M / Q / H (default: M)
encodingstringNoResponse format
curl "https://api.qhaigc.net/v2/apis/qrcode?text=https://qhaigc.net&size=256"

Public IP Address — GET /v2/apis/ip

Returns the caller’s public IP address and associated metadata.
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/ip?encoding=json"

Open Graph Metadata — GET /v2/apis/og

Fetches Open Graph (OG) metadata from any public URL.
ParameterTypeRequiredDescription
urlstringYesTarget URL to fetch OG metadata from
curl "https://api.qhaigc.net/v2/apis/og?url=https://github.com"

Hash / Compress / Decompress — GET /v2/apis/hash

Computes hash digests and performs compression/decompression on text content.
ParameterTypeRequiredDescription
contentstringYesText content to process
curl "https://api.qhaigc.net/v2/apis/hash?content=hello"

Body Health Analysis — GET /v2/apis/health

Performs a multi-dimensional health analysis. Returns BMI, ideal weight, estimated body fat percentage, and health recommendations.
ParameterTypeRequiredDescription
heightintegerYesHeight in centimeters
weightintegerYesWeight in kilograms
ageintegerYesAge in years
genderstringYesmale or female
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/health?height=175&weight=70&age=25&gender=male&encoding=json"

Password Generator — GET /v2/apis/password

Generates a random password with configurable character sets and length.
ParameterTypeRequiredDescription
lengthintegerNoPassword length
numbersstringNoInclude digits
uppercasestringNoInclude uppercase letters
lowercasestringNoInclude lowercase letters
symbolsstringNoInclude special characters
exclude_similarstringNoExclude visually similar characters (e.g. 0 and O)
exclude_ambiguousstringNoExclude characters that are ambiguous in some fonts
encodingstringNoResponse format
curl "https://api.qhaigc.net/v2/apis/password?length=16&encoding=json"

Password Strength Checker — GET /v2/apis/password/check

Evaluates the strength of a given password.
ParameterTypeRequiredDescription
passwordstringYesPassword string to evaluate
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/password/check?password=MyP%40ss123&encoding=json"

Random Color / Color Converter — GET /v2/apis/color/random

Returns a random color, or converts a provided color value across multiple formats (HEX, RGB, HSL, etc.).
ParameterTypeRequiredDescription
colorstringNoInput color value, e.g. #33AAFF
encodingstringNojson / text / html / markdown
curl "https://api.qhaigc.net/v2/apis/color/random?encoding=json"

Color Palette Generator — GET /v2/apis/color/palette

Generates a harmonious color palette or scheme from a base color.
ParameterTypeRequiredDescription
colorstringNoBase color value, e.g. #33AAFF
encodingstringNojson / text / html / markdown
curl "https://api.qhaigc.net/v2/apis/color/palette?color=%2333AAFF&encoding=json"

Live Gold Price — GET /v2/apis/gold-price

Returns current gold prices.
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/gold-price?encoding=json"

Fuel Price by Region — GET /v2/apis/fuel-price

Returns current fuel prices for a specified region.
ParameterTypeRequiredDescription
regionstringNoRegion name to query
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/fuel-price?encoding=json"

Olympic Medal Standings — GET /v2/apis/olympics

Returns the medal standings for an Olympic Games event.
ParameterTypeRequiredDescription
idstringNoOlympic event ID (defaults to the most recent event)
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/olympics?encoding=json"

Random Quote (Hitokoto) — GET /v2/apis/hitokoto

Returns a random one-line quote (一言) from the community-curated Hitokoto database.
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/hitokoto?encoding=json"

Random Fortune — GET /v2/apis/luck

Returns a random fortune reading.
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/luck?encoding=json"

Random Joke — GET /v2/apis/duanzi

Returns a random humorous joke.
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/duanzi?encoding=json"

Random Cold Joke — GET /v2/apis/dad-joke

Returns a random dad joke or cold joke.
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/dad-joke?encoding=json"

Random “Fabing” Literature — GET /v2/apis/fabing

Returns a randomly generated piece of absurdist “fabing” creative writing addressed to a named subject.
ParameterTypeRequiredDescription
namestringNoName of the subject (default: 主人)
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/fabing?name=Qhaigc&encoding=json"

Random Book of Answers — GET /v2/apis/answer

Returns a random oracle-style answer, inspired by the classic “Book of Answers.”
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/answer?encoding=json"

Random KFC Copywriting — GET /v2/apis/kfc

Returns a randomly generated piece of KFC-themed internet copywriting.
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/kfc?encoding=json"

Random JS Quirk Quiz — GET /v2/apis/awesome-js

Returns a random JavaScript quirk or brain-teaser from the wtfjs collection.
ParameterTypeRequiredDescription
encodingstringNojson / text / markdown
curl "https://api.qhaigc.net/v2/apis/awesome-js?encoding=json"

Random Singing Audio — GET /v2/apis/changya

Returns a randomly selected singing audio clip directly as an audio stream. No parameters required.
curl "https://api.qhaigc.net/v2/apis/changya" --output clip.mp3