List & search files

GET {{api-server}}/:token/{{api-version}}/files

This API is used to search and list files in Filerobot.

Search parameter (&q=)

The (q=) parameter is used as a search and filter parameter for custom metadata fields,tags,filenames and also fuzzy search. For more information on how to arrange the returned results, see the format parameters in GET file details )
For all available options and syntax of the q= parameter, see the table below:

NameDescriptionSyntaxValue/Example
Fuzzy SearchFuzzy search in all metadata fields.Start and end with double quotes- q="greater himalayas"
Tag filterTag-based filtering.Start and end with double quotes and include sharp (#) before begining of the tag- q="#headgear"
Single/Multi-Select Metadata FiltersFiltering by SELECT / MULTI_SELECT metadata fields.Colon operator (`:`) should be included between the meta key and the meta value.

In case there is a space in the meta value, the value should be quoted with double quotes (`value with space symbol`)

The comma symbol (`,`) put between multiple meta values stays for OR operator.

The addition symbol (`+`) put between multiple meta values stays for AND operator.

empty keyword can be used to list all assets having an empty meta value

non-empty keyword can be used to list all assets having any value in the metadata field.

The minus symbol (`-`) put in front of the metadata value, stays for NOT operator.
- &q=kategorie:"Tiger"




- &q="brand":"Saint Thomas"




- &q=brand:Adidas,Nike



- &q=kategorie:"Tiger"+brand:"Adidas"


- q=copyright:empty



- &q=copyright:non-empty



- &q=brand:-scaleflex
Boolean Metadata filterFiltering boolean metadata fields.Meta value can be a boolean with true or false- q=approved:true

- &q=kategorie:"Tiger"+brand "Adidas"+approved:true
Numeric/Date Metadata filterThis format is used to search/filter metadata with DATE or NUMERIC data type.Operators included between meta key and meta value are :(equality), >, <, >=, <=, !=(comparison)

Double quotes can be used here when spaces are inside the meta key.

Date values should be in a format yyyy-mm-dd

For searching in an interval between 2 dates, the .. operator is used.
- &q="expiration date"!=2022-12-02

- &q="price material"!=100

- &q="price material">100

- &q=event_date:2024-06-17..2024-06-18
Text/Text Area Metadata filterThis format searches/filters TEXT or TEXTAREA custom metadata. It looks for certain keywords (strings) in the user-specified meta field. Please note that it is searching for exact matches only.The operator between the meta key and the meta value is ~- &q=Description~"product is hand made"
Filename searchA search by exact filename, including the file extension, can be performed using this format.filename keyword is used as meta key and the meta value is the filename, put inside quotes.

This search returns only exact matches, meaning that &q=filename:"girl.jpg" will not return girl.png in the search results.
- &q=filename:"girl.jpg"

A lot of asset metadata is stored internally by Filerobot. Some fields can be used as filters. For example, type`, orientation, mimetype, color, resolution, faces, approval_status, and enable_favorited are all examples of reserved keywords. You can not use these as keys of custom-defined metadata fields.
For searching and sorting results, you can use:

Name:Description:Syntax:Value/Example:
typeFilter by asset type - WEBP, TXT, DOC, VIDEO, JPGIn case of filtering by multiple types, they should be separated with comma. It stays for OR operator.

Possible values - application/pdf, image/jpeg, image/png, image/tiff, image/webp, image/x-icon, text/html, image/x-photoshop , image/vnd.adobe.photoshop, image/gif, video/mp4, image/tiff, image/webp etc.
`&type=txt,doc
mimetypeFilter results by mimetype.In case of filtering by multiple types, they should be separated with comma. It stays for OR operator.&mimetype=image
resolutionFilter by the image widthThe possible value of resolution are:
- &resolution=small (image width < 600)
- &resolution=medium (image width between 600 and 1800)
- &resolution=large(image width > 1800)
&resolution=medium,large
orientationFilter by the image orientationThe possible value of resolution are:
- &orientation=PA(panaroma image)
- &orientation=PO (portrait image)
- &orientation=SQ (square image)
- &orientation=LD (landscape image)
&orientation=SQ,LD
sizeFilter by image size in MBIt is a range of number.The lower and upper limit is separated by ..&size=5..10

Filters available if specific AI postprocess is activated in the project

This category of filters returns results only if AI has been used to classify the data.

Name:Description:Syntax:Value/Example:
facesFilter by number of detected human faces in the image.In order to return results, the AI postprocess Count faces should be activated for the project.

Possible value of faces are:
- &faces=0..0 - no people detected
- &faces=1..1 - 1 person
- &faces=3..1000 - Groups

The number of people searched in the image is specified with .. operator
&faces=3..1000
colorFilters by pre-dominant color found in the imageIn order this filter to work, it requires activation of the AI process Extract Dominant Colors

The filter supports the following color values - red, orange, pink, grass green, yellow, azure, chartreuse, teal, purple
&color=red,orange,pink,grass green,yellow,azure,chartreuse,teal,purple

Labels search/filter:

You can filter results by multiple labels SID (SID is the internal value of an label which can be obtained by the Labels endpoint).

ParameterTypeDescriptionExample
labels_operatorStringIt is possible to search by several labels by defining the operator between them.The accepted values areOR, AND- &labels_operator=AND

- &labels_oerator=OR
labelsStringSearch by label's SID. If multiple SIDs, separate them by comma&labels=lbxmw9j4s

Sorting search results(&sort)

The search results can be sorted using the query parameter &sort. Sort results by name (default), uploaded_at, created_at, modified_at, size. Sort resuts with order asc or desc. Example: &sort=name:desc ; &sort=uploaded_at:asc

Name:Description:Syntax:Value/Example:
nameSorting by filenameThis is the default sort.&sort=name:desc
created_atSorting by the date when the asset has been uploaded in Filerobot.&sort=created_at:desc
modified_atSorting by the date of the last edit in FilerobotThe metadata edits are not considered as edits that this filter reflects. It checks only for modifications of the file's content.&sort=modified_at:desc
sizeSorting by filesize.&sort=size:asc
typeGrouping assets by mimetype&sort=type:asc

Request Params

KeyDatatypeRequiredDescription
recursivenumberWhether to list/search recursively in the sub-folders. 1 =yes; 0 =No
limitnumberMax number of returned results (used for pagination)
offsetnumberStart offset (for pagination).
sortstringSee "Sorting search results" for more info
formatstringFormat response. please see "format response" in GET file details
labels_operatorstringLabels operator when using multiple labels. Acccepted values:OR,AND
labelsstringSID of the label. If you want to filter by labels.
variantstringIn which language variant to return results. Please check your token configuration for language abbreviation. Alternatively you can do a GET files request and see language abbreviation.
mimetypestringFilter by mimetype
resolutionstringFilter by resolution
orientationstringFilter by orientation
typestringFilter by image,video,audio
qstringSearch parameter.See search parameter section.
sizestringFilter by size of the file (in mb).First value is the lower limit and second value is the upper limit
tagsstringFilter by tags.SID of the tag you want to filter by.
folderstringSearch in specific folder
``null

HEADERS

KeyDatatypeRequiredDescription
X-Filerobot-KeystringFilerobot API key
Content-Typestring

RESPONSES

status: OK

{&quot;status&quot;:&quot;success&quot;,&quot;type&quot;:&quot;LIST&quot;,&quot;base&quot;:{&quot;uuid&quot;:&quot;20f67ac0-ea7a-5ae9-a844-42cf9b7ae4e4&quot;,&quot;path&quot;:&quot;/Docs&quot;,&quot;name&quot;:&quot;Docs&quot;,&quot;meta&quot;:{},&quot;visibility&quot;:{&quot;in_dam&quot;:{&quot;set&quot;:&quot;public&quot;,&quot;actual&quot;:&quot;all_organisation&quot;},&quot;in_cdn&quot;:{&quot;set&quot;:&quot;public&quot;,&quot;actual&quot;:&quot;public&quot;}},&quot;updated_at&quot;:&quot;2023-07-31T08:45:04&quot;,&quot;created_at&quot;:&quot;2023-07-17T08:33:44&quot;,&quot;count&quot;:{&quot;files_recursive&quot;:8,&quot;files_direct&quot;:7},&quot;size&quot;:{&quot;total_recursive_bytes&quot;:2427601,&quot;total_recursive_pretty&quot;:&quot;2.32 MB&quot;},&quot;public_icon&quot;:&quot;https://scaleflex.cloudimg.io/crop/300x300/x/http://www.airstore.io/assets/dir.png&quot;},&quot;files&quot;:[{&quot;uuid&quot;:&quot;341c6b77-ad4f-565d-8da7-fb7829850000&quot;,&quot;name&quot;:&quot;flat.jpg&quot;,&quot;extension&quot;:&quot;jpg&quot;,&quot;size&quot;:{&quot;bytes&quot;:458988,&quot;pretty&quot;:&quot;448.23 KB&quot;},&quot;flags&quot;:null,&quot;type&quot;:&quot;image/jpeg&quot;,&quot;info&quot;:{&quot;ext&quot;:&quot;jpg&quot;,&quot;area&quot;:1151040,&quot;img_h&quot;:880,&quot;img_o&quot;:&quot;LD&quot;,&quot;img_w&quot;:1308,&quot;img_type&quot;:&quot;JPEG&quot;,&quot;thumbnail&quot;:&quot;https://fbmjmuoeb.filerobot.com/.internal/thumbnails/341c6b77-ad4f-565d-8da7-fb7829850000.jpg&quot;,&quot;img_color_space&quot;:&quot;RGB&quot;},&quot;meta&quot;:{&quot;title&quot;:{&quot;en&quot;:&quot;nice flat&quot;},&quot;description&quot;:{&quot;en&quot;:&quot;the price is negotiable. room for 3&quot;},&quot;id&quot;:null,&quot;product-type&quot;:&quot;@itm_v1_4905fe8f_1@&quot;,&quot;color_1&quot;:[&quot;@itm_v1_b3ac673b_3@&quot;],&quot;details&quot;:null,&quot;year&quot;:null,&quot;internal&quot;:null,&quot;season&quot;:null,&quot;approved&quot;:true,&quot;release_date&quot;:null,&quot;price&quot;:null},&quot;tags&quot;:{&quot;en&quot;:[{&quot;sid&quot;:&quot;#tg81221&quot;,&quot;label&quot;:&quot;Clothes hanger&quot;},{&quot;sid&quot;:&quot;#tg3885e&quot;,&quot;label&quot;:&quot;360&quot;},{&quot;sid&quot;:&quot;#tga63d4&quot;,&quot;label&quot;:&quot;Car&quot;},{&quot;sid&quot;:&quot;#tg05997&quot;,&quot;label&quot;:&quot;orange&quot;}],&quot;fr&quot;:[{&quot;sid&quot;:&quot;#tg81221&quot;,&quot;label&quot;:&quot;Cintre&quot;},{&quot;sid&quot;:&quot;#tg3885e&quot;,&quot;label&quot;:&quot;~ 360&quot;},{&quot;sid&quot;:&quot;#tga63d4&quot;,&quot;label&quot;:&quot;Voiture&quot;},{&quot;sid&quot;:&quot;#tg05997&quot;,&quot;label&quot;:&quot;Orange&quot;}]},&quot;labels&quot;:[&quot;#lb9kzmglo&quot;],&quot;relevance&quot;:1,&quot;visibility&quot;:{&quot;in_dam&quot;:{&quot;set&quot;:&quot;inherited&quot;,&quot;actual&quot;:&quot;all_organisation&quot;},&quot;in_cdn&quot;:{&quot;set&quot;:&quot;inherited&quot;,&quot;actual&quot;:&quot;public&quot;}},&quot;is_favorite&quot;:null,&quot;url&quot;:{&quot;public&quot;:&quot;https://store.filerobot.com/fbmjmuoeb/Docs/flat.jpg&quot;,&quot;permalink&quot;:&quot;https://api.filerobot.com/fbmjmuoeb/v5/get/341c6b77-ad4f-565d-8da7-fb7829850000&quot;,&quot;cdn&quot;:&quot;https://fbmjmuoeb.filerobot.com/Docs/flat.jpg?vh=1e845d&quot;,&quot;path&quot;:&quot;/Docs/flat.jpg&quot;},&quot;hash&quot;:{&quot;sha1&quot;:&quot;1e845d7ce4e32afd080b4efee20226d3dc65eb86&quot;,&quot;blurhash&quot;:null},&quot;iptc_xml&quot;:{},&quot;created_at&quot;:&quot;2023-07-17T08:33:44Z&quot;,&quot;modified_at&quot;:&quot;2023-08-08T09:57:47Z&quot;,&quot;folder&quot;:{&quot;uuid&quot;:&quot;20f67ac0-ea7a-5ae9-a844-42cf9b7ae4e4&quot;,&quot;name&quot;:&quot;/Docs&quot;},&quot;product&quot;:{&quot;ref&quot;:&quot;Name-change-ref&quot;,&quot;position&quot;:&quot;1&quot;}}],&quot;folders&quot;:[],&quot;warnings&quot;:[],&quot;stats&quot;:{&quot;approx_files_count&quot;:1,&quot;approx_files_size&quot;:458988,&quot;approx_files_count_method&quot;:&quot;COUNT_EXACT&quot;},&quot;info&quot;:{&quot;atom&quot;:&quot;atom011&quot;,&quot;response_time&quot;:{&quot;db_conn&quot;:0,&quot;db_query&quot;:336,&quot;db_query_core&quot;:0,&quot;parse&quot;:1}},&quot;api_version&quot;:{&quot;hash&quot;:&quot;fb3440b980d63376bfcd277b9811349cd7f6280a&quot;,&quot;datetime&quot;:&quot;2023-08-07T23:26:19+07:00&quot;}}