../_images/ocisly.png

Source: SpaceX [Ref12]

Ship Information

This group of API calls will enable the retrieval of data about the ships that SpaceX has used over its’ operational timeframe. These include autonomous drone ships, barges, recovery and transport ships. ALL these calls can be given a set of parameters, with which to modify the response. Like all functions in this module, the API parameters must be given as a JSON payload such as can be seen here.

All Ships

ships = spacexpython.ships.ships(parameters,timeOut)
print(ships)

Parameters:

Name Purpose Mandatory Default
parameters

JSON list of URL qualifiers in the form

{“status”:”active”,”limit”:3 ……etc

N  
timeOut Number of seconds to wait until a timeout N 1

Valid parameters

Specific Ship

ship = spacexpython.ships.ship(ship_id,parameters,timeOut)
print(ship)

Parameters:

Name Purpose Mandatory Default
ship_id ID of the ship Y  
parameters

JSON list of URL qualifiers in the form

{“status”:”active”,”limit”:3 ……etc

N  
timeOut Number of seconds to wait until a timeout N 1

Valid parameters

[Ref12]“Of Course I Still Love You” (Marmac 304) drone ship moving into position for the Sunday, June 28, 2015, SpaceX CRS-7 rocket launch and landing attempt.