photo-mdhS3D.jpg
- ownerUserId
-
Vidal Parker @vidal_parker12
- name
- photo-mdhS3D.jpg
- mimeType
- image/jpeg
- sizeBytes
- 3088656
- url
- https://files.example.com/objects/175/photo-mdhS3D.jpg
- parentFolderId
- files/93
- isFolder
- false
- createdAt
- updatedAt
Overview
files / #175
photo-mdhS3D.jpg
#175
Request
curl example
curl -sS \ "https://example-data.com/api/v1/files/175" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/files/175" ); 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/175"
);
const file = (await res.json()) as File; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/files/175"
)
file = res.json() Response
{
"id": 175,
"ownerUserId": 203,
"name": "photo-mdhS3D.jpg",
"mimeType": "image/jpeg",
"sizeBytes": 3088656,
"url": "https://files.example.com/objects/175/photo-mdhS3D.jpg",
"parentFolderId": 93,
"isFolder": false,
"createdAt": "2024-11-13T21:50:46.333Z",
"updatedAt": "2025-01-07T19:00:52.669Z"
}