photo-xhUXtM.jpg
- ownerUserId
-
Hermina West @hermina.west3
- name
- photo-xhUXtM.jpg
- mimeType
- image/jpeg
- sizeBytes
- 9781835
- url
- https://files.example.com/objects/264/photo-xhUXtM.jpg
- parentFolderId
- files/58
- isFolder
- false
- createdAt
- updatedAt
Overview
files / #264
photo-xhUXtM.jpg
#264
Request
curl example
curl -sS \ "https://example-data.com/api/v1/files/264" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/files/264" ); 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/264"
);
const file = (await res.json()) as File; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/files/264"
)
file = res.json() Response
{
"id": 264,
"ownerUserId": 51,
"name": "photo-xhUXtM.jpg",
"mimeType": "image/jpeg",
"sizeBytes": 9781835,
"url": "https://files.example.com/objects/264/photo-xhUXtM.jpg",
"parentFolderId": 58,
"isFolder": false,
"createdAt": "2024-10-13T13:57:43.150Z",
"updatedAt": "2025-03-10T08:04:50.863Z"
}