1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Importing Data in R

Connected

Exercise

Import JSON data from API

As Filip showed in the video, fromJSON() also works if you pass a URL as a character string or the path to a local file that contains JSON data. Let's try this out on the OMDb API, where you can fetch all sorts of movie data.

Instructions

100 XP
  • omdb_url represents a URL. Use fromJSON() directly on this URL and store the result in omdb_url.
  • Display the structure of omdb_url.