Get and visit all IDs to test HTTP response

I’m new to automated testing, and I don’t know where to start with a test I want to put together. I want to go through an API to collect a list of all of the pages on the site, and then visit each of those pages to check the HTTP response. Below is an outline of what I need help with, and if anything, I just need to know if this is possible.

  1. Go to https://techport.nasa.gov/api/items.json and collect all of the item id numbers.
  2. Visit all of the ids that were collected. https://techport.nasa.gov/api/items/[id number]
  3. Check the HTTP Response for each id.

Any assistance would be greatly appreciated.