0

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??

Gidi
  • 181
  • 1
  • 10

1 Answers1

3

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

Tom Morris
  • 10,490
  • 32
  • 53
  • http://stackoverflow.com/questions/16537725/freebase-google-api-data-dumps-seatrching-for-all-films – Gidi May 14 '13 at 07:50
  • http://stackoverflow.com/questions/17523027/trying-to-get-wiki-id-from-the-freebase-api – Gidi Jul 08 '13 at 09:24