example-data.com
Menu
Browse docs and collections

files

files

Page 17 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": 385,
      "ownerUserId": 193,
      "name": "archive-96xJJ7.zip",
      "mimeType": "application/zip",
      "sizeBytes": 39974678,
      "url": "https://files.example.com/objects/385/archive-96xJJ7.zip",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2024-05-22T01:35:02.687Z",
      "updatedAt": "2024-07-02T06:39:16.220Z"
    },
    {
      "id": 386,
      "ownerUserId": 191,
      "name": "presentation-ZZLT0w.pptx",
      "mimeType": "application/vnd.ms-powerpoint",
      "sizeBytes": 8993680,
      "url": "https://files.example.com/objects/386/presentation-ZZLT0w.pptx",
      "parentFolderId": 66,
      "isFolder": false,
      "createdAt": "2025-04-17T19:41:20.605Z",
      "updatedAt": "2025-11-15T13:19:56.506Z"
    },
    {
      "id": 387,
      "ownerUserId": 42,
      "name": "presentation-e7OBJx.pptx",
      "mimeType": "application/vnd.ms-powerpoint",
      "sizeBytes": 22168877,
      "url": "https://files.example.com/objects/387/presentation-e7OBJx.pptx",
      "parentFolderId": 147,
      "isFolder": false,
      "createdAt": "2025-04-20T07:24:04.920Z",
      "updatedAt": "2025-08-10T23:04:59.644Z"
    }
  ],
  "meta": {
    "page": 17,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=17&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=18&limit=24",
    "prev": "/api/v1/files?page=16&limit=24"
  }
}