# API

## Get Telemetry in JSON

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/telemetry.json`

This endpoint allows you to get altitude and speed at a certain time in a JSON format, this shows all the telemetry captured from the webcast

#### Path Parameters

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| mission-name | string | name of the mission |

{% tabs %}
{% tab title="200 Telemetry successfully retrieved." %}

```bash
{    
    "Time": "00:07:55",
    "Altitude KM": 214,
    "Speed KM/H":  20237
}
```

{% endtab %}

{% tab title="404 Could not find" %}

```
{}
```

{% endtab %}
{% endtabs %}

## Get Telemetry in CSV

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/telemetry.csv`

This endpoint allows you to get altitude and speed at a certain time in a CSV format, this shows all the captured telemetry from the webcast

#### Path Parameters

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| mission-name | string | name of the mission |

{% tabs %}
{% tab title="200 Telemetry successfully retrieved" %}

```bash
Time,Altitude KM,Speed KM/H
00:07:55,214,20237
```

{% endtab %}

{% tab title="404 file not found" %}

```
Time,Altitude KM,Speed KM/H
```

{% endtab %}
{% endtabs %}

## Get phases in JSON

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/phase.json`

This endpoint allows you to get the phases in a certain time in a JSON format, this shows all the captured phases from the webcast

#### Path Parameters

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| mission-name | string | name of the mission |

{% tabs %}
{% tab title="200 Phases successfully retrieved" %}

```bash
 {
   "TIME": "00:02:39",
   "PHASE": " STAGE SEPARATION STAGE 1 HAS SEPARATED FROM STAGE 2 "
 }
```

{% endtab %}

{% tab title="404 File not found" %}

```
{}
```

{% endtab %}
{% endtabs %}

## Get phases in CSV

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/phase.csv`

This endpoint allows you to get the phases of the launch in a certain time in a CSV format, this shows all the captured phases in the webcast

#### Path Parameters

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| mission-name | string | name of the mission |

{% tabs %}
{% tab title="200 Phases successfully retrieved" %}

```bash
TIME,PHASE
00:02:42, STAGE SEPARATION STAGE 1 HAS SEPARATED FROM STAGE 2
```

{% endtab %}

{% tab title="404 File not found" %}

```
```

{% endtab %}
{% endtabs %}

## Get Pressure in json

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/pressure.json`

This endpoint allows you to retrieve the pressure calculated using the altitude it's returned in pascal

#### Path Parameters

| Name         | Type   | Description |
| ------------ | ------ | ----------- |
| mission-name | string |             |

{% tabs %}
{% tab title="200 presure at certain altitude and time" %}

```
 {
   "time": "00:12:51",
   "pressure": 98709.392175432,
   "altitude": 220
 },
```

{% endtab %}
{% endtabs %}

## Get Pressure in CSV

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/pressure.csv`

This enpoint allows you to get the pressure calculated at a certain altitude, it's returned in pascal in a CSV format

#### Path Parameters

| Name         | Type   | Description |
| ------------ | ------ | ----------- |
| mission-name | string |             |

{% tabs %}
{% tab title="200 pression at certain altitude" %}

```
time,pressure,altitude
00:00:56,101242.12148073102,6.9
```

{% endtab %}
{% endtabs %}

## Get temperature in JSON

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/temperature.json`

This endpoint returns to you the temperatures estimated in kelvin in a JSON format

#### Path Parameters

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| mission-name | string | name of the mission |

{% tabs %}
{% tab title="200 temperature at certain altitude" %}

```
 {
   "time": "00:01:55",
   "temperature": 287.9368,
   "altitude": 32.8
 },
```

{% endtab %}
{% endtabs %}

## Get temperature in CSV

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/temperature.csv`

This endpoint returns a list of estimated temperatures in kelvin of the launch

#### Path Parameters

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| mission-name | string | name of the mission |

{% tabs %}
{% tab title="200 temperature at a certain altitude" %}

```
time,temperature,altitude
00:02:25,287.7808,56.8
```

{% endtab %}
{% endtabs %}

## Get pressure vs altitude graph&#x20;

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/graphs/grap-pressure-vs-altitude.png`

This endpoint returns you a graph made using pressure and altitude

#### Path Parameters

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| mission-name | string | name of the mission |

{% tabs %}
{% tab title="200 returns a image" %}

```
```

{% endtab %}
{% endtabs %}

## Get graph altitude vs time

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/graphs/graptime-vs-altitude.png`

This endpoint allows you to retrieve a graph showing a comparision of altitude and time

#### Path Parameters

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| mission-name | string | name of the mission |

{% tabs %}
{% tab title="200 " %}

```
```

{% endtab %}
{% endtabs %}

## Get graph speed vs time

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/graphs/grap-speed-time1.png`

This endpoint allows you to retrieve a graph showing a comparision of speed and time

#### Path Parameters

| Name         | Type   | Description             |
| ------------ | ------ | ----------------------- |
| mission-name | string | the name of the mission |

{% tabs %}
{% tab title="200 Image found" %}

```
grap-speed-time1.png
```

{% endtab %}
{% endtabs %}

## Get temperature vs altitude graph

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cf/starlink/starlink-6/api/graphs/grap-temperature-vs-altitude.png`

This endpoint returns a graph showing temperature and altitude

#### Path Parameters

| Name         | Type   | Description         |
| ------------ | ------ | ------------------- |
| mission-name | string | name of the mission |

{% tabs %}
{% tab title="200 graph image" %}

```
```

{% endtab %}
{% endtabs %}

## Get density vs altitude

<mark style="color:blue;">`GET`</mark> `https://spacextelemetry.cfgrap-density-vs-altitude.png`

This endpoint returns a graph between density and altitude

{% tabs %}
{% tab title="200 " %}

```
grap-density-vs-altitude.png
```

{% endtab %}
{% endtabs %}
