example-data.com
Menu
Browse docs and collections

Overview

attachments / #171

Activity #171

User #179 attached video/mp4 (32616215 bytes)

12/25/2025, 1:01:00 AM

Component variants

Medium
Small

User #179 attached video/mp4 (32616215 bytes) · 12/25/2025, 1:01:00 AM

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/attachments/171" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/attachments/171"
);
const attachment = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/attachments.d.ts https://example-data.com/types/attachments.d.ts
import type { Attachment } from "./types/attachments";

const res = await fetch(
  "https://example-data.com/api/v1/attachments/171"
);
const attachment = (await res.json()) as Attachment;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/attachments/171"
)
attachment = res.json()

Response

{
  "id": 171,
  "userId": 179,
  "targetType": "comment",
  "targetId": 1349,
  "url": "https://example.com/files/attachment-171.mp4",
  "mimeType": "video/mp4",
  "sizeBytes": 32616215,
  "createdAt": "2025-12-25T01:01:00.786Z"
}