example-data.com
Menu
Browse docs and collections

files

files

Page 9 of 25.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/files?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/files?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/files";

const res = await fetch(
  "https://example-data.com/api/v1/files?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<File>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/files",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 193,
      "ownerUserId": 14,
      "name": "script-FabNLI.txt",
      "mimeType": "text/plain",
      "sizeBytes": 16521730,
      "url": "https://files.example.com/objects/193/script-FabNLI.txt",
      "parentFolderId": 126,
      "isFolder": false,
      "createdAt": "2026-04-16T08:54:55.266Z",
      "updatedAt": "2026-05-09T03:19:47.537Z"
    },
    {
      "id": 194,
      "ownerUserId": 13,
      "name": "archive-iyZ0Cp.zip",
      "mimeType": "application/zip",
      "sizeBytes": 1939613,
      "url": "https://files.example.com/objects/194/archive-iyZ0Cp.zip",
      "parentFolderId": 124,
      "isFolder": false,
      "createdAt": "2025-12-28T17:19:49.268Z",
      "updatedAt": "2026-02-04T09:03:59.765Z"
    },
    {
      "id": 195,
      "ownerUserId": 56,
      "name": "audio-7rkBAJ.mp3",
      "mimeType": "audio/mpeg",
      "sizeBytes": 43601716,
      "url": "https://files.example.com/objects/195/audio-7rkBAJ.mp3",
      "parentFolderId": 12,
      "isFolder": false,
      "createdAt": "2024-05-28T18:30:42.638Z",
      "updatedAt": "2024-07-14T13:24:40.721Z"
    }
  ],
  "meta": {
    "page": 9,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=9&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=10&limit=24",
    "prev": "/api/v1/files?page=8&limit=24"
  }
}