Skip to content

Commit 2f45276

Browse files
committed
added example endpoints
1 parent f981aaf commit 2f45276

File tree

1 file changed

+29
-1
lines changed

1 file changed

+29
-1
lines changed

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,34 @@
55
![Imgur](http://i.imgur.com/EdfIdgC.jpg)
66

77
# SpaceX Public JSON API
8-
### Public API for data about company info, vehicles, launch sites, and launch data.
8+
### JSON API for data about company info, vehicles, launch sites, and launch data.
99

1010
</div>
11+
12+
## Usage / Endpoints
13+
Get API info
14+
```http
15+
GET https://api.spacex.com
16+
```
17+
18+
Get company info
19+
```http
20+
GET https://api.spacex.com/info
21+
```
22+
23+
Get vehicle information
24+
```http
25+
GET https://api.spacex.com/falcon9
26+
/falconheavy
27+
/dragon
28+
```
29+
30+
Get launches by year
31+
```http
32+
GET https://api.spacex.com/launches/2017
33+
```
34+
35+
Get launches in a date range
36+
```http
37+
GET https://api.spacex.com/launches/from=01-20-2011/to=01-20-2017
38+
```

0 commit comments

Comments
 (0)