example-data.com
Menu
Browse docs and collections

files

files

Page 6 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": 121,
      "ownerUserId": 112,
      "name": "Templates",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/121",
      "parentFolderId": null,
      "isFolder": true,
      "createdAt": "2025-11-07T20:28:08.323Z",
      "updatedAt": "2026-02-03T07:33:14.679Z"
    },
    {
      "id": 122,
      "ownerUserId": 162,
      "name": "Assets",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/122",
      "parentFolderId": 41,
      "isFolder": true,
      "createdAt": "2025-07-25T00:28:11.534Z",
      "updatedAt": "2025-10-22T06:38:56.400Z"
    },
    {
      "id": 123,
      "ownerUserId": 94,
      "name": "Archive",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/123",
      "parentFolderId": null,
      "isFolder": true,
      "createdAt": "2024-11-29T14:52:59.054Z",
      "updatedAt": "2025-08-03T21:02:11.738Z"
    }
  ],
  "meta": {
    "page": 6,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=6&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=7&limit=24",
    "prev": "/api/v1/files?page=5&limit=24"
  }
}