# Miniprogram

> 一個微信小程式或小遊戲。

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

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

| 欄位 | 型別 | 說明 |
|---|---|---|
| `id` | string | 原始 ID（gh_ 開頭）。 |
| `app_id` | string \| null | AppID（wx 開頭），用於開啟或跳轉；未給出時為 null。 |
| `name` | string | 名稱。 |
| `description` | string \| null | 簡介。 |
| `icon_url` | string \| null | 圖示。 |
| `owner_name` | string \| null | 運營主體名稱。 |
| `owner_verified` | boolean \| null | 主體是否認證。 |
| `recent_users` | integer \| null | 平台顯示的近期使用人數；「1萬+」這類是下限；未顯示時為 null。 |
| `is_game` | boolean \| null | 是否為小遊戲。 |
| `ext` | object | 平台特有欄位，只在 view=full 時返回。 |

## 返回 Miniprogram 的介面

- [微信小程式搜尋](https://okdata.online/zh/apis/wechat/miniprograms/search/) (`wechat.miniprograms.search`): $0.15/次 · 每頁約 25 條結果

## 各 view 返回的欄位

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

- compact：`id`, `app_id`, `name`, `description`, `owner_name`
- standard：`icon_url`, `owner_verified`, `recent_users`, `is_game`
- full：`ext`
