video-HYQ9Ao.mp4
- ownerUserId
-
Jewell Olson @jewell_olson2
- name
- video-HYQ9Ao.mp4
- mimeType
- video/mp4
- sizeBytes
- 3604708
- url
- https://files.example.com/objects/586/video-HYQ9Ao.mp4
- parentFolderId
- files/49
- isFolder
- false
- createdAt
- updatedAt
Overview
files / #586
video-HYQ9Ao.mp4
#586
Request
curl example
curl -sS \ "https://example-data.com/api/v1/files/586" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/files/586" ); const file = 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 } from "./types/files";
const res = await fetch(
"https://example-data.com/api/v1/files/586"
);
const file = (await res.json()) as File; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/files/586"
)
file = res.json() Response
{
"id": 586,
"ownerUserId": 68,
"name": "video-HYQ9Ao.mp4",
"mimeType": "video/mp4",
"sizeBytes": 3604708,
"url": "https://files.example.com/objects/586/video-HYQ9Ao.mp4",
"parentFolderId": 49,
"isFolder": false,
"createdAt": "2024-08-23T03:01:48.707Z",
"updatedAt": "2024-08-26T01:57:36.662Z"
}