example-data.com
Menu
Browse docs and collections

files

files

Page 8 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": 169,
      "ownerUserId": 218,
      "name": "report-5J9GHD.pdf",
      "mimeType": "application/pdf",
      "sizeBytes": 50243604,
      "url": "https://files.example.com/objects/169/report-5J9GHD.pdf",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2024-12-30T06:57:00.352Z",
      "updatedAt": "2025-03-30T23:06:16.677Z"
    },
    {
      "id": 170,
      "ownerUserId": 228,
      "name": "presentation-6STNDo.pptx",
      "mimeType": "application/vnd.ms-powerpoint",
      "sizeBytes": 39854156,
      "url": "https://files.example.com/objects/170/presentation-6STNDo.pptx",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2025-06-07T00:14:26.561Z",
      "updatedAt": "2025-07-28T03:38:54.378Z"
    },
    {
      "id": 171,
      "ownerUserId": 213,
      "name": "script-TikHcI.txt",
      "mimeType": "text/plain",
      "sizeBytes": 1268806,
      "url": "https://files.example.com/objects/171/script-TikHcI.txt",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2026-04-24T15:41:07.291Z",
      "updatedAt": "2026-05-13T06:21:44.182Z"
    }
  ],
  "meta": {
    "page": 8,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=8&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=9&limit=24",
    "prev": "/api/v1/files?page=7&limit=24"
  }
}