example-data.com
Menu
Browse docs and collections

files

files

Page 14 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": 313,
      "ownerUserId": 118,
      "name": "image-319m0H.png",
      "mimeType": "image/png",
      "sizeBytes": 25593333,
      "url": "https://files.example.com/objects/313/image-319m0H.png",
      "parentFolderId": 82,
      "isFolder": false,
      "createdAt": "2024-07-24T12:04:07.766Z",
      "updatedAt": "2025-08-29T04:56:28.631Z"
    },
    {
      "id": 314,
      "ownerUserId": 152,
      "name": "spreadsheet-1B6EUn.xlsx",
      "mimeType": "application/vnd.ms-excel",
      "sizeBytes": 13908786,
      "url": "https://files.example.com/objects/314/spreadsheet-1B6EUn.xlsx",
      "parentFolderId": 40,
      "isFolder": false,
      "createdAt": "2025-12-01T16:02:07.882Z",
      "updatedAt": "2026-02-26T19:34:49.053Z"
    },
    {
      "id": 315,
      "ownerUserId": 43,
      "name": "photo-nAzo4z.jpg",
      "mimeType": "image/jpeg",
      "sizeBytes": 11677347,
      "url": "https://files.example.com/objects/315/photo-nAzo4z.jpg",
      "parentFolderId": 129,
      "isFolder": false,
      "createdAt": "2025-08-04T01:50:40.191Z",
      "updatedAt": "2026-04-13T12:58:23.509Z"
    }
  ],
  "meta": {
    "page": 14,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=14&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=15&limit=24",
    "prev": "/api/v1/files?page=13&limit=24"
  }
}