1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Error with google api to request Freebase using a key

Discussion in 'Google API' started by Scipion, Oct 15, 2012.

  1. #1
    Hello,
    I'm trying to do a query to freebase (using googleapis) with a key.Here is my request :

    https://www.googleapis.com/freebase/v1/mqlread?query={"type":"/people/person","id":"/en/albert_ii_of_belgium","children":[]}


    I created a key with the google's console. Then I tried to do :



    https://www.googleapis.com/freebase/v1/search?q=bob&key=<YOUR_API_KEY>/mqlread?query={"type":"/people/person","id":"/en/albert_ii_of_belgium","children":[]}


    But I got the following error :


    { "error": { "errors": [ { "domain": "usageLimits", "reason": "keyInvalid", "message": "Bad Request" } ], "code": 400, "message": "Bad Request" } }



    So I was thinking that my key was unvalid and I tried : https://www.googleapis.com/freebase/v1/search?q=bob&key=<YOUR_API_KEY>/ but the result was :
    {"status":"200 OK","result":[]} (if I do the same but with a dummy key, I got the same error as above).


    How can I fix my problem ? I activated freebase on the google's console, and I created two keys (browser and server).
     
    Scipion, Oct 15, 2012 IP