benjamin, here are two queries I threw together yesterday which might help you.
The first one gets a bunch of topics and any images associated with them, then tells you the license those images are under:
[
{
"/common/topic/image" : [
{
"/common/licensed_object/license" : [],
"id" : null,
"name" : null
}
],
"id" : null,
"limit" : 20,
"name" : null,
"type" : "/people/person"
}
]
This second one is roughly the same, but excludes licenses of a certain type -- in this case Fair Use:
[
{
"/common/topic/image" : [
{
"/common/licensed_object/license" : [
{
"id" : null,
"name" : null
}
],
"id" : null,
"name" : null,
"nofu:/common/licensed_object/license" : [
{
"id" : "/en/fair_use",
"optional" : "forbidden"
}
]
}
],
"id" : null,
"limit" : 20,
"name" : null,
"type" : "/people/person"
}
]