example-data.com
Menu
Browse docs and collections

Overview

attachments / #553

Activity #553

User #41 attached image/png (46201397 bytes)

4/18/2026, 11:49:39 PM

Component variants

Medium
Small

User #41 attached image/png (46201397 bytes) · 4/18/2026, 11:49:39 PM

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/attachments/553"
);
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/553"
);
const attachment = (await res.json()) as Attachment;

Python example

import requests

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

Response

{
  "id": 553,
  "userId": 41,
  "targetType": "comment",
  "targetId": 1397,
  "url": "https://picsum.photos/seed/attachment-553/1200/800",
  "mimeType": "image/png",
  "sizeBytes": 46201397,
  "createdAt": "2026-04-18T23:49:39.436Z"
}