You can use MQL, construct a query to return what you need per topic, and then pass all the topic IDs at once.
Retrieve Freebase topics info in bulk
Question
I need to retrieve the informations (image, name, description) of some Freebase topic ids.
I saw in this question that I can use google RPC but it doesn't work for me as it only returns the description.
I need to retrieve info of about 100 topics and I can't do 100 API calls.
Is there another way to achieve this ?
Solution 2
OTHER TIPS
You can look up multiple topics with one Search API call like this:
https://www.googleapis.com/freebase/v1/search?
filter=(any mid:/m/05qtj mid:/m/04jpl mid:/m/02_286)&
output=(/common/topic/image description)
(Of course, you'll need to URL escape the parameters. I just wanted to show what the filter syntax looked like)
If you're querying 100 topics at a time, your request URL might be too large to send as an HTTP GET so you need to send it as a POST instead with the following header set:
X-HTTP-Method-Override: GET
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow