example-data.com
Menu
Browse docs and collections

files

files

Page 23 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": 529,
      "ownerUserId": 21,
      "name": "video-WfFqh9.mp4",
      "mimeType": "video/mp4",
      "sizeBytes": 42582529,
      "url": "https://files.example.com/objects/529/video-WfFqh9.mp4",
      "parentFolderId": 24,
      "isFolder": false,
      "createdAt": "2025-02-04T21:20:14.037Z",
      "updatedAt": "2025-03-24T06:21:31.201Z"
    },
    {
      "id": 530,
      "ownerUserId": 60,
      "name": "data-LfWeL8.csv",
      "mimeType": "text/csv",
      "sizeBytes": 23036930,
      "url": "https://files.example.com/objects/530/data-LfWeL8.csv",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2025-01-20T08:31:20.419Z",
      "updatedAt": "2025-11-30T05:40:25.671Z"
    },
    {
      "id": 531,
      "ownerUserId": 97,
      "name": "photo-47xheY.jpg",
      "mimeType": "image/jpeg",
      "sizeBytes": 51965061,
      "url": "https://files.example.com/objects/531/photo-47xheY.jpg",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2025-06-28T01:30:01.137Z",
      "updatedAt": "2026-04-21T11:21:12.314Z"
    }
  ],
  "meta": {
    "page": 23,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=23&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=24&limit=24",
    "prev": "/api/v1/files?page=22&limit=24"
  }
}