403 Forbidden on my Application but successful on Postman

I have an application that uses TFL APIs. It used to work well for like 2 months, but all of a sudden, I am now getting 403 on all api calls to TFL. I am also getting 403 when I try to run the app on localhost, but the weird thing is I get successful api calls on postman or even by just pasting the endpoint to my browser. When it is my app that do the API call, I get 403. Please help.

Hi @iibuan

Welcome - can you please DM me the email that you have used to sign up for the key and we’ll take a look at your account.

Thanks,
James

Hello, it is working again now. I’ve read somewhere to add User-Agent on header and that fixed the issue.

1 Like