Gidi
Gidi

Reputation: 191

Google FreeBase Api - problems with querying

I am trying to query the google freebase Api. this is the query I want: http://www.freebase.com/query?autorun=1&q=%22id%22:%22/m/0bth54%22,%22/film/film/imdb_id%22:[] and when I try to search the google api to return json it raise error with this url: googleapis.com/freebase/v1/mqlread?query={{%22/film/film/imdb_id%22:‌[],%22id%22:%22/m/027pfg%22}} . What am I doing wrong??

Upvotes: 0

Views: 214

Answers (1)

Tom Morris
Tom Morris

Reputation: 10540

There are three things wrong:

  • wrong protocol - must be https::
  • missing subdomain - www.
  • invalid JSON in query

If you click on the Link button in the query editor from your first URL, it'll give you an MQLread URL that you can just cut and paste:

https://www.googleapis.com/freebase/v1/mqlread/?lang=%2Flang%2Fen&query=%5B%7B+%22id%22%3A+%22%2Fm%2F0bth54%22%2C+%22%2Ffilm%2Ffilm%2Fimdb_id%22%3A+%5B%5D+%7D%5D

Upvotes: 3

Related Questions