Skip to content

Commit

Permalink
added more nasa api figs; rate limits added to book
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorcampbell committed Sep 24, 2023
1 parent f85423f commit 52941b0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Binary file added source/img/reading/NASA-API-limits.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added source/img/reading/NASA-API-parameters.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 9 additions & 3 deletions source/reading.md
Original file line number Diff line number Diff line change
Expand Up @@ -1417,9 +1417,15 @@ it unable to talk to anyone else. Most servers have mechanisms to revoke your ac
careful, but you should try to prevent issues from happening in the first place by being extra careful
with how you write and run your code. You should also keep in mind that when a website owner
grants you API access, they also usually specify a limit (or *quota*) of how much data you can ask for.
Be careful not to overrun your quota! In this example, we should take a look at
[the Twitter website](https://developer.twitter.com/en/docs/twitter-api/rate-limits) to see what limits
we should abide by when using the API.
Be careful not to overrun your quota! In this example,
[the NASA website](https://api.nasa.gov/) specifies what limits we should abide by when using the API,
as shown in {numref}`fig:NASA-API-limits`.

```{figure} img/reading/NASA-API-limits.png
:name: fig:NASA-API-limits
The NASA website specifies an hourly limit of 1,000 requests.
```

+++

Expand Down

0 comments on commit 52941b0

Please sign in to comment.