I know Freebase is on its way out, but until Google Knowledge Graph is released, i need a way to search Freebase, but ony return results that have images.
i know i can check the 'property' node for '/common/topic/image' in the results set, but for correct pagination, i need to achieve this through the API call, not through server side code after.
Is there a way to achieve this?
Example call: http://ift.tt/1Hek5Zn
Example response with image:
[result] => Array
(
[0] => Array
(
[mid] => /m/0f2jr1
[id] => /en/daughtry
[name] => Daughtry
[notable] => Array
(
[name] => Post-grunge Artist
[id] => /m/05jg58
)
[lang] => en
[score] => 44.129833
[output] => Array
(
[property] => Array
(
[/common/topic/image] => Array
(
[0] => Array
(
[mid] => /m/03t3mnz
[name] => Daughtry Live in NYC 12-5-07
)
)
)
)
)
)
Without an image, the 'property' array is simply empty.
Thanks
Aucun commentaire:
Enregistrer un commentaire