# Miniprogram

> Un miniprograma o minijuego de WeChat.

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

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 original (gh_…). |
| `app_id` | string \| null | AppID (wx…), used to open or link to it; null where none is given. |
| `name` | string | Nombre. |
| `description` | string \| null | Descripción. |
| `icon_url` | string \| null | Icono. |
| `owner_name` | string \| null | La empresa u organismo que la gestiona. |
| `owner_verified` | boolean \| null | Si el titular está verificado. |
| `recent_users` | integer \| null | Recent users as the platform shows them; a figure like 1万+ is a lower bound; null where none is shown. |
| `is_game` | boolean \| null | Si es un minijuego. |
| `ext` | object | Datos adicionales propios de la plataforma. Solo se devuelven con view=full. |

## Endpoints that return a Miniprogram

- [Búsqueda de miniprogramas de WeChat](https://okdata.online/apis/wechat/miniprograms/search/) (`wechat.miniprograms.search`): $0.15 per call · about 25 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`, `app_id`, `name`, `description`, `owner_name`
- standard: `icon_url`, `owner_verified`, `recent_users`, `is_game`
- full: `ext`
