Query the ImageKit Media Library programmatically to list and filter files by folder, file type, and AI-generated or custom tags

domain: imagekit.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Call the ImageKit Media API's list-and-search files endpoint with basic filters like `path`, `fileType`, `sort`, `limit`, and `skip` for straightforward folder-scoped listing
  2. For advanced filtering, build a Lucene-like query string and pass it as the `searchQuery` parameter to combine conditions across tags, custom metadata fields, and AI-generated tags
  3. Use a `tags IN [...]` style expression inside `searchQuery` to match assets carrying specific manual or AI-generated tags
  4. Paginate through results using `skip`/`limit` since large libraries won't return everything in a single call
  5. Cross-check that any custom metadata fields referenced in `searchQuery` have already been created as schema fields in the dashboard, since undefined fields won't be queryable

Known gotchas

Related routes

Organize and query Brandfolder assets using Sections, Labels, and Custom Fields via the API
brandfolder.com · 5 steps · unrated
Upload a file to ImageKit directly from client-side code using short-lived, server-generated authentication parameters
imagekit.io · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans