4.11 Connect to API: Example

Constructing a REST API call:

From R, use httr package to make GET request:

  • You can type URLs into your browser to test them

We’ll have to use an API key to run this query: