# Meta and health

> Public endpoints that describe the loaded data and the state of the service.

Source: https://openpipe.health/docs/api/meta/

These endpoints need no token and spend no credits.

## List datasets

```http
GET /api/meta
```

Returns one entry per loaded dataset, largest first. This is where a name in a response's `sources` array resolves to a publisher, version and download URL.

```json
{
  "sources": [
    {
      "dataset": "medicare_service",
      "title": "Medicare Physician & Other Practitioners, by Provider and Service",
      "publisher": "CMS",
      "url": "https://data.cms.gov/…/PHY_R26_P05_V10_D24_Prov_Svc.csv",
      "version": "R26 P05 V10",
      "data_year": 2024,
      "row_count": "9781673",
      "raw_keys": ["…"],
      "parquet_key": "…",
      "parquet_bytes": 123456789,
      "in_postgres": true,
      "loaded_at": "2026-12-05T01:20:00.000Z"
    }
  ],
  "sql": "SELECT dataset, title, publisher, url, version, data_year, row_count, raw_keys, parquet_key, parquet_bytes, in_postgres, loaded_at FROM sources ORDER BY row_count DESC NULLS LAST"
}
```

| Field | Meaning |
|---|---|
| `dataset` | The name used in `sources` arrays and in the [data catalog](https://openpipe.health/docs/data/catalog.md) |
| `version` | The publisher's release identifier |
| `data_year` | The year the data describes, which is earlier than the year it was published |
| `row_count` | Rows loaded |
| `in_postgres` | `false` for a dataset held only in the analytics store, such as `partd_drug`. Queries on it always run on DuckDB. |
| `loaded_at` | When this copy was loaded |

## Health

```http
GET /api/health
```

```json
{
  "ok": true,
  "branch": "main",
  "postgres": { "db": "neondb", "version": "PostgreSQL 17.2", "ms": 2 },
  "services": { "isolatedSqlRole": true, "auth": true, "aiGateway": true, "objectStorage": true, "realtime": true, "lake": "s3://datasets", "function": true }
}
```

`services` shows which parts are configured. `isolatedSqlRole` is `true` when the SQL the model writes runs on its own read-only database login. If `aiGateway` is `false`, [Ask](https://openpipe.health/docs/api/ask.md) will fail. If `objectStorage` is `false`, [Exports](https://openpipe.health/docs/api/exports.md) will fail. `lake` is `false` when the analytics engine is unavailable, in which case every statement runs on Postgres.

## Config

```http
GET /api/config
```

Returns `realtimeUrl` and `model` for the browser app. `realtimeUrl` is `null` when live feeds are not configured. `model` is the model that answers [Ask](https://openpipe.health/docs/api/ask.md).
