example-data.com
Menu
Browse docs and collections

files

files

Page 21 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": 481,
      "ownerUserId": 152,
      "name": "audio-ZpfwfS.mp3",
      "mimeType": "audio/mpeg",
      "sizeBytes": 25410021,
      "url": "https://files.example.com/objects/481/audio-ZpfwfS.mp3",
      "parentFolderId": 65,
      "isFolder": false,
      "createdAt": "2025-10-24T00:21:46.529Z",
      "updatedAt": "2026-04-23T05:18:12.428Z"
    },
    {
      "id": 482,
      "ownerUserId": 31,
      "name": "video-TyLjdh.mp4",
      "mimeType": "video/mp4",
      "sizeBytes": 47007225,
      "url": "https://files.example.com/objects/482/video-TyLjdh.mp4",
      "parentFolderId": 55,
      "isFolder": false,
      "createdAt": "2025-03-16T18:17:25.926Z",
      "updatedAt": "2025-12-13T04:54:33.582Z"
    },
    {
      "id": 483,
      "ownerUserId": 130,
      "name": "video-F44yX5.mp4",
      "mimeType": "video/mp4",
      "sizeBytes": 370713,
      "url": "https://files.example.com/objects/483/video-F44yX5.mp4",
      "parentFolderId": 36,
      "isFolder": false,
      "createdAt": "2025-12-15T13:02:48.231Z",
      "updatedAt": "2026-03-23T19:13:14.067Z"
    }
  ],
  "meta": {
    "page": 21,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=21&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=22&limit=24",
    "prev": "/api/v1/files?page=20&limit=24"
  }
}