Hacker News new | ask | show | jobs
by SomeT 2925 days ago
Hey, nice site, I was looking into API's and such for my simple site: http://feed.football what API are you pulling that data from and how did you hide the key on the front end?
3 comments

Hi, sorry Im not sure on the API being used. But just to let you know you can access an API by creating your own endpoint to call, which then calls the target API. In which case your not exposing the target API's key as its backend code. Then you can ensure only your users are using their particular key and for example rate limit them yourself.

Hope this helps

Hi, sorry for the delay in responding but as one of the earlier answers mentioned, I'm using the football-data.org API.

I did not hide the key as you can get your own free key from their service :)

From README.md on the project's GitHub:

> Data provided by: https://api.football-data.org/