example-data.com
Menu
Browse docs and collections

files

files

Page 4 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": 73,
      "ownerUserId": 140,
      "name": "Exports",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/73",
      "parentFolderId": null,
      "isFolder": true,
      "createdAt": "2025-01-16T17:55:28.011Z",
      "updatedAt": "2026-01-29T21:26:00.198Z"
    },
    {
      "id": 74,
      "ownerUserId": 232,
      "name": "Images",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/74",
      "parentFolderId": 4,
      "isFolder": true,
      "createdAt": "2026-02-21T05:52:55.457Z",
      "updatedAt": "2026-05-07T22:47:12.984Z"
    },
    {
      "id": 75,
      "ownerUserId": 141,
      "name": "Data",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/75",
      "parentFolderId": 6,
      "isFolder": true,
      "createdAt": "2025-04-17T23:29:26.898Z",
      "updatedAt": "2025-05-27T08:30:25.355Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=4&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=5&limit=24",
    "prev": "/api/v1/files?page=3&limit=24"
  }
}