example-data.com
Menu
Browse docs and collections

files

files

Page 24 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": 553,
      "ownerUserId": 215,
      "name": "spreadsheet-j8QWZO.xlsx",
      "mimeType": "application/vnd.ms-excel",
      "sizeBytes": 4831518,
      "url": "https://files.example.com/objects/553/spreadsheet-j8QWZO.xlsx",
      "parentFolderId": 6,
      "isFolder": false,
      "createdAt": "2025-12-16T12:00:20.970Z",
      "updatedAt": "2026-04-09T09:46:53.575Z"
    },
    {
      "id": 554,
      "ownerUserId": 154,
      "name": "config-VkIdZy.json",
      "mimeType": "application/json",
      "sizeBytes": 41828932,
      "url": "https://files.example.com/objects/554/config-VkIdZy.json",
      "parentFolderId": 143,
      "isFolder": false,
      "createdAt": "2025-09-06T10:16:35.235Z",
      "updatedAt": "2026-04-02T05:31:33.241Z"
    },
    {
      "id": 555,
      "ownerUserId": 78,
      "name": "presentation-xKNhAr.pptx",
      "mimeType": "application/vnd.ms-powerpoint",
      "sizeBytes": 20445792,
      "url": "https://files.example.com/objects/555/presentation-xKNhAr.pptx",
      "parentFolderId": 14,
      "isFolder": false,
      "createdAt": "2026-03-01T04:36:41.126Z",
      "updatedAt": "2026-03-11T06:34:01.996Z"
    }
  ],
  "meta": {
    "page": 24,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=24&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=25&limit=24",
    "prev": "/api/v1/files?page=23&limit=24"
  }
}