README.md

June 12, 2020 ยท View on GitHub

SpaceX GraphQL

A GraphQL wrapper over the SpaceX REST API

GitHub Workflow Status Code coverage GitHub release

Usage

URL: https://spacexdata.herokuapp.com

Endpoint: /graphql

Queries

Complete documentation about each query is available through the SpaceX API Docs.

QueryParameters
Capsulecapsule_serial: String
Capsulesrange: past/upcoming, limit: Int, offset: Int, order: String, sort: String
Corecore_serial: String
Coreslimit: Int, offset: Int, order: String, sort: String
Dragonid: String
Dragonslimit: Int, offset: Int
Historylimit: Int, offset: Int, id: String
Info
Landingpadid: String
Landingpadslimit: Int, offset: Int
Launchid: String
Launchesrange: latest/next/past/upcoming, limit: Int, offset: Int, order: String, sort: String, ids: [String]
Launchpadid: String
Launchpadslimit: Int, offset: Int
Missionid: String
Missionslimit: Int, offset: Int
Payloadid: String
Payloadslimit: Int, offset: Int, order: String, sort: String
Roadster
Rocketid: String
Rocketslimit: Int, offset: Int

Parameters

ParameterDescription
capsule_serialSerial of capsule being requested (e.g. C112)
core_serialSerial of core being requested (e.g. B1046)
idID of item being requested (flight number/payload or mission id)
idsArray of IDs
limitlimit on the number of results returned
offsetOffset or skip results from the beginning of the query
orderSet order of results (asc or desc)
sortSort results by any value in the response