Yahoo finance API No definition found for yahoo.finance.quotes table

So when I open it in my browser

<?php

$endpoint = "http://query.yahooapis.com/v1/public/yql";

$query = urlencode('select * from yahoo.finance.quotes where symbol in ("ABBY.L")');

$ch = curl_init($endpoint.'?q='.$query);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = curl_exec($ch);

if (curl_error($ch)){
    die(curl_error($ch));
}
curl_close($ch);

echo'<pre>';

//$result = json_decode($result);

print_r($result);


?>

I get an error. No definition found for table yahoo.finance.quotes. I was wondering if anyone has this. Any help would be great. Thank!

+4
source share
2 answers

Yahoo! seems to be no longer provides yahoo.finance.quotes table (s). You can see all the available tables in the YQL console. ( http://developer.yahoo.com/yql/console/ )

+2
source

Add & env = http://datatables.org/alltables.env to your request.

: URL- , , : : http://query.yahooapis.com/v1/public/yql?q=select * yahoo.finance.quotes, ( "YHOO", "AAPL", "GOOG", MSFT ") & env = http://datatables.org/alltables.env

+4

All Articles