问题
I have followed these instructions: https://developers.google.com/console/help/#generatingdevkeys/. I registered the freebase service and added the Simple API key for browser apps to the query: https://api.freebase.com/api/service/mqlread?key=keygoeshere&query={MQLquery}
I then get the following error:
{u'code': 100, u'message': u'Invalid API Key (Key not found)', u'stat': u'fail'}
If I remove the key from the query it works locally but remotely I get: freebase api error on deployment to appengine: DownloadError: ApplicationError: 2. Which I believe is due to freebase blocking the appengine because the key is not registered or recognised
回答1:
The docs say that the old http://api.freebase.com
API has been deprecated (first paragraph).
You should access Freebase through google url: https://www.googleapis.com/freebase/v1/search?q=bob&key=<YOUR_API_KEY>
来源:https://stackoverflow.com/questions/10807184/setup-api-key-for-freebase-queries-from-appengine