News, as JSON.
A free, read-only static API generated by YZ News. Data refreshes with each scheduled news refresh.
Endpoints
GET
/api/v1/index.jsonAPI metadata and endpoint discovery.
GET
/api/v1/news.jsonThe current curated edition, including titles, summaries, sources, categories, dates, and links.
GET
/api/v1/briefing.jsonThe AI-curated Top 5 daily briefing.
GET
/api/v1/topics.jsonTrending headline topics and mention counts.
Example
async function fetchNews() {
try {
const response = await fetch("https://news.yuxianzhang.com/api/v1/news.json");
// Check if the HTTP status code is 200–299
if (!response.ok) {
throw new Error(`HTTP error! Status: ${response.status}`);
}
const edition = await response.json();
console.log(edition.articles);
} catch (error) {
console.error("Failed to fetch news:", error);
}
}
// Call the function
fetchNews();
Notes
This is a free, read-only API. Data refreshes daily and does not support custom queries or authentication.
Article text and reporting belong to their original publishers. AI-generated summaries are based on publisher-provided excerpts.