1515<br ></br >
1616</div >
1717
18- ## Usage / Endpoints
18+ # Usage / Endpoints
19+
20+ ## Basic Info
1921Get API info
2022``` http
2123GET https://api.spacexdata.com
@@ -34,10 +36,21 @@ Get launch site information
3436``` http
3537GET https://api.spacexdata.com/sites
3638```
39+ ## Launch information by dates
3740Get all past launches
3841``` http
3942GET https://api.spacexdata.com/launches
4043```
44+ Get past launches by year
45+ ``` http
46+ GET https://api.spacexdata.com/launches/year=2017
47+ ```
48+ Get past launches in a date range
49+ ``` http
50+ GET https://api.spacexdata.com/launches/from=2011-01-20/to=2017-05-25
51+ ```
52+
53+ ## Launch info by serial #'s
4154Get launches by core serial #
4255``` http
4356GET https://api.spacexdata.com/launches/core=B1021
@@ -46,29 +59,25 @@ Get launches by capsule serial #
4659``` http
4760GET https://api.spacexdata.com/launches/cap=C106
4861```
49- Get detailed capsule information by serial #
50- ``` http
51- GET https://api.spacexdata.com/parts/cap=C106
52- ```
62+
63+ ## Detailed info about each capsule
5364Get detailed info on all capsules
5465``` http
5566GET https://api.spacexdata.com/parts/caps
5667```
57- Get detailed core information by serial #
68+ Get detailed capsule information by serial #
5869``` http
59- GET https://api.spacexdata.com/parts/core=B1021
70+ GET https://api.spacexdata.com/parts/cap=C106
6071```
72+
73+ ## Detailed info about each core
6174Get detailed info on all cores
6275``` http
6376GET https://api.spacexdata.com/parts/cores
6477```
65- Get past launches by year
66- ``` http
67- GET https://api.spacexdata.com/launches/year=2017
68- ```
69- Get past launches in a date range
78+ Get detailed core information by serial #
7079``` http
71- GET https://api.spacexdata.com/launches/from=2011-01-20/to=2017-05-25
80+ GET https://api.spacexdata.com/parts/core=B1021
7281```
7382
7483Example JSON Response for a launch
0 commit comments