Launch Information¶
This group of API calls will enable the retrieval of Launch data. ALL Launch 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 Launches¶
launches = spacexpython.launches.launches(parameters,timeOut)
print(launches)
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 |
Specific Launch¶
Important
As of version v1.1.0.alpha4, this feature is not implemented. It will be implemented in a future release.
launch = spacexpython.launches.one(launch_id,parameters,timeOut)
print(Launch)
Parameters:
Name | Purpose | Mandatory | Default |
---|---|---|---|
launch_id | ID of the Launch | 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 |
Upcoming Launches¶
upcoming_launches = spacexpython.launches.upcoming(parameters,timeOut)
print(upcoming_launches)
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 |
Next Launch¶
next_launch = spacexpython.launches.nextlaunch(timeOut)
print(next_launch)
Parameters:
Name | Purpose | Mandatory | Default |
---|---|---|---|
timeOut | Number of seconds to wait until a timeout | N | 1 |
Latest Launch¶
latest_launch = spacexpython.launches.latest(timeOut)
print(latest_launch)
Parameters:
Name | Purpose | Mandatory | Default |
---|---|---|---|
timeOut | Number of seconds to wait until a timeout | N | 1 |
Past Launches¶
Important
As of version v1.1.0.alpha4, this feature is not implemented. It will be implemented in a future release.
past_launches = spacexpython.launches.past(parameters,timeOut)
print(past_launches)
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 |
[Ref7] | Falcon 9 and Dragon lift off from Launch Pad 39A for CRS-10 |