example-data.com
Menu
Browse docs and collections

files

files

Page 13 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": 289,
      "ownerUserId": 197,
      "name": "photo-K1n7Sf.jpg",
      "mimeType": "image/jpeg",
      "sizeBytes": 7657798,
      "url": "https://files.example.com/objects/289/photo-K1n7Sf.jpg",
      "parentFolderId": 50,
      "isFolder": false,
      "createdAt": "2026-04-01T21:21:31.142Z",
      "updatedAt": "2026-04-28T23:02:19.267Z"
    },
    {
      "id": 290,
      "ownerUserId": 149,
      "name": "data-GqcI9q.csv",
      "mimeType": "text/csv",
      "sizeBytes": 26291614,
      "url": "https://files.example.com/objects/290/data-GqcI9q.csv",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2025-12-28T11:28:39.691Z",
      "updatedAt": "2026-01-04T03:23:40.374Z"
    },
    {
      "id": 291,
      "ownerUserId": 97,
      "name": "data-ZG7Krt.csv",
      "mimeType": "text/csv",
      "sizeBytes": 21604621,
      "url": "https://files.example.com/objects/291/data-ZG7Krt.csv",
      "parentFolderId": null,
      "isFolder": false,
      "createdAt": "2025-11-14T20:10:38.806Z",
      "updatedAt": "2026-05-09T09:59:39.797Z"
    }
  ],
  "meta": {
    "page": 13,
    "limit": 24,
    "total": 600,
    "totalPages": 25
  },
  "links": {
    "self": "/api/v1/files?page=13&limit=24",
    "first": "/api/v1/files?page=1&limit=24",
    "last": "/api/v1/files?page=25&limit=24",
    "next": "/api/v1/files?page=14&limit=24",
    "prev": "/api/v1/files?page=12&limit=24"
  }
}