SpaceX (Community API) Roadster API

Detailed info about Elon Musk's Tesla Roadster ephemeris.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 2

GET /v4/roadster Get Roadster Ephemeris #
POST /v4/roadster/query Query Roadster #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/spacex:spacex-roadster-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

spacex-roadster-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: SpaceX REST Roadster API
  description: 'Community-maintained, open-source REST API for SpaceX data — launches, rockets,

    capsules, cores, crew, dragons, payloads, ships, landpads, launchpads, Starlink

    satellites, the Tesla Roadster ephemeris, company info, and historical events.

    Source: https://github.com/r-spacex/SpaceX-API (Apache 2.0).


    STATUS: Maintenance-only as of 2024. New launches/missions are NOT being added.

    Existing data remains queryable; project remains hosted for historical lookups

    and as a teaching/sample API.


    Each resource is independently versioned. The Launches resource has both v4 and

    v5 surfaces; v5 omits the v4 response/query transforms (`tdb` typo retained for v4

    parity). All other resources are v4-only.


    Authentication: only required for destructive (create/update/delete) admin routes

    via the `spacex-key` header. All read operations are public.


    Querying: every resource exposes a POST `/{resource}/query` endpoint that accepts

    a mongoose-paginate-v2 body of the form `{ query: , options: {...} }`.'
  version: '4.0'
  contact:
    name: r-spacex community
    url: https://github.com/r-spacex/SpaceX-API
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0
  x-generated-from: documentation
  x-last-validated: '2026-05-29'
  x-status: maintenance-only
servers:
- url: https://api.spacexdata.com
  description: Canonical hosted REST endpoint (community-operated)
security: []
tags:
- name: Roadster
  description: Detailed info about Elon Musk's Tesla Roadster ephemeris.
paths:
  /v4/roadster:
    get:
      operationId: getRoadster
      summary: Get Roadster Ephemeris
      description: Return the current orbital ephemeris for Elon Musk's Tesla Roadster.
      tags:
      - Roadster
      responses:
        '200':
          description: Roadster ephemeris record.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Roadster'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
  /v4/roadster/query:
    post:
      operationId: queryRoadster
      summary: Query Roadster
      description: Run a mongoose-paginate-v2 query against the roadster collection (single document).
      tags:
      - Roadster
      requestBody:
        $ref: '#/components/requestBodies/QueryBody'
      responses:
        '200':
          description: Paginated roadster result.
          content:
            application/json:
              schema:
                type: object
                description: Paginated roadster wrapper (single document).
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  requestBodies:
    QueryBody:
      description: mongoose-paginate-v2 query body.
      required: false
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/QueryRequest'
          example:
            query: {}
            options:
              limit: 10
              page: 1
  schemas:
    QueryRequest:
      type: object
      description: mongoose-paginate-v2 query body.
      properties:
        query:
          type: object
          description: MongoDB find() filter document.
          additionalProperties: true
        options:
          type: object
          description: Pagination + projection options.
          properties:
            select:
              description: Fields to include/exclude (string or object).
              oneOf:
              - type: string
              - type: object
            sort:
              description: Sort order (string or object).
              oneOf:
              - type: string
              - type: object
            offset:
              type: integer
            page:
              type: integer
            limit:
              type: integer
            pagination:
              type: boolean
            populate:
              description: Populate definitions (array, object, or string).
              oneOf:
              - type: array
                items: {}
              - type: object
              - type: string
    Roadster:
      type: object
      description: Tesla Roadster ephemeris (single document).
      properties:
        id:
          type: string
        name:
          type: string
        launch_date_utc:
          type: string
          format: date-time
        launch_date_unix:
          type: integer
        launch_mass_kg:
          type: number
        launch_mass_lbs:
          type: number
        norad_id:
          type: integer
        epoch_jd:
          type: number
        orbit_type:
          type: string
        apoapsis_au:
          type: number
        periapsis_au:
          type: number
        semi_major_axis_au:
          type: number
        eccentricity:
          type: number
        inclination:
          type: number
        longitude:
          type: number
        periapsis_arg:
          type: number
        period_days:
          type: number
        speed_kph:
          type: number
        speed_mph:
          type: number
        earth_distance_km:
          type: number
        earth_distance_mi:
          type: number
        mars_distance_km:
          type: number
        mars_distance_mi:
          type: number
        flickr_images:
          type: array
          items:
            type: string
            format: uri
        wikipedia:
          type: string
          format: uri
        video:
          type: string
          format: uri
        details:
          type: string
  securitySchemes:
    SpacexKey:
      type: apiKey
      in: header
      name: spacex-key
      description: 'Admin API key for destructive (create/update/delete) operations.

        Not required for any read endpoint.

        '