# NewsArticle

> Google 新聞裡的一篇報道：標題、連結、媒體、作者和釋出時間。

網頁版：https://okdata.online/zh/docs/objects/news_article/

所有平台同一種結構。平台沒有的欄位為 null，meta.unavailable 會說明原因。用 fields= 只取需要的欄位。

| 欄位 | 型別 | 說明 |
|---|---|---|
| `rank` | integer | 在列表裡的位置，從 1 開始。 |
| `title` | string | 標題。 |
| `url` | string | 文章地址。 |
| `source` | string \| null | 媒體名稱。 |
| `authors` | string[] \| null | 作者（Google 列出的話）。 |
| `published_at` | string \| null | 釋出時間，ISO 8601，UTC。 |
| `thumbnail_url` | string \| null | 縮圖。 |

## 返回 NewsArticle 的介面

- [Google 新聞搜尋](https://okdata.online/zh/apis/google/news/search/) (`google.news.search`): $0.005/次 · 每頁約 100 條結果

## 各 view 返回的欄位

每一級 view 都包含上一級的欄位。`view=compact` 最精簡；`full` 會在 `ext` 里加上平台特有欄位。

- compact：`rank`, `title`, `url`, `source`, `authors`, `published_at`
- standard：`thumbnail_url`
- full：—
