Setup api key for freebase queries from appengine

2019-02-19 16:20发布

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条回答
SAY GOODBYE
2楼-- · 2019-02-19 17:22

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>

查看更多
登录 后发表回答