script-KFBRYa.txt
- ownerUserId
-
Adan Weber @adan.weber61
- name
- script-KFBRYa.txt
- mimeType
- text/plain
- sizeBytes
- 44340320
- url
- https://files.example.com/objects/312/script-KFBRYa.txt
- parentFolderId
- —
- isFolder
- false
- createdAt
- updatedAt
Overview
files / #312
script-KFBRYa.txt
#312
Request
curl example
curl -sS \ "https://example-data.com/api/v1/files/312" \ -H "Accept: application/json"
JavaScript example
const res = await fetch( "https://example-data.com/api/v1/files/312" ); 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/312"
);
const file = (await res.json()) as File; Python example
import requests
res = requests.get(
"https://example-data.com/api/v1/files/312"
)
file = res.json() Response
{
"id": 312,
"ownerUserId": 155,
"name": "script-KFBRYa.txt",
"mimeType": "text/plain",
"sizeBytes": 44340320,
"url": "https://files.example.com/objects/312/script-KFBRYa.txt",
"parentFolderId": null,
"isFolder": false,
"createdAt": "2024-07-26T23:20:12.281Z",
"updatedAt": "2024-08-17T12:12:12.971Z"
}