GET count¶
Get the number of items currently in the collection (much faster than GET list).
Resource URL¶
https://mobileengine.tineye.com/<company>/rest/count/
Parameters¶
In addition to the Common parameters there are:
Key |
Description |
---|---|
name_filter (optional) |
Count only images whose names match this filter (see Name Filtering for details). |
path_filter (optional) |
Count only images whose paths match this filter (see Name Filtering for details). |
after_date_filter (optional) |
Count only images inserted after this date (see Date Filtering for details). |
before_date_filter (optional) |
Count only images inserted before this date (see Date Filtering for details). |
Request example¶
curl https://mobileengine.tineye.com/<company>/rest/count/ --get \
-d "name_filter=^image_.*\.jpg$" \
-d "path_filter=^path/folder/" \
-d "after_date_filter=2023-02-24"
Response examples¶
JSON¶
{
"method": "count",
"status": "ok",
"error": [],
"result": [
1258
],
"stats": {
"total_items": 1304802,
"time_count": 3.3,
"time_total": 3.62
}
}
XML¶
<?xml version="1.0" encoding="utf-8"?>
<data>
<method>count</method>
<status>ok</status>
<error/>
<result>
<item>1258</item>
</result>
<stats>
<total_items>1304802</total_items>
<time_count>3.3</time_count>
<time_total>3.62</time_total>
</stats>
</data>