API Data

Create a webpage that utilizes data from an API.

Using APIs

  1. Pick an API source. Make sure that it contains good documentation.
    You might start here:
    Fun API List
    Open Weather Map
    Data.gov

  2. Setup placeholders and containers in your html page, where you’d like to place your data.

  3. Using the APIs Demo interaction-sp23demos/activities /apis/ we reviewed as a starting point, use the API to display the data. Pay close attention to the documentation and format of the resulting data. Make sure to console.log your output to review your script as you go.

  4. Style the webpage appropriately, according to the data content.

<>