example-data.com
Menu
Browse docs and collections

files

files

Page 12 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": 265,
      "ownerUserId": 158,
      "name": "document-BP8T8F.docx",
      "mimeType": "application/msword",
      "sizeBytes": 7004887,
      "url": "https://files.example.com/objects/265/document-BP8T8F.docx",
      "parentFolderId": 7,
      "isFolder": false,
      "createdAt": "2025-06-28T09:23:06.205Z",
      "updatedAt": "2025-08-01T13:35:23.472Z"
    },
    {
      "id": 266,
      "ownerUserId": 86,
      "name": "video-NhjYCd.mp4",
      "mimeType": "video/mp4",
      "sizeBytes": 1470668,
      "url": "https://files.example.com/objects/266/video-NhjYCd.mp4",
      "parentFolderId": 83,
      "isFolder": false,
      "createdAt": "2025-05-21T20:55:48.401Z",
      "updatedAt": "2026-01-10T18:59:48.271Z"
    },
    {
      "id": 267,
      "ownerUserId": 207,
      "name": "image-l0PkfF.png",
      "mimeType": "image/png",
      "sizeBytes": 43801044,
      "url": "https://files.example.com/objects/267/image-l0PkfF.png",
      "parentFolderId": 47,
      "isFolder": false,
      "createdAt": "2024-08-20T19:20:54.460Z",
      "updatedAt": "2025-12-25T17:47:32.322Z"
    }
  ],
  "meta": {
    "page": 12,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=12&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=13&limit=24",
    "prev": "/api/v1/files?page=11&limit=24"
  }
}