Reputation: 3567
I am trying to run a JavaScript query against a public google fusion table but cannot get it to work without some form of authentication. The complete table is accessible from the web UI with the link:
https://www.google.com/fusiontables/DataSource?docid=1XxWDOr1-w74LEgTBW8QdWl_OYPkPcLKp0Wm5ghej
but a query against the table to just return the data like:
https://www.googleapis.com/fusiontables/v2/query?sql=SELECT%20*%20FROM%201XxWDOr1-w74LEgTBW8QdWl_OYPkPcLKp0Wm5ghej
does not work unless I add my key on the end. Without a key I get the following error:
{
"domain": "usageLimits",
"reason": "dailyLimitExceededUnreg",
"message": "Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.",
"extendedHelp": "https://code.google.com/apis/console"
}
As the table is public it should be able to be queried by anyone. Does anyone know if this should actually work for version 2 of the fusion tables API.
Upvotes: 0
Views: 213
Reputation: 117354
Read-Queries require at least a key(which is used to authenticate your access to the API, not to the particular table)
Note: a table must be public and downloadable, otherwise you must authenticate via OAuth
Upvotes: 2