example-data.com
Menu
Browse docs and collections

Overview

attachments / #36

Activity #36

User #133 attached image/webp (34525821 bytes)

4/10/2026, 7:18:20 PM

Component variants

Medium
Small

User #133 attached image/webp (34525821 bytes) · 4/10/2026, 7:18:20 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 36,
  "userId": 133,
  "targetType": "comment",
  "targetId": 747,
  "url": "https://picsum.photos/seed/attachment-36/400/300",
  "mimeType": "image/webp",
  "sizeBytes": 34525821,
  "createdAt": "2026-04-10T19:18:20.059Z"
}