YZ News · API v1

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.json

API metadata and endpoint discovery.

GET
/api/v1/news.json

The current curated edition, including titles, summaries, sources, categories, dates, and links.

GET
/api/v1/briefing.json

The AI-curated Top 5 daily briefing.

GET
/api/v1/topics.json

Trending 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.