example-data.com
Menu
Browse docs and collections

files

files

Page 11 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": 241,
      "ownerUserId": 106,
      "name": "config-KM4d88.json",
      "mimeType": "application/json",
      "sizeBytes": 16733432,
      "url": "https://files.example.com/objects/241/config-KM4d88.json",
      "parentFolderId": 78,
      "isFolder": false,
      "createdAt": "2024-10-13T22:44:44.462Z",
      "updatedAt": "2026-04-20T05:56:52.836Z"
    },
    {
      "id": 242,
      "ownerUserId": 73,
      "name": "image-75rsn1.png",
      "mimeType": "image/png",
      "sizeBytes": 20432618,
      "url": "https://files.example.com/objects/242/image-75rsn1.png",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2024-10-01T00:48:12.311Z",
      "updatedAt": "2025-04-25T07:23:39.676Z"
    },
    {
      "id": 243,
      "ownerUserId": 105,
      "name": "photo-i4Uw93.jpg",
      "mimeType": "image/jpeg",
      "sizeBytes": 4242152,
      "url": "https://files.example.com/objects/243/photo-i4Uw93.jpg",
      "parentFolderId": 48,
      "isFolder": false,
      "createdAt": "2025-12-19T12:48:13.415Z",
      "updatedAt": "2026-02-04T16:34:40.105Z"
    }
  ],
  "meta": {
    "page": 11,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=11&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=12&limit=24",
    "prev": "/api/v1/files?page=10&limit=24"
  }
}