Skip to content
  • Auto
  • Light
  • Dark
Get Started
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

List

client.blobs.list(BlobListParams { prefix } query?, RequestOptionsoptions?): BlobListResponse { key, lastModified, size }
get/v1/blob

List blobs in your account

ParametersExpand Collapse
query: BlobListParams { prefix }
prefix?: string

If specified, only include blobs that start with this string

ReturnsExpand Collapse
BlobListResponse = Array<BlobListResponseItem>

List of blobs that you’ve stored

key: string
lastModified?: string

Creation date of the object

formatdate-time
size?: number

Size in bytes of the object

import ValTown from "npm:@valtown/sdk";

const client = new ValTown();

const blobs = await client.blobs.list();

console.log(blobs);
[
  {
    "key": "key",
    "lastModified": "2019-12-27T18:11:19.117Z",
    "size": 0
  }
]
Returns Examples
[
  {
    "key": "key",
    "lastModified": "2019-12-27T18:11:19.117Z",
    "size": 0
  }
]