news/article
已启用媒体的文章会通过其他 TweetStream 事件所用的同一 WebSocket 发送。
新闻文章类型
typescript
type NewsSource = {
id: string;
name: string;
};
type NewsMedia = {
url: string;
type?: 'image' | 'video';
caption?: string;
};
type NewsArticle = {
source: NewsSource;
url: string;
title: string;
publishedAt: string;
receivedAt: number;
modifiedAt?: string;
primaryCategory?: string;
categories: string[];
author?: string;
keywords: string[];
description?: string;
summary?: string;
media: NewsMedia[];
content?: string;
language?: string;
copyright?: string;
};新闻文章事件
json
{
"v": 1,
"t": "news",
"op": "article",
"id": "news_0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef",
"ts": 1787786858123,
"d": {
"source": {
"id": "bbc-news",
"name": "BBC News"
},
"url": "https://www.bbc.com/news/articles/example",
"title": "Markets open after the holiday",
"publishedAt": "2026-08-26T23:27:38.000Z",
"receivedAt": 1787786858123,
"primaryCategory": "Business",
"categories": ["Business"],
"author": "BBC News",
"keywords": ["markets"],
"description": "A brief description supplied by the publication.",
"summary": "Markets reopened after the holiday.",
"media": [
{
"url": "https://ichef.bbci.co.uk/news/example.jpg",
"type": "image",
"caption": "A market floor"
}
],
"content": "The stored article text, when available.",
"language": "en",
"copyright": "BBC"
}
}