Actions83
- Product Actions
- Product Variant Actions
- Collection Actions
- Article Actions
- Blog Actions
- Customer Actions
- Order Actions
- Draft Order Actions
- Inventory Actions
- File Actions
- Publication Actions
- Translation Actions
- Taxonomy Actions
- Metaobject Actions
- Metaobject Definition Actions
- Metafield Value Actions
- Metafield Definition Actions
- Service Actions
File → Get Many
AI-generatedSummary
Lists files from the Shopify Files library (images, videos, 3D models, external videos, generic files) via the GraphQL Admin API, with optional filtering, sorting and pagination.
Inputs
- authentication — Admin API Credentials (access token or client credentials) or OAuth2. Defaults to Admin API.
- getAll — If true (default), fetches all pages of results.
- limit — Max files to return when Get All is off (1–250, default 50).
- fileQueryOptions — Optional collection: Cursor (resume after a cursor), Media Type (Image, Video, 3D Model, External Video), Reverse order, Search Query (Shopify search syntax, e.g. used_in:none media_type:IMAGE), Sort By (Created At, Filename, ID, Original Upload Size, Updated At; default Updated At), Used In (Any, Not Used Anywhere, Used In Products). Media Type and Used In are combined with the search query.
- returnFields — Extra field groups to include: Generic File Details, Image Details, Preview. All three by default; core identity fields are always returned.
- outputMode — Simplified (default), Raw (full GraphQL response), or Selected Fields.
- selectedFields — Comma-separated field names to keep (e.g. ID,title,status); shown only when Output Mode is Selected Fields.
Output shape
A list of file records, one n8n item per file, shaped by the chosen output mode.
Exact field names depend on Output Mode and Fields to Return. Pagination is handled automatically when Get All is on. The source pack here is signature-level, so the exact query construction is inferred from the declared parameters.
Examples
Example 1: Find unused images to clean up
Get All on; Options: Media Type = Image, Used In = Not Used Anywhere; Output Mode = Selected Fields with ID,alt,createdAt.
Example 2: Fetch the 20 most recently uploaded files
Get All off; Limit 20; Options: Sort By = Created At, Reverse off or on as needed.
Example 3: Search files by name
Options > Search Query set to a Shopify search expression such as filename:logo; Output Mode Simplified.