API Reference
Log In
API Reference

Search files in libraries

By providing an exact match or a vague match to the name, you can find files that match the search criteria.

Query Params
string
required

keyword for searching.

integer
Defaults to 1
integer
string
Defaults to all

all, mine, shared, group, public or a repo_id, (all for searching in all libraries, etc.), optional. For searching in shared libraries, you can also pass shared_from or not_shared_from parameter beside shared to filter shared libraries.

string

path of specifiy library.(This option works only when search_repo is a single repo_id.)

string
Defaults to all

all or custom, (all for searching all file types, custom for only searching the specific file types you defined in ftype and input_fexts).

string

must be in (Text, Document, Image, Video, Audio, PDF, Markdown).

  • TEXT: ('ac', 'am', 'bat', 'c', 'cc', 'cmake', 'cpp', 'cs', 'css', 'diff', 'el', 'h', 'html', 'htm', 'java', 'js', 'json', 'less', 'make', 'org', 'php', 'pl', 'properties', 'py', 'rb', 'scala', 'script', 'sh', 'sql', 'txt', 'text', 'tex', 'vi', 'vim', 'xhtml', 'xml', 'log', 'csv', 'groovy', 'rst', 'patch', 'go'),
  • DOCUMENT: ('doc', 'docx', 'ppt', 'pptx', 'odt', 'fodt', 'odp', 'fodp'),
  • IMAGE: ('gif', 'jpeg', 'jpg', 'png', 'ico', 'bmp', 'tif', 'tiff', 'eps'),
  • VIDEO: ('mp4', 'ogv', 'webm', 'mov'),
  • AUDIO: ('mp3', 'oga', 'ogg'),
  • PDF: ('pdf',),
  • MARKDOWN: ('markdown', 'md'),
boolean

true or false. Whether return permission info of the file or not, default is false.

string

file extensions manually specific.

integer

filter the result that the updated time greater than or equal to this value. default unit is second.

integer

filter the result that the updated time less than or equal to this value. default unit is second.

string

filter the result that the size greater than or equal to this value. default unit is byte.

string

filter the result that the size less than or equal to this value. default unit is byte.

Response

Language
Credentials
URL
Click Try It! to start a request and see the response here! Or choose an example:
application/json