example-data.com
Menu
Browse docs and collections

files

files

Page 2 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": 25,
      "ownerUserId": 243,
      "name": "Archive",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/25",
      "parentFolderId": null,
      "isFolder": true,
      "createdAt": "2025-10-02T12:44:17.721Z",
      "updatedAt": "2026-03-29T12:55:34.999Z"
    },
    {
      "id": 26,
      "ownerUserId": 144,
      "name": "Templates",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/26",
      "parentFolderId": null,
      "isFolder": true,
      "createdAt": "2025-04-22T03:49:59.585Z",
      "updatedAt": "2026-04-06T09:27:10.579Z"
    },
    {
      "id": 27,
      "ownerUserId": 189,
      "name": "Exports",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/27",
      "parentFolderId": 7,
      "isFolder": true,
      "createdAt": "2024-08-02T05:34:06.877Z",
      "updatedAt": "2025-08-13T16:11:02.215Z"
    }
  ],
  "meta": {
    "page": 2,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=2&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=3&limit=24",
    "prev": "/api/v1/files?page=1&limit=24"
  }
}