GET get_search_metadata¶
Retrieve the metadata tree structure that can be searched. For each metadata keyword retrieved display the children’s data type and the number of images from the index containing that keyword.
Resource URL¶
https://multicolorengine.tineye.com/<company>/rest/get_search_metadata/
Parameters¶
There are only the Common parameters.
Request example¶
curl https://multicolorengine.tineye.com/<company>/rest/get_search_metadata/
Response examples¶
JSON¶
{
"method": "get_search_metadata",
"status": "ok",
"error": [],
"result": [
{
"metadata": {
"keywords": {
"count": "4",
"type": "string",
"": {
"dog": {
"count": "1",
"": null
},
"cat": {
"count": "1",
"": null
},
"horse": {
"count": "1",
"": null
},
"lion": {
"count": "1",
"": null
}
"jaguar": {
"count": "1",
"": null
},
"cheetah": {
"count": "1",
"": null
},
"whale": {
"count": "2",
"": null
},
"shark": {
"count": "2",
"": null
},
"octopus": {
"count": "1",
"": null
},
"dolphin": {
"count": "1",
"": null
}
}
}
}
}
],
"stats": {
"time_get": 4.03,
"time_total": 4.3
}
}
XML¶
<?xml version="1.0" encoding="utf-8"?>
<data>
<method>get_search_metadata</method>
<status>ok</status>
<error/>
<result>
<item>
<metadata>
<keywords count="4" type="string">
<dog count="1"/>
<cat count="1"/>
<horse count="1"/>
<lion count="1"/>
<jaguar count="1"/>
<cheetah count="1"/>
<whale count="2"/>
<shark count="2"/>
<octopus count="1"/>
<dolphin count="1"/>
</keywords>
</metadata>
</item>
</result>
<stats>
<time_get>4.03</time_get>
<time_total>4.3</time_total>
</stats>
</data>