example-data.com
Menu
Browse docs and collections

files

files

Page 19 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": 433,
      "ownerUserId": 110,
      "name": "document-aEYVWP.docx",
      "mimeType": "application/msword",
      "sizeBytes": 36550120,
      "url": "https://files.example.com/objects/433/document-aEYVWP.docx",
      "parentFolderId": 135,
      "isFolder": false,
      "createdAt": "2025-12-30T07:25:52.815Z",
      "updatedAt": "2026-04-30T02:42:55.205Z"
    },
    {
      "id": 434,
      "ownerUserId": 190,
      "name": "report-Qeje8O.pdf",
      "mimeType": "application/pdf",
      "sizeBytes": 52033140,
      "url": "https://files.example.com/objects/434/report-Qeje8O.pdf",
      "parentFolderId": 44,
      "isFolder": false,
      "createdAt": "2026-03-05T04:43:57.420Z",
      "updatedAt": "2026-05-17T08:44:09.658Z"
    },
    {
      "id": 435,
      "ownerUserId": 96,
      "name": "script-g3AGUI.txt",
      "mimeType": "text/plain",
      "sizeBytes": 49882062,
      "url": "https://files.example.com/objects/435/script-g3AGUI.txt",
      "parentFolderId": 130,
      "isFolder": false,
      "createdAt": "2026-02-04T08:58:34.447Z",
      "updatedAt": "2026-02-08T13:18:53.515Z"
    }
  ],
  "meta": {
    "page": 19,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=19&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=20&limit=24",
    "prev": "/api/v1/files?page=18&limit=24"
  }
}