# SpaceX API

> Browse the community-maintained archive of SpaceX launches, rockets, crew and spacecraft.

App · 20 actions. Web page: https://docs.lodol.com/docs/integrations/spacex-api

## Actions

### Get booster core

Get booster core.

**Inputs**

- Record (`record_id`, text, required): Booster core to look up.

**Outputs**

- `data` (object): The response from SpaceX API.

**Example output**

```json
{
  "data": {
    "id": "example",
    "reuse_count": 1,
    "serial": "example",
    "status": "example"
  }
}
```

### Get capsule

Get capsule.

**Inputs**

- Record (`record_id`, text, required): Capsule to look up.

**Outputs**

- `data` (object): The response from SpaceX API.

**Example output**

```json
{
  "data": {
    "id": "example",
    "serial": "example",
    "status": "example",
    "type": "example"
  }
}
```

### Get latest launch in the archive

Read the most recent launch recorded by the community API.

**Inputs**: None.

**Outputs**

- `data` (object): The response from SpaceX API.

**Example output**

```json
{
  "data": {
    "date_precision": "example",
    "date_utc": "example",
    "flight_number": 1,
    "id": "example",
    "name": "example",
    "rocket": "example",
    "success": true,
    "upcoming": true
  }
}
```

### Get launch

Get launch.

**Inputs**

- Launch ID (`launch_id`, text, required): Launch id from an earlier step.

**Outputs**

- `data` (object): The response from SpaceX API.

**Example output**

```json
{
  "data": {
    "date_precision": "example",
    "date_utc": "example",
    "flight_number": 1,
    "id": "example",
    "name": "example",
    "rocket": "example",
    "success": true,
    "upcoming": true
  }
}
```

### Get next scheduled launch in the archive

Read the next scheduled launch recorded by the community API.

**Inputs**: None.

**Outputs**

- `data` (object): The response from SpaceX API.

**Example output**

```json
{
  "data": {
    "date_precision": "example",
    "date_utc": "example",
    "flight_number": 1,
    "id": "example",
    "name": "example",
    "rocket": "example",
    "success": true,
    "upcoming": true
  }
}
```

### Get Roadster position

Get Roadster position.

**Inputs**: None.

**Outputs**

- `data` (object): The response from SpaceX API.

**Example output**

```json
{
  "data": {
    "details": "example",
    "id": "example",
    "launch_date_utc": "example",
    "name": "example"
  }
}
```

### Get rocket

Get rocket.

**Inputs**

- Record (`record_id`, text, required): Rocket to look up.

**Outputs**

- `data` (object): The response from SpaceX API.

**Example output**

```json
{
  "data": {
    "active": true,
    "description": "example",
    "id": "example",
    "name": "example"
  }
}
```

### Get SpaceX company information

Get SpaceX company information.

**Inputs**: None.

**Outputs**

- `data` (object): The response from SpaceX API.

**Example output**

```json
{
  "data": {
    "founded": 1,
    "founder": "example",
    "name": "example",
    "summary": "example"
  }
}
```

### List booster cores

List booster cores.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "reuse_count": 1,
      "serial": "example",
      "status": "example"
    }
  ]
}
```

### List capsules

List capsules.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "serial": "example",
      "status": "example",
      "type": "example"
    }
  ]
}
```

### List crew members

List crew members.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "agency": "example",
      "id": "example",
      "name": "example",
      "status": "example"
    }
  ]
}
```

### List Dragon spacecraft

List Dragon spacecraft.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "active": true,
      "id": "example",
      "name": "example",
      "type": "example"
    }
  ]
}
```

### List historical events

List historical events.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "details": "example",
      "event_date_utc": "example",
      "id": "example",
      "title": "example"
    }
  ]
}
```

### List landing pads

List landing pads.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "full_name": "example",
      "id": "example",
      "name": "example",
      "status": "example"
    }
  ]
}
```

### List launch pads

List launch pads.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "full_name": "example",
      "id": "example",
      "name": "example",
      "status": "example"
    }
  ]
}
```

### List past launches

List past launches.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "date_precision": "example",
      "date_utc": "example",
      "flight_number": 1,
      "id": "example",
      "name": "example",
      "rocket": "example",
      "success": true,
      "upcoming": true
    }
  ]
}
```

### List payloads

List payloads.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "id": "example",
      "name": "example",
      "type": "example"
    }
  ]
}
```

### List rockets

List rockets.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "active": true,
      "description": "example",
      "id": "example",
      "name": "example"
    }
  ]
}
```

### List ships

List ships.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "active": true,
      "id": "example",
      "name": "example",
      "type": "example"
    }
  ]
}
```

### List upcoming launches in the archive

List upcoming launches in the archive.

**Inputs**: None.

**Outputs**

- `data` (list): The response from SpaceX API.

**Example output**

```json
{
  "data": [
    {
      "date_precision": "example",
      "date_utc": "example",
      "flight_number": 1,
      "id": "example",
      "name": "example",
      "rocket": "example",
      "success": true,
      "upcoming": true
    }
  ]
}
```
