API call ... what am I doing wrong?

Hello,
What am I doing wrong in an API call?
API%20CALL

the full query link:

https://www.alphavantage.co/query?function=TIME_SERIES_WEEKLY&symbol=MSFT&apikey=demo

I put apikey as the key for the private API key along with the value obviously not demo

I put https://www.alphavantage.co/query

in the get method call
I added common parameters with the following keys
function
symbol

I suspect my problem revolves around the query? … what am I doing wrong?

Looks like your query values are swapped. TIME_SERIES_WEEKLY is on symbol when it should be on function and the other parameter is the reverse… according to the full link that returns a response.

Somehow that was the problem !! haha :sweat_smile:

1 Like