An example for a block that I’ve built for a client that makes use of the WordPress Interactivity API. The code has been cleaned up and anything that might identify the client this was for has been removed. The API endpoint has been set to https://openlibrary.org/, which is definitely a more complex API than the one that this block was built for.
Find the Interactive Block Demo on Github