example-data.com
Menu
Browse docs and collections

files

files

Page 5 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": 97,
      "ownerUserId": 236,
      "name": "Archive",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/97",
      "parentFolderId": null,
      "isFolder": true,
      "createdAt": "2025-08-06T16:03:05.430Z",
      "updatedAt": "2026-02-04T03:44:13.553Z"
    },
    {
      "id": 98,
      "ownerUserId": 91,
      "name": "Imports",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/98",
      "parentFolderId": null,
      "isFolder": true,
      "createdAt": "2026-01-09T12:25:11.530Z",
      "updatedAt": "2026-03-14T03:25:16.666Z"
    },
    {
      "id": 99,
      "ownerUserId": 245,
      "name": "Documents",
      "mimeType": "application/x-directory",
      "sizeBytes": 0,
      "url": "https://files.example.com/folders/99",
      "parentFolderId": null,
      "isFolder": true,
      "createdAt": "2026-03-23T11:26:13.183Z",
      "updatedAt": "2026-04-19T16:43:07.854Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=5&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=6&limit=24",
    "prev": "/api/v1/files?page=4&limit=24"
  }
}