# Launch Library API

> Returns upcoming and past space launches, astronauts, and space agencies and companies from Launch Library.

Category: Government & Open Data. Region: global. 11 endpoints at `https://api.hoshime.com/v1/launchlibrary/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/launchlibrary
## GET /v1/launchlibrary/upcoming

The next launches, soonest first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 20. (default 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: `id` (string), `image` (string), `location` (string), `mission` (string), `missionType` (string), `name` (string), `net` (string), `pad` (string), `provider` (string), `rocket` (string), `status` (string), `url` (string)

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

## GET /v1/launchlibrary/previous

The latest launches, most recent first.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `limit` | integer | no | Items per page, 1 to 20. (default 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: `id` (string), `image` (string), `location` (string), `mission` (string), `missionType` (string), `name` (string), `net` (string), `pad` (string), `provider` (string), `rocket` (string), `status` (string), `url` (string)

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

## GET /v1/launchlibrary/launch

One launch by its Launch Library id (a UUID).

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | string | yes | Launch Library launch id, a UUID. (e.g. 711de6bc-f755-475b-a12f-ec5240da3a11) |
| `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), `image` (string), `location` (string), `mission` (string), `missionType` (string), `name` (string), `net` (string), `pad` (string), `provider` (string), `rocket` (string), `status` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/launchlibrary/launch?id=711de6bc-f755-475b-a12f-ec5240da3a11" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/launchlibrary/astronauts

Astronauts, optionally only those in space right now.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `inSpace` | boolean | no | true to list only astronauts in space now. (e.g. true) |
| `limit` | integer | no | Items per page, 1 to 50. (default 10) |
| `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: `agency` (string), `firstFlight` (string), `flightsCount` (integer (int64)), `id` (string), `inSpace` (boolean), `name` (string), `nationality` (string), `status` (string), `timeInSpace` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/launchlibrary/astronauts?inSpace=true" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/launchlibrary/agencies

Space agencies and companies of the Launch Library, with an optional name search.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Name or abbreviation to find, such as NASA. (e.g. NASA) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Most items to return, from 1 to 50. (default 10; e.g. 3) |
| `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: `abbrev` (string), `countryCode` (string), `description` (string), `id` (string), `name` (string), `type` (string)

```bash
curl "https://api.hoshime.com/v1/launchlibrary/agencies?query=NASA&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/launchlibrary/agency

One space agency or company by its Launch Library id, such as 44 for NASA.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | integer | yes | Launch Library agency id, such as 44 for NASA. (e.g. 44) |
| `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: `abbrev` (string), `administrator` (string), `countryCode` (string), `description` (string), `foundingYear` (string), `id` (string), `name` (string), `successfulLaunches` (integer (int64)), `totalLaunches` (integer (int64)), `type` (string)

```bash
curl "https://api.hoshime.com/v1/launchlibrary/agency?id=44" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/launchlibrary/pads

Launch pads of the Launch Library, with their location and launch count.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Most items to return, from 1 to 50. (default 10; e.g. 3) |
| `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: `countryCode` (string), `id` (string), `latitude` (number (double)), `locationName` (string), `longitude` (number (double)), `name` (string), `totalLaunchCount` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/launchlibrary/pads?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/launchlibrary/events

Upcoming space events of the Launch Library: press conferences, spacewalks, webcasts and other events.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Most items to return, from 1 to 50. (default 10; e.g. 3) |
| `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), `location` (string), `name` (string), `startsAt` (string), `type` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/launchlibrary/events?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/launchlibrary/rockets

Launch vehicle configurations of the Launch Library (rocket variants), with an optional name search.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Rocket name to find, such as Falcon. (e.g. Falcon) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Most items to return, from 1 to 50. (default 10; e.g. 3) |
| `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: `family` (string), `fullName` (string), `id` (string), `manufacturer` (string), `name` (string), `reusable` (boolean)

```bash
curl "https://api.hoshime.com/v1/launchlibrary/rockets?query=Falcon&limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/launchlibrary/spaceStations

Space stations of the Launch Library, active and retired, such as the International Space Station.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Most items to return, from 1 to 50. (default 10; e.g. 3) |
| `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), `name` (string), `orbit` (string), `owner` (string), `status` (string)

```bash
curl "https://api.hoshime.com/v1/launchlibrary/spaceStations?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/launchlibrary/expeditions

Expeditions, the crews' stays aboard space stations, with their start, end and station.

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

| Parameter | Type | Required | Description |
|---|---|---|---|
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `limit` | integer | no | Most items to return, from 1 to 50. (default 10; e.g. 3) |
| `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: `end` (string), `id` (string), `name` (string), `spaceStation` (string), `start` (string)

```bash
curl "https://api.hoshime.com/v1/launchlibrary/expeditions?limit=3" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
