../_images/SpaceX_factory_Merlin_engine.jpg

Source: [Ref2]

Core Information

This group of API calls will enable the retrieval of core data. In SpaceX terms, a “core” is defined as a rocket motor. ALL core 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 Cores

cores = spacexpython.cores.cores(parameters,timeOut)
print(core)

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 Core

core = spacexpython.cores.one(core_id,parameters,timeOut)
print(core)

Parameters:

Name Purpose Mandatory Default
core_id ID of the core 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

Upcoming Cores

upcoming_cores = spacexpython.cores.upcoming(parameters,timeOut)
print(upcoming_cores)

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

Past Cores

past_cores = spacexpython.cores.past(parameters,timeOut)
print(past_cores)

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

[Ref2]By Steve Jurvetson from Menlo Park, USA - Flickr: Merlin Engine, CC BY 2.0 - One of nine Merlin engines used in the Falcon 9 booster.