example-data.com
Menu
Browse docs and collections

files

files

Page 25 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": 577,
      "ownerUserId": 226,
      "name": "audio-43hXET.mp3",
      "mimeType": "audio/mpeg",
      "sizeBytes": 26301066,
      "url": "https://files.example.com/objects/577/audio-43hXET.mp3",
      "parentFolderId": 115,
      "isFolder": false,
      "createdAt": "2025-10-31T01:16:38.065Z",
      "updatedAt": "2026-05-12T18:39:38.648Z"
    },
    {
      "id": 578,
      "ownerUserId": 8,
      "name": "config-00dzc1.json",
      "mimeType": "application/json",
      "sizeBytes": 28931262,
      "url": "https://files.example.com/objects/578/config-00dzc1.json",
      "parentFolderId": 10,
      "isFolder": false,
      "createdAt": "2026-04-02T20:35:47.794Z",
      "updatedAt": "2026-04-24T01:29:29.966Z"
    },
    {
      "id": 579,
      "ownerUserId": 208,
      "name": "spreadsheet-LOcuCa.xlsx",
      "mimeType": "application/vnd.ms-excel",
      "sizeBytes": 33748303,
      "url": "https://files.example.com/objects/579/spreadsheet-LOcuCa.xlsx",
      "parentFolderId": 127,
      "isFolder": false,
      "createdAt": "2026-04-28T11:19:18.534Z",
      "updatedAt": "2026-05-08T08:52:09.736Z"
    }
  ],
  "meta": {
    "page": 25,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=25&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": null,
    "prev": "/api/v1/files?page=24&limit=24"
  }
}