# EVE Frontier Search, Stats & Leaderboard API

> Search EVE Frontier characters and organizations, the open-orders discovery feed, leaderboards and platform statistics. 5 endpoints with CU costs.

Cross-cutting views: search across characters and organizations, the open-orders discovery feed, platform statistics, leaderboards and recent marketplace activity.

Part of the Voidwire API. Voidwire is a metered REST API for EVE Frontier data: markets, characters, tribes, hauling and the star map.

- Base URL: `https://api.voidwire.xyz`
- Authentication: `x-api-key` header (create keys at https://voidwire.xyz)
- HTML version: https://voidwire.xyz/docs/explore
- Full API overview: https://voidwire.xyz/docs.md

## Endpoints

### GET /explore/v1/discovery

Unified open-orders discovery feed across trade hubs.

Cost: 150 CU per call.

Live open orders across trade hub markets, ordered by last activity (newest first). Orders on hubs that no longer exist are excluded. Each row carries the hub display name (`hub_name`) and power state (`hub_state`, online/offline), so callers need not resolve them separately. All filters compose freely: scope by trade hubs (`storage_unit_ids`), by item (`asset_id`), by owner (`trading_account_id`), and by side. Private-shared hubs are resolved by the caller — pass the hub list you can see; omit it for all hubs, or set `public_only=true` to restrict to location-revealed (public) hubs, or `include_public=true` to widen `storage_unit_ids` to also cover every public hub. Set `exclude_offline=true` to drop orders on offline hubs. Pagination is a single self-contained `cursor` param: pass `next_cursor` to page backward or `prev_cursor` to poll for new activity. Cursors embed the original filters, so no other params are needed (and filters are ignored) on cursor requests.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `storage_unit_ids` | query | no | `string` | Comma-separated trade hub IDs and/or item collection IDs (max 100). Omit for all trade hubs. |
| `asset_id` | query | no | `string` | Numeric item type / asset id. Omit for all items. |
| `trading_account_id` | query | no | `string` | Only orders owned by this trading account ("my orders"). |
| `side` | query | no | `"buy" \| "sell" \| "both"` | Filter by order side (default: both). `buy` = bids. |
| `public_only` | query | no | `string` | Set `true` to restrict to location-revealed (public) assemblies. Omit for all visible hubs. |
| `include_public` | query | no | `string` | Set `true` to return orders on the `storage_unit_ids` hubs OR on any location-revealed (public) hub. Without `storage_unit_ids` it behaves like `public_only=true`. |
| `exclude_offline` | query | no | `string` | Set `true` to drop orders on hubs that are offline (`hub_state` `offline`). Hubs with no known state are kept. Omit to include them. |
| `cursor` | query | no | `string` | Opaque cursor from a previous response (`next_cursor` for the next page, `prev_cursor` to poll for new activity). Self-contained: it carries the original filters and limit, so other params are ignored. |
| `limit` | query | no | `string` | Rows per page (default and max 100). |

Response `200`: `DiscoveryOrderPage`

- `data`: `DiscoveryOrder[]` — One page of results, in the requested order.
- `next_cursor`: `string` — Opaque cursor for the next page. Pass it back as the `cursor` query parameter to continue; `null` when there are no further results.
- `prev_cursor`: `string` — Opaque cursor pointing at activity newer than this page. Pass it back as the `cursor` query parameter to poll for new orders; `null` when the page is empty.

```sh
curl "https://api.voidwire.xyz/explore/v1/discovery" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /explore/v1/leaderboard

Player leaderboard by CRED volume.

Cost: 50 CU per call.

Players ranked by CRED trade volume (buys + sells) on item markets over a rolling 30 days, with each player’s buy/sell split, fill count, most-traded item, and last trade time. A player is a wallet: all of its trading accounts count. Pass `org_id` to rank one organization’s members (every tier, including members with no trades); omit it for every active trader. Ordered by volume, then address. Snapshots are recomputed hourly, so `generated_at` can be up to an hour old. Page with `limit` and `cursor`.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `cursor` | query | no | `string` | Opaque cursor from a previous response’s `next_cursor`. Omit for the first page. |
| `org_id` | query | no | `string` | Restrict the board to this organization’s members (every tier of its tree). Pass the root organization ID; an ID of any unit within the tree resolves to its root. Omit for the global board. |

Response `200`: `LeaderboardPage`

- `data`: `LeaderboardEntryResponse[]`
- `next_cursor`: `string` — Opaque cursor for the next page — pass it back as `cursor`; null on the last page.
- `org_id`: `string` — Root organization the board is scoped to.
- `generated_at`: `integer (int64)` — When this snapshot was computed (window end). Unix epoch milliseconds.
- `window_start`: `integer (int64)` — Start of the rolling 30-day window. Unix epoch milliseconds.
- `expires_at`: `integer (int64)` — When the snapshot is next recomputed. Unix epoch milliseconds.
- `quote`: `LeaderboardQuoteResponse`
- `summary`: `LeaderboardSummaryResponse`

```sh
curl "https://api.voidwire.xyz/explore/v1/leaderboard" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /explore/v1/leaderboard/hubs

Public trade hub leaderboard by CRED volume.

Cost: 50 CU per call.

Public (location-revealed) trade hubs ranked by CRED trade volume on their item markets over a rolling 30 days, with each hub’s fill count, distinct traders, items traded, most-traded item, and last trade time, plus how many items currently have open sell and buy orders there (read live, not from the snapshot). Private and unanchored hubs are excluded, as are hubs with no fill in the window. Ordered by volume, then hub ID. Snapshots are recomputed hourly, so `generated_at` can be up to an hour old. Page with `limit` and `cursor`.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `limit` | query | no | `integer` | Maximum number of results to return (1–100). |
| `cursor` | query | no | `string` | Opaque cursor from a previous response’s `next_cursor`. Omit for the first page. |

Response `200`: `HubLeaderboardPage`

- `data`: `HubLeaderboardEntryResponse[]`
- `next_cursor`: `string` — Opaque cursor for the next page — pass it back as `cursor`; null on the last page.
- `generated_at`: `integer (int64)` — When this snapshot was computed (window end). Unix epoch milliseconds.
- `window_start`: `integer (int64)` — Start of the rolling 30-day window. Unix epoch milliseconds.
- `expires_at`: `integer (int64)` — When the snapshot is next recomputed. Unix epoch milliseconds.
- `quote`: `LeaderboardQuoteResponse`
- `summary`: `HubLeaderboardSummaryResponse`

```sh
curl "https://api.voidwire.xyz/explore/v1/leaderboard/hubs" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /explore/v1/search

Search characters and organizations.

Cost: 100 CU per call.

Single search endpoint across characters and organizations. Matches `q` against character names, and against organization names, exact organization IDs, and exact treasury IDs. Use the `characters` and `orgs` flags to include either or both result groups (both are on by default). Each group is capped at `limit` results.

| Parameter | In | Required | Type | Description |
|---|---|---|---|---|
| `q` | query | yes | `string` | Search term: a partial name, or an exact organization / treasury ID. |
| `characters` | query | no | `string` | Include character results (default true). |
| `orgs` | query | no | `string` | Include organization results (default true). |
| `limit` | query | no | `string` | Maximum results per group (default 8, max 50). |
| `enrich_orgs` | query | no | `string` | Include each organization result’s `image_url` and `description` (default false; opt-in because it costs a metadata lookup). Has no effect on character results. |

Response `200`: `SearchResponse`

- `characters`: `CharacterSummary[]` — Characters whose name matches the search term.
- `orgs`: `OrgSearchResult[]` — Organization units matching the search term by name, organization ID, or treasury ID.

```sh
curl "https://api.voidwire.xyz/explore/v1/search?q=<q>" \
  -H "x-api-key: $VOIDWIRE_KEY"
```

### GET /explore/v1/stats

Global platform statistics.

Cost: 50 CU per call.

Returns aggregate marketplace, organization, shared-storage, and pilot statistics: trade totals by window (all-time / 24h / 7d), distinct traders, open orders, items with live markets, active trade hubs, all-time and 7-day volume per quote currency, top items by quote volume, organization totals with a largest-orgs leaderboard, shared-vault counts, pilot counts, and 30-day daily series. Aggregates count private trade hubs but never identify them. All timestamps are integer Unix epoch milliseconds. Results are cached for up to 60 seconds.

Response `200`: `StatsResponse`

- `computed_at`: `integer (int64)` — When these aggregates were computed. Results are cached for up to 60 seconds. Unix epoch milliseconds.
- `marketplace`: `StatsMarketplace` — Marketplace activity aggregates.
- `organizations`: `StatsOrganizations` — Organization aggregates.
- `storage`: `StatsStorage` — Shared-storage aggregates.
- `pilots`: `StatsPilots` — Pilot aggregates.
- `series`: `StatsSeries` — 30-day daily activity series.

```sh
curl "https://api.voidwire.xyz/explore/v1/stats" \
  -H "x-api-key: $VOIDWIRE_KEY"
```
