エラーメッセージにすべて書いてありますが、具体的に「どこでなにがうまくいかない」かを把握されていますか?
It looks like there was an issue with accessing the API:
I received an "Unauthorized" error.
This usually means there's a problem with permissions or credentials.
If you need to resolve this, you might want to check the API key or other authentication details.
よく分からないけどうまくいかないから助けて、ではエンジニアとしては足りません。
Like!