# Flathub API

> Flathub API on Apizie: 4 endpoints (App, Collection, Install Stats, Search) returned as clean JSON through one API key. 4 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/application:flathub/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `application:flathub`
- Category: Application
- Status: live
- Source: https://flathub.org
- Page: https://zieapi.vercel.app/api/application/flathub
- OpenAPI: https://zieapi.vercel.app/api/application/flathub/openapi.json

Linux Flatpak apps on Flathub: AppStream metadata, curated collections, search and install stats.

## Endpoints

### App
`GET https://zieapi.vercel.app/v1/application:flathub/app`

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes |  |

### Collection
`GET https://zieapi.vercel.app/v1/application:flathub/collection`

| Parameter | Type | Required | Description |
|---|---|---|---|
| collection | string | no |  |
| page | integer | no | 1-based page number |
| count | integer | no | Items per page |

### Install Stats
`GET https://zieapi.vercel.app/v1/application:flathub/stats`

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes |  |
| days | integer | no | How many daily points to return |

### Search
`GET https://zieapi.vercel.app/v1/application:flathub/search`

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes |  |
| page | integer | no | 1-based page number |
| count | integer | no | Items per page |

## Example
```
curl "https://zieapi.vercel.app/v1/application:flathub/app" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the Flathub API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/application:flathub/app with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Flathub API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the Flathub API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key application:flathub.

### What is the status of the Flathub API?
Live: works with just an Apizie key
