news-it (it.xnews.jp) が外部に公開しているエンドポイントの一覧と curl 例。JSON は /api/* 配下、HTML 一覧は /articles、フィード / sitemap / robots は従来通りの URL で配信される。
GET /api/articles
Accept: application/json
記事一覧 (最新 50 件、ページネーション対応)。レスポンスは { articles: [...], pagination: { page, pageSize, totalCount, totalPages } }。クエリ: ?page=N / ?tag=foo。
例:
curl https://it.xnews.jp/api/articles | jq .
curl "https://it.xnews.jp/api/articles?tag=ai&page=2"
GET /feed.xml
RSS 2.0 (最新 50 件)。Feedly / Inoreader / NetNewsWire 等の RSS リーダーで購読可能。
GET /sitemap.xml
Sitemap protocol 0.9。全記事の URL を含む。
GET /robots.txt
クローラ向けの sitemap 参照。サイト自体は <meta name="robots" content="noindex"> でインデックス除外中。
GET /api/articles/{slug}.md
記事の元 Markdown (R2 から直接配信、frontmatter 含む)。HTML 版は /articles/{slug}。