# Flathub on Onekey > 5 endpoints for Flathub (5 stable, 0 beta), 1 to 5 credits each. Category: Developer platforms. One key, one JSON shape. Base URL: https://api.onekey.dev Auth: header `x-api-key: `. Call shape: `GET /v1/{platform}/{endpoint}?{params}`. Every response is `{success, data, metadata, error}`; check `success` first. Cost is in `metadata.credits_charged`. Free when served from cache (0.2 credit for a cached response over 100 KB). Failed and not-found calls are refunded. Status: stable = verified against the live source; beta = not yet verified, fields may be missing. Page: https://onekey.dev/platforms/flathub Reference (Markdown): https://onekey.dev/docs/api/flathub.md All docs: https://onekey.dev/llms.txt ## Canonical fields returned Unified-schema fields (same names on every platform), with how many of the 5 mapped Flathub endpoints return each: - `entity.id` (string): 5 - `entity.description` (string): 4 - `entity.name` (string): 4 - `package.license` (string): 3 - `author.displayName` (string): 2 - `media.thumbnailUrl` (URL): 2 - `entity.tags` (list of strings): 1 - `entity.updatedAt` (ISO 8601 date): 1 - `entity.url` (URL): 1 - `package.version` (string): 1 - plus 7 platform-specific fields under `ext.` ## Endpoints ### flathub.app Flathub app details by application id. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/flathub/app?app_id=org.mozilla.firefox` with header `x-api-key: YOUR_API_KEY` - Parameters: - `app_id` (string, required): Flathub application id (reverse DNS) - Fields returned: `entity.id`, `entity.name`, `entity.description`, `package.license`, `entity.url`, `package.version`, `entity.tags`, `media.thumbnailUrl`, `ext.entitySummary`, `ext.developer` - Reference: https://onekey.dev/docs/api/flathub/app.md ### flathub.popular Popular Flathub apps. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/flathub/popular` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.id`, `entity.name`, `entity.description`, `media.thumbnailUrl`, `ext.installsLastMonth`, `ext.developer` - Reference: https://onekey.dev/docs/api/flathub/popular.md ### flathub.recently_added Recently added Flathub applications. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/flathub/recently_added` with header `x-api-key: YOUR_API_KEY` - Parameters: none - Fields returned: `entity.id`, `entity.name`, `entity.description`, `author.displayName`, `package.license`, `ext.iconUrl` - Reference: https://onekey.dev/docs/api/flathub/recently_added.md ### flathub.search Search Flathub applications. - Price: 5 credits per fresh call. Status: stable. Returns: a list. - Request: `GET https://api.onekey.dev/v1/flathub/search?q=gimp` with header `x-api-key: YOUR_API_KEY` - Parameters: - `q` (string, required): Search query - Fields returned: `entity.id`, `entity.name`, `entity.description`, `author.displayName`, `package.license`, `ext.iconUrl`, `ext.installsLastMonth` - Reference: https://onekey.dev/docs/api/flathub/search.md ### flathub.summary Flathub install size and architectures of an application. - Price: 1 credit per fresh call. Status: stable. Returns: one record. - Request: `GET https://api.onekey.dev/v1/flathub/summary?app_id=org.gimp.GIMP` with header `x-api-key: YOUR_API_KEY` - Parameters: - `app_id` (string, required): Flatpak app id - Fields returned: `entity.id`, `entity.updatedAt`, `ext.installedSize`, `ext.downloadSize`, `ext.arches` - Reference: https://onekey.dev/docs/api/flathub/summary.md ## Sample request ```bash curl "https://api.onekey.dev/v1/flathub/app?app_id=org.mozilla.firefox" \ -H "x-api-key: YOUR_API_KEY" ```