Basic Search
Search for files by name, path, or metadata:string
required
Search query string. Supports multiple search operators and filters
integer
default:"200"
Maximum number of results to return (server default configurable with
--srch-hits)Search Syntax
Text Search
Basic text matching:Multiple Terms (AND)
Phrase Search
Wildcard Search
Search Filters
Size Filters
Filter by file size:string
Size filter operators:
size:>10M- Larger than 10 MiBsize:<1G- Smaller than 1 GiBsize:=1024- Exactly 1024 bytes- Units:
K(KiB),M(MiB),G(GiB),T(TiB)
Date Filters
Filter by modification date:string
Date filter operators:
date:>2024-01-01- Modified after Jan 1, 2024date:<2024-12-31- Modified before Dec 31, 2024date:=2024-03-03- Modified on Mar 3, 2024- Format:
YYYY-MM-DDorYYYY-MM-DD HH:MM:SS
Path Filters
Search in specific paths:string
Restrict search to specific path prefix
Extension Filters
string
Filter by file extension (comma-separated list)
Tag Search
Search by metadata tags (requires indexing with-e2ts):
Artist Search
Album Search
Title Search
Genre Search
Year Search
Bitrate Search
Duration Search
Combined Queries
Combine multiple filters:Content Hash Search
Search for files by up2k content hash:boolean
required
Enable hash-based search mode
array
required
Array of up2k chunk hashes (URL-safe base64 encoded SHA-512)
Search Response
Successful Response
array
Array of matching files
string
Relative path from volume root
string
Filename
integer
File size in bytes
integer
Modification timestamp (Unix epoch)
object
Metadata tags (if indexed with
-e2ts)array
Recommended order for displaying tags
boolean
True if results were truncated (hit result limit)
Rate Limiting
Search implements adaptive rate limiting:- Queries taking > 0.7s incur 0.7s penalty
- Next query must wait until penalty expires
- Returns HTTP 429 if attempted too soon
Search Requirements
Indexing
Search requires file indexing to be enabled:-e2d- Enable file indexing (delete tracking)-e2s- Enable search-e2a- Enable all indexing features-e2ts- Index audio/video metadata tags
SQLite Requirement
Search requires SQLite3:Search Examples
Find Large Files
Find Recent Photos
Find High-Quality Audio
Find Music by Artist
Find Long Videos
Search Tips
Error Handling
error
Rate limit exceeded - wait for penalty duration before retrying
error
Search unavailable - SQLite not found or indexing not enabled
error
Server busy - indexing in progress, retry in a moment
Performance Considerations
- First search after server restart may be slow (index loading)
- Wildcard searches are slower than exact matches
- Tag searches require metadata indexing (adds overhead)
- Large result sets may be truncated (use more specific queries)
- Rate limiting prevents search abuse