1

I was used to type in a browser : http://finance.yahoo.com/webservice/v1/symbols/YHOO,AAPL/quote?bypass=true&format=json&view=detail and parse the answer...

It's not working anymore, see: Has Yahoo finance web service disappeared? API changed? Down temporarily?

The command

curl -A "Mozilla/5.0 (Linux; Android 6.0.1; MotoG3 Build/MPI24.107-55) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.81 Mobile Safari/537.36" http://finance.yahoo.com/webservice/v1/symbols/YHOO,AAPL/quote?bypass=true&format=json&view=detail

gives also

not a valid parameter.

Any idea what's wrong in the request?

Any idea on the way to send the http request directly so it works in a desktop browser?

Community
  • 1
  • 1
testeur
  • 11
  • 1

1 Answers1

0

If you use the headers below in your GET request, it will work...

"User-Agent":"Mozilla/5.0 (iPhone; CPU iPhone OS 9_3 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13E230 Safari/601.1"
Brian
  • 145
  • 1
  • 12