example-data.com
Menu
Browse docs and collections

Overview

files / #425

Component variants

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/files/425" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/files/425"
);
const file = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/files.d.ts https://example-data.com/types/files.d.ts
import type { File } from "./types/files";

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

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/files/425"
)
file = res.json()

Response

{
  "id": 425,
  "ownerUserId": 213,
  "name": "script-kcRRPg.txt",
  "mimeType": "text/plain",
  "sizeBytes": 2986246,
  "url": "https://files.example.com/objects/425/script-kcRRPg.txt",
  "parentFolderId": 58,
  "isFolder": false,
  "createdAt": "2025-10-13T05:58:51.283Z",
  "updatedAt": "2026-03-13T09:04:47.405Z"
}