# VATSIM API

> Returns VATSIM network status, online pilots and controllers, flight plans, prefiled plans and ATIS broadcasts.

Category: Sports & Gaming. Region: global. 12 endpoints at `https://api.hoshime.com/v1/vatsim/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/vatsim
## GET /v1/vatsim/status

The VATSIM network now: connected clients, unique users, pilots, controllers and servers.

Scope: `social:read` · Units: 1 · Cached: 1 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `atis` (integer (int64)), `clients` (integer (int64)), `controllers` (integer (int64)), `pilots` (integer (int64)), `servers` (integer (int64)), `uniqueUsers` (integer (int64)), `updatedAt` (string)

```bash
curl "https://api.hoshime.com/v1/vatsim/status" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/pilots

Pilots online now: callsign, position, altitude, speed and flight plan. Filter by departure airport.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `departure` | string | no | Departure airport ICAO code, such as KJFK. (e.g. EGLL) |
| `limit` | integer | no | Items per page, 1 to 500. (default 50; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `aircraft` (string), `altitude` (integer (int64)), `arrival` (string), `callsign` (string), `departure` (string), `groundSpeed` (integer (int64)), `heading` (integer (int64)), `latitude` (number (double)), `logonAt` (string), `longitude` (number (double)), `server` (string)

```bash
curl "https://api.hoshime.com/v1/vatsim/pilots?departure=EGLL&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/controllers

Air traffic controllers online now, such as tower or approach, with frequency and rating. Filter by callsign prefix.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `prefix` | string | no | Callsign prefix, such as EGLL or LON_. (e.g. EGLL) |
| `limit` | integer | no | Items per page, 1 to 500. (default 50; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `callsign` (string), `facility` (integer (int64)), `frequency` (string), `logonAt` (string), `rating` (integer (int64)), `server` (string), `visualRange` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/vatsim/controllers?prefix=EGLL&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/pilot

One pilot online now by callsign, with the full flight plan: route, cruise speed and altitude, remarks.

Scope: `social:read` · Units: 1 · Cached: 1 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `callsign` | string | yes | Callsign of the pilot, such as BAW123. (e.g. BAW123) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `aircraft` (string), `alternate` (string), `altitude` (integer (int64)), `arrival` (string), `callsign` (string), `cruiseTas` (string), `departure` (string), `departureTime` (string), `enrouteTime` (string), `flightRules` (string), `fuelTime` (string), `groundSpeed` (integer (int64)), `heading` (integer (int64)), `latitude` (number (double)), `logonAt` (string), `longitude` (number (double)), `plannedAltitude` (string), `remarks` (string), `route` (string), `server` (string), `transponder` (string), `updatedAt` (string)

```bash
curl "https://api.hoshime.com/v1/vatsim/pilot?callsign=BAW123" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/prefiles

Flight plans filed on VATSIM whose pilot has not connected yet. Filter by departure airport.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `departure` | string | no | Departure airport ICAO code, such as EGLL. (e.g. EGLL) |
| `limit` | integer | no | Items per page, 1 to 500. (default 50; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `aircraft` (string), `arrival` (string), `callsign` (string), `departure` (string), `departureTime` (string), `filedAt` (string), `plannedAltitude` (string), `route` (string)

```bash
curl "https://api.hoshime.com/v1/vatsim/prefiles?departure=EGLL&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/atis

The automatic terminal information (ATIS) broadcasts online now, with frequency, code and text. Filter by airport prefix.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `prefix` | string | no | Airport ICAO code or callsign prefix, such as EGLL. (e.g. EGLL) |
| `limit` | integer | no | Items per page, 1 to 500. (default 50; e.g. 5) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `callsign` (string), `code` (string), `frequency` (string), `logonAt` (string), `server` (string), `text` (string)

```bash
curl "https://api.hoshime.com/v1/vatsim/atis?prefix=EGLL&limit=5" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/servers

The VATSIM servers with their name, location and whether they accept connections. Addresses are not returned.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `connectionsAllowed` (boolean), `ident` (string), `location` (string), `name` (string), `sweatbox` (boolean)

```bash
curl "https://api.hoshime.com/v1/vatsim/servers" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/facilities

The controller facility levels of VATSIM, from observer to center, with their codes.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `id` (string), `long` (string), `short` (string)

```bash
curl "https://api.hoshime.com/v1/vatsim/facilities" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/ratings

The controller and pilot rating levels of VATSIM with their codes, such as C1 or PPL.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `controller` (Code[]), `controller[].id` (string), `controller[].long` (string), `controller[].short` (string), `pilot` (Code[]), `pilot[].id` (string), `pilot[].long` (string), `pilot[].short` (string)

```bash
curl "https://api.hoshime.com/v1/vatsim/ratings" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/radios

The radio frequencies one callsign is tuned to right now, in MHz, with the position of each radio.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `callsign` | string | yes | Callsign of the pilot or controller, such as BAW123 or EGLL_TWR. (e.g. BAW123) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `frequencyMhz` (number (double)), `id` (string), `latitude` (number (double)), `longitude` (number (double))

```bash
curl "https://api.hoshime.com/v1/vatsim/radios?callsign=BAW123" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/metar

The current weather report (METAR) of an airport, as the VATSIM METAR service reads it.

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `icao` | string | yes | Four-letter airport ICAO code, such as EGLL. (e.g. EGLL) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `icao` (string), `report` (string)

```bash
curl "https://api.hoshime.com/v1/vatsim/metar?icao=EGLL" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/vatsim/events

Upcoming and current VATSIM events, such as fly-ins and training events, with their times, airports and link.

Scope: `social:read` · Units: 1 · Cached: 15 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `airports` (string[]), `endAt` (string), `id` (string), `link` (string), `name` (string), `shortDescription` (string), `startAt` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/vatsim/events" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
