example-data.com
Menu
Browse docs and collections

files

files

Page 16 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": 361,
      "ownerUserId": 18,
      "name": "script-hskNCV.txt",
      "mimeType": "text/plain",
      "sizeBytes": 40070507,
      "url": "https://files.example.com/objects/361/script-hskNCV.txt",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2026-04-30T10:37:31.201Z",
      "updatedAt": "2026-05-05T10:50:36.395Z"
    },
    {
      "id": 362,
      "ownerUserId": 149,
      "name": "data-2uoBtA.csv",
      "mimeType": "text/csv",
      "sizeBytes": 33980840,
      "url": "https://files.example.com/objects/362/data-2uoBtA.csv",
      "parentFolderId": 47,
      "isFolder": false,
      "createdAt": "2024-11-14T05:31:05.605Z",
      "updatedAt": "2024-11-16T23:36:52.089Z"
    },
    {
      "id": 363,
      "ownerUserId": 132,
      "name": "photo-AYy4Zc.jpg",
      "mimeType": "image/jpeg",
      "sizeBytes": 47280842,
      "url": "https://files.example.com/objects/363/photo-AYy4Zc.jpg",
      "parentFolderId": 123,
      "isFolder": false,
      "createdAt": "2025-07-14T00:41:24.698Z",
      "updatedAt": "2025-09-26T07:57:06.407Z"
    }
  ],
  "meta": {
    "page": 16,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=16&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=17&limit=24",
    "prev": "/api/v1/files?page=15&limit=24"
  }
}