example-data.com
Menu
Browse docs and collections

files

files

Page 15 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": 337,
      "ownerUserId": 116,
      "name": "audio-tj34Of.mp3",
      "mimeType": "audio/mpeg",
      "sizeBytes": 36011777,
      "url": "https://files.example.com/objects/337/audio-tj34Of.mp3",
      "parentFolderId": 23,
      "isFolder": false,
      "createdAt": "2024-07-11T13:48:56.041Z",
      "updatedAt": "2025-03-09T18:22:25.250Z"
    },
    {
      "id": 338,
      "ownerUserId": 80,
      "name": "presentation-GYDRsc.pptx",
      "mimeType": "application/vnd.ms-powerpoint",
      "sizeBytes": 24019895,
      "url": "https://files.example.com/objects/338/presentation-GYDRsc.pptx",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2025-06-03T04:42:09.347Z",
      "updatedAt": "2025-11-12T14:00:21.647Z"
    },
    {
      "id": 339,
      "ownerUserId": 52,
      "name": "config-BnV43u.json",
      "mimeType": "application/json",
      "sizeBytes": 2770165,
      "url": "https://files.example.com/objects/339/config-BnV43u.json",
      "parentFolderId": 55,
      "isFolder": false,
      "createdAt": "2024-07-28T16:56:44.476Z",
      "updatedAt": "2025-12-10T17:03:54.840Z"
    }
  ],
  "meta": {
    "page": 15,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=15&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=16&limit=24",
    "prev": "/api/v1/files?page=14&limit=24"
  }
}