Goal: Practice using all of the tools that we have learned so far to create an app centered around your choice of public JSON APIs which support CORS. As always, make sure you test API calls with Postman first.
This is a multi-day project, so you'll have time to do the following:
This warm up is for your first class session working on this multi-day project.
This warm up is for your second class session working on this multi-day project.
Build an app using the Bike Index API. Your app could list all the bikes that have been registered as stolen in a given location in the past week. Or it could display statistics — for instance, you could see which manufacturer is most frequently stolen in a given area.
nomics.com is built entirely with the Nomics API. Everything we've done on nomics.com you can do with our API. There are no internal API endpoints.
Here are some ideas for you:
If you decide to use an API that isn't listed here, make sure to do some research and confirm that it supports CORS and that it returns JSON (unless you want to experiment with a format like XML). It is recommended to pick one project to focus on for the entire time so that you can have an opportunity to really build out your project.
If you wish to research more APIs, this is a very useful page. We also recommend this comprehensive list of public APIs as a great resource that's organized by type of data and authentication required. We suggest looking for APIs that use an
apikey and have CORS (a "yes" marked in the column).
.envfile to hide API keys?
Lesson 4 of 8
Last updated September 7, 2022