# Topic

> Una página de hashtag o tema y sus cifras.

Canonical page: https://okdata.online/docs/objects/topic/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `id` | string | ID; pass it as is to the endpoints that take one. |
| `name` | string | Nombre del tema. |
| `url` | string \| null | Enlace a la página del tema. |
| `description` | string \| null | What the topic page says it is about; null when it says nothing. |
| `metrics` | TopicMetrics | Cifras en el momento de la consulta. |
| `ext` | object | Datos adicionales propios de la plataforma. Solo se devuelven con view=full. |

### TopicMetrics

| Field | Type | Description |
|---|---|---|
| `views` | integer \| null | Vistas de la página del tema. |
| `posts` | integer \| null | Publicaciones del tema. |

## Endpoints that return a Topic

- [Detalle de tema de Xiaohongshu](https://okdata.online/apis/xiaohongshu/topics/get/) (`xiaohongshu.topics.get`): $0.02 per call
- [Douyin hashtag search](https://okdata.online/apis/douyin/hashtags/search/) (`douyin.hashtags.search`): $0.02 per call · about 20 results per page
- [Weibo topic search](https://okdata.online/apis/weibo/topics/search/) (`weibo.topics.search`): $0.002 per call · about 20 results per page
- [Zhihu topic search](https://okdata.online/apis/zhihu/topics/search/) (`zhihu.topics.search`): $0.002 per call · about 20 results per page

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `id`, `name`, `url`, `description`, `metrics`
- standard: —
- full: `ext`
