example-data.com
Menu
Browse docs and collections

files

files

Page 20 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": 457,
      "ownerUserId": 43,
      "name": "report-z6meT8.pdf",
      "mimeType": "application/pdf",
      "sizeBytes": 26666639,
      "url": "https://files.example.com/objects/457/report-z6meT8.pdf",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2025-07-15T19:30:06.846Z",
      "updatedAt": "2026-05-05T01:37:32.650Z"
    },
    {
      "id": 458,
      "ownerUserId": 193,
      "name": "data-HSLf0U.csv",
      "mimeType": "text/csv",
      "sizeBytes": 38309158,
      "url": "https://files.example.com/objects/458/data-HSLf0U.csv",
      "parentFolderId": 53,
      "isFolder": false,
      "createdAt": "2025-09-04T17:25:50.402Z",
      "updatedAt": "2025-12-17T04:01:07.309Z"
    },
    {
      "id": 459,
      "ownerUserId": 222,
      "name": "photo-CM4sOF.jpg",
      "mimeType": "image/jpeg",
      "sizeBytes": 33378129,
      "url": "https://files.example.com/objects/459/photo-CM4sOF.jpg",
      "parentFolderId": 61,
      "isFolder": false,
      "createdAt": "2025-12-11T10:43:04.865Z",
      "updatedAt": "2026-04-16T14:43:13.139Z"
    }
  ],
  "meta": {
    "page": 20,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=20&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=21&limit=24",
    "prev": "/api/v1/files?page=19&limit=24"
  }
}