My API key doesn't work

178 views
Skip to first unread message

For h

unread,
Apr 21, 2022, 1:26:39 PM4/21/22
to mtadeveloperresources
Hi everyone thank you for your time!
I'm really new to the MTA api so I don't know much

I'm trying to get data on when the next 2-3 trains are arriving to a specific station
so I opened the dev console in chrome when going to https://new.mta.info/ and check were they get the data from and I see that the URL
returns exactly what I need!!! a response like this

But when I try fetching the data with my api key that I got here https://api.mta.info/#/AccessKey
It returns {"message":"Invalid authentication credentials"}

So would anyone be able to help me out
Thank you so much and have a great day

Reply all
Reply to author
Forward
0 new messages