NEW REACT PROJECT – Public APIs List

Category: | Posted on:February 12, 2024
public apis list

I built a simple app called Public APIs List that prints a list of all the free APIs available through public-api.

Objective

I want to get more comfortable with the JavaScript fetch API. I needed inspiration for another project to work on and figured I’d start by looking at big lists of free APIs that I could hook into. Turns out there are APIs for APIs. So just for some practice I grabbed one and spat out the full list for easier reading.

Development

There’s only one component. It uses a basic asynchronous fetch to grab the API entries. Then they get mapped into list items and spit out their titles.

This is my second go with Vite and it seemed to go a little smoother than last time. I played around with suspending the cache, since the app is so threadbare and that seemed to help with the refresh issues a bit.

Hurdles

The refresh issues with Vite are still there. I took to re-starting the dev server any time it happened. Fortunately the startup is lightning fast. I can’t imagine this is the normal workflow. There’s still something I’m missing.

Takeaways

There’s more data attached to each entry in the API, so I’ll probably enhance this project a bit more before picking one of the APIs to build out into another app. Hopefully I’ll work out a better solution for Vite refreshing as I go.

Tags: , , ,

Related Logs


  • NEW PROJECT – Catholic Liturgical Date Checker

    May 29, 2024

    The Liturgical Date Checker project uses the Liturgical Calendar API to display information about Catholic Holy days. On page load it fetches info for today, tomorrow, and yesterday. It also has a search field that will return celebration info about a specific date. Objective This is just more basic API practice. I started this in […]

    Continue Reading
  • NEW PROJECT – Logo Finder

    March 7, 2024

    As part of my React API practice, I built a dirt simple Logo Finder using Clearbit’s Logo API. Simply enter a web domain, and the app will retrieve a logo image. Objective This is the third in a series of simple API fetching apps that I’ve built so far this year after the Public API’s […]

    Continue Reading
  • NEW PROJECT – Open Library Search

    February 25, 2024

    Added another API fetching project, Open Library Search. The app pings the Internet Archive‘s Open Library Search API to retrieve author, publication, purchase, and topic data for a user-provided book title. Objective My goal is to continue cranking out simple fetch projects until I can do them without relying on a crutch. I used my […]

    Continue Reading