Skip to content

Commit 77545dd

Browse files
committed
updated readme for new schema and v2 endpoints
1 parent a5c63d5 commit 77545dd

File tree

1 file changed

+50
-40
lines changed

1 file changed

+50
-40
lines changed

README.md

Lines changed: 50 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -25,65 +25,75 @@ See the [Wiki](https://github.com/r-spacex/SpaceX-API/wiki) for full API Documen
2525
**Example Response**
2626

2727
```http
28-
GET https://api.spacexdata.com/v1/launches/latest
28+
GET https://api.spacexdata.com/v2/launches/latest
2929
```
3030

3131
```json
32-
{
32+
{
3333
"flight_number": 50,
3434
"launch_year": "2017",
35+
"launch_date_unix": 1509392040,
3536
"launch_date_utc": "2017-10-30T19:34:00Z",
3637
"launch_date_local": "2017-10-30T15:34:00-04:00",
3738
"rocket": {
38-
"rocket_id": "falcon9",
39-
"rocket_name": "Falcon 9",
40-
"rocket_type": "FT"
39+
"rocket_id": "falcon9",
40+
"rocket_name": "Falcon 9",
41+
"rocket_type": "FT",
42+
"first_stage": {
43+
"cores": [
44+
{
45+
"core_serial": "B1042",
46+
"reused": false,
47+
"land_success": true,
48+
"landing_type": "ASDS",
49+
"landing_vehicle": "OCISLY"
50+
}
51+
]
52+
},
53+
"second_stage": {
54+
"payloads": [
55+
{
56+
"payload_id": "KoreaSat 5A",
57+
"reused": false,
58+
"customers": [
59+
"KT Corporation"
60+
],
61+
"payload_type": "Satellite",
62+
"payload_mass_kg": 3700,
63+
"payload_mass_lbs": 8157.104,
64+
"orbit": "GTO"
65+
}
66+
]
67+
}
4168
},
4269
"telemetry": {
43-
"flight_club": null
70+
"flight_club": null
4471
},
45-
"core_serial": "B1042",
46-
"cap_serial": null,
4772
"reuse": {
48-
"core": false,
49-
"side_core1": false,
50-
"side_core2": false,
51-
"fairings": false,
52-
"capsule": false
73+
"core": false,
74+
"side_core1": false,
75+
"side_core2": false,
76+
"fairings": false,
77+
"capsule": false
5378
},
5479
"launch_site": {
55-
"site_id": "ksc_lc_39a",
56-
"site_name": "KSC LC 39A"
80+
"site_id": "ksc_lc_39a",
81+
"site_name": "KSC LC 39A",
82+
"site_name_long": "Kennedy Space Center Historic Launch Complex 39A"
5783
},
58-
"payloads": [
59-
{
60-
"payload_id": "KoreaSat 5A",
61-
"customers": [
62-
"KT Corporation"
63-
],
64-
"payload_type": "Satellite",
65-
"payload_mass_kg": 3700,
66-
"payload_mass_lbs": 8157.104,
67-
"orbit": "GTO"
68-
}
69-
],
7084
"launch_success": true,
71-
"reused": false,
72-
"land_success": true,
73-
"landing_type": "ASDS",
74-
"landing_vehicle": "OCISLY",
7585
"links": {
76-
"mission_patch": "http://spacexpatchlist.space/patches/spacex_f9_044_koreasat_5a_graphic.png",
77-
"reddit_campaign": "https://www.reddit.com/r/spacex/comments/73ttkd/koreasat_5a_launch_campaign_thread/",
78-
"reddit_launch": "https://www.reddit.com/r/spacex/comments/79iuvb/rspacex_koreasat_5a_official_launch_discussion/",
79-
"reddit_recovery": null,
80-
"reddit_media": "https://www.reddit.com/r/spacex/comments/79lmdu/rspacex_koreasat5a_media_thread_videos_images/",
81-
"presskit": "http://www.spacex.com/sites/spacex/files/koreasat5apresskit.pdf",
82-
"article_link": "https://spaceflightnow.com/2017/10/30/spacex-launches-and-lands-third-rocket-in-three-weeks/",
83-
"video_link": "https://www.youtube.com/watch?v=RUjH14vhLxA"
86+
"mission_patch": "http://spacexpatchlist.space/patches/spacex_f9_044_koreasat_5a_graphic.png",
87+
"reddit_campaign": "https://www.reddit.com/r/spacex/comments/73ttkd/koreasat_5a_launch_campaign_thread/",
88+
"reddit_launch": "https://www.reddit.com/r/spacex/comments/79iuvb/rspacex_koreasat_5a_official_launch_discussion/",
89+
"reddit_recovery": null,
90+
"reddit_media": "https://www.reddit.com/r/spacex/comments/79lmdu/rspacex_koreasat5a_media_thread_videos_images/",
91+
"presskit": "http://www.spacex.com/sites/spacex/files/koreasat5apresskit.pdf",
92+
"article_link": "https://spaceflightnow.com/2017/10/30/spacex-launches-and-lands-third-rocket-in-three-weeks/",
93+
"video_link": "https://www.youtube.com/watch?v=RUjH14vhLxA"
8494
},
8595
"details": "KoreaSat 5A is a Ku-band satellite capable of providing communication services from East Africa and Central Asia to southern India, Southeast Asia, the Philippines, Guam, Korea, and Japan. The satellite will be placed in GEO at 113° East Longitude, and will provide services ranging from broadband internet to broadcasting services and maritime communications."
86-
}
96+
}
8797
```
8898

8999
## Contributions

0 commit comments

Comments
 (0)