example-data.com

files / #181

ownerUserId
167
name
spreadsheet-Surz4I.xlsx
mimeType
application/vnd.ms-excel
sizeBytes
10338647
url
https://files.example.com/objects/181/spreadsheet-Surz4I.xlsx
parentFolderId
23
isFolder
false
createdAt
updatedAt

Component variants

curl -sS \
  "https://example-data.com/api/v1/files/181" \
  -H "Accept: application/json"
const res = await fetch(
  "https://example-data.com/api/v1/files/181"
);
const file = await res.json();
import type { File } from "https://example-data.com/types/files.d.ts";

const res = await fetch(
  "https://example-data.com/api/v1/files/181"
);
const file = (await res.json()) as File;
import requests

res = requests.get(
    "https://example-data.com/api/v1/files/181"
)
file = res.json()
{
  "id": 181,
  "ownerUserId": 167,
  "name": "spreadsheet-Surz4I.xlsx",
  "mimeType": "application/vnd.ms-excel",
  "sizeBytes": 10338647,
  "url": "https://files.example.com/objects/181/spreadsheet-Surz4I.xlsx",
  "parentFolderId": 23,
  "isFolder": false,
  "createdAt": "2024-11-27T17:22:39.652Z",
  "updatedAt": "2025-04-14T07:07:23.193Z"
}
Draftbit