../_images/Spacex_067.jpg

Source: [Ref4]

History Information

This group of API calls will enable the retrieval of history data. History data is classed as significant steps forward in SpaceX’s journey toward commercial spaceflight ALL history 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 historic events

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

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 Historic event

event = spacexpython.history.one(event_id,parameters,timeOut)
print(event)

Parameters:

Name Purpose Mandatory Default
event_id ID of the historic event 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

[Ref4]The second-stage Kestrel engine glows red-hot during Falcon 1’s fourth launch and first successful orbital flight.