example-data.com
Menu
Browse docs and collections

files

files

Page 22 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": 505,
      "ownerUserId": 178,
      "name": "script-yVaMM2.txt",
      "mimeType": "text/plain",
      "sizeBytes": 10863896,
      "url": "https://files.example.com/objects/505/script-yVaMM2.txt",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2025-05-09T16:19:43.638Z",
      "updatedAt": "2025-05-25T13:52:50.478Z"
    },
    {
      "id": 506,
      "ownerUserId": 171,
      "name": "audio-PHRk0o.mp3",
      "mimeType": "audio/mpeg",
      "sizeBytes": 14272806,
      "url": "https://files.example.com/objects/506/audio-PHRk0o.mp3",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2026-05-07T02:13:45.408Z",
      "updatedAt": "2026-05-07T21:00:09.236Z"
    },
    {
      "id": 507,
      "ownerUserId": 37,
      "name": "script-DaEihN.txt",
      "mimeType": "text/plain",
      "sizeBytes": 49735476,
      "url": "https://files.example.com/objects/507/script-DaEihN.txt",
      "parentFolderId": 110,
      "isFolder": false,
      "createdAt": "2024-12-27T18:22:16.118Z",
      "updatedAt": "2025-06-05T22:40:34.985Z"
    }
  ],
  "meta": {
    "page": 22,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=22&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=23&limit=24",
    "prev": "/api/v1/files?page=21&limit=24"
  }
}