photo-Ob7wox.jpg
- ownerUserId
-
Rickie Sporer @rickie.sporer50
- name
- photo-Ob7wox.jpg
- mimeType
- image/jpeg
- sizeBytes
- 51475897
- url
- https://files.example.com/objects/173/photo-Ob7wox.jpg
- parentFolderId
- files/71
- isFolder
- false
- createdAt
- updatedAt
Overview
files / #173
photo-Ob7wox.jpg
#173
Request
curl example
curl -sS \ "https://example-data.com/api/v1/files/173" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/files/173" ); 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/173"
);
const file = (await res.json()) as File; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/files/173"
)
file = res.json() Response
{
"id": 173,
"ownerUserId": 149,
"name": "photo-Ob7wox.jpg",
"mimeType": "image/jpeg",
"sizeBytes": 51475897,
"url": "https://files.example.com/objects/173/photo-Ob7wox.jpg",
"parentFolderId": 71,
"isFolder": false,
"createdAt": "2024-09-24T22:17:41.109Z",
"updatedAt": "2024-10-11T01:14:55.606Z"
}