Skip to main content
List and filter files pinned to your Pinata account

Usage

Returns

Parameters

Filter response with the following additional methods. All filters are optional.

name

  • Type: string
Filter results based on name

group

  • Type: string
Filter results based on group ID

noGroup

  • Type: boolean
Filter results to only show files that are not part of a group

cid

  • Type: string
Filter results based on CID

keyvalues

  • Type: Record<string, string>
Filter results based on keyvalue pairs in metadata

mimeType

  • Type: string
Filter results based on mime type

order

  • Type: "ASC" | "DESC"
Order results either ascending or descending by created date

limit

  • Type: number
Limit the number of results

cidPending

  • Type: boolean
Filters results and only returns files where cid is still pending

pageToken

  • Type: string
Paginates through files based on a provided page token

Auto Paginate

The list method has an auto pagination feature that is triggered when used inside a for await iterator
Works like magic ✨