SpaceXTelemetry-Api

June 12, 2021 ยท View on GitHub

SpaceXTelemetry-Api is a Open Source REST API, used in https://r4yan.gitbook.io/spacexdb/ ,all the data is extracted by me using SpacexTelemetry (private tool at the moment)

logo

** http://spacextelemetry.cf domain is not working anymore use https://r4ygm.github.io/SpaceXTelemetry-Api/ if you want to fetch the api (so you basically have to replace the domain with this one on all the calls below in the page) **

Usage

curl https://spacextelemetry.cf/starlink/starlink-6/api/telemetry.json | jq

Example Response

[
  {
    "time": "00:00:01",
    "altitude": 0,
    "speed": 5
  },
  {
    "time": "00:00:03",
    "altitude": 0,
    "speed": 17
  },
  {
    "time": "00:00:06",
    "altitude": 0,
    "speed": 52
  }
  ...
]

Latest Launch Example

curl https://spacextelemetry.cf/launch/latest.json | jq

Example Latest Launch Response

{
  "mission_name": "Starlink 7",
  "telemetry": [
    {
      "time": "00:00:08",
      "altitude": 0,
      "speed": 71
    },
    {
      "time": "00:00:09",
      "altitude": 0.1,
      "speed": 85
    },
    {
      "time": "00:00:10",
      "altitude": 0.1,
      "speed": 99
    },
    ...
]
}

Content of this page

Documentation

this is the documentation of spacexdb-api to retrieve telemetries and calculations to launches

not all the launches have the same data this is because they couldn't be calculated or they weren't calculated yet, and not all the launches were extracted

if you want to check if data exist you could see it by going on the launch folder

Telemetries

This is the section related to the telemetry and predictions data

Query for telemetries

  • https://spacextelemetry.cf/{project}/{mission-name}/api/{file}.{format}
  • Example : https://spacextelemetry.cf/starlink/starlink-6/api/telemetry.json

Query parameters for telemetries

parameterexampletyperequireddescription
projectstarlinkstringyesThe project name (ex. starlink, crew-dragon)
mission_namestarlink-6stringyesThe mission name (ex. starlink-5, dm-2)
filetelemetry,phasestringyesThe type of data you want to retrieve
format.json, .csvstringyesThe format of the data, can be only .csv or .json

Query for predicted calculations

  • https://spacextelemetry.cf/{project}/{mission-name}/api/{file}.{format}
  • Example : https://spacextelemetry.cf/starlink/starlink-6/api/acceleration.json

Query parameters for predicted calculations

parameterexampletyperequireddescription
projectcrew-dragonstringyesThe project name (ex. starlink, crew-dragon)
mission_namedm-2stringyesThe mission name (ex. starlink-5, dm-2)
fileaccelerationstringyesThe type of data you want to retrieve, list of available files
format.json, .csvstringyesThe format of the data, can be only .csv or .json

Available files for predicted calculations

  • acceleration : the acceleration of the rocket in m/s^2
  • vertical_speed : the vertical speed of the rocket in km/s
  • horizontal_speed : the horizontal speed of the rocket in km/s
  • downrange : distance from the launch pad in Km
  • analysis : complete analysis containing vertical speed,horizontal speed and downrange

Query for latest

returns telemetry and analysis of the latest analysed launch

  • Latest Telemetry : https://spacextelemetry.cf/launch/telemetry.json
  • Latest Telemetry Analysis : https://spacextelemetry.cf/launch/analysis.json

Graphs

This is the section related to the graphs and predicted graphs

Query for graphs

  • https://spacextelemetry.cf/{project}/{mission-name}/api/graphs/{file}.{format}
  • Example : https://spacextelemetry.cf/starlink/starlink-6/api/graphs/total-seconds-vs-speed.png

Query parameters for graphs

parameterexampletyperequireddescription
projectstarlinkstringyesThe project name (ex. starlink, crew-dragon)
mission_namestarlink-5stringyesThe mission name (ex. starlink-5, dm-2)
fileacceleration-vs-total-timestringyesThe type of graph you want to retrieve, list of available files
format.pngstringyesThe format of the image, can be only .png

Available files for graphs

  • acceleration-vs-total-time : the acceleration of the rocket compared to time
  • downrange-vs-total-time : distance to the launchpad compared to time
  • horizontal-speed-vs-total-time : comparision between horizontal speed and time
  • total-seconds-vs-altitude : comparision between time and altitude
  • total-seconds-vs-speed : total seconds compared to the speed
  • vertical-horizontal-speed : comparision of vertical and horizontal speed
  • vertical-speed-vs-total-time : plot of the vertical speed and the total time

List of extracted and analysed launches

Starlink

Crew Dragon

GPS

ANASIS

Apps that use this API

a list of applications that uses this api

ISA Calculations (international standard altitude) (only a few launches have this)

This is the section related to ISA Calculations that returns density,pressure,speed_of_sound,temperature this data won't be extracted for next launches.

Query for ISA Calculations

  • https://spacextelemetry.cf/{project}/{mission-name}/api/{file}.{format}
  • Example : https://spacextelemetry.cf/starlink/starlink-6/api/pressure.json

Query parameters for ISA Calculations

parameterexampletyperequireddescription
projectcrew-dragonstringyesThe project name (ex. starlink, crew-dragon)
mission_namedm-2stringyesThe mission name (ex. starlink-5, dm-2)
filedensity,pressure,speed_of_sound,temperature,stringyesThe type of data you want to retrieve
format.json, .csvstringyesThe format of the data, can be only .csv or .json