example-data.com
Menu
Browse docs and collections

Overview

reactions / #2603

Activity #2603

User #223 reacted angry post #221

5/30/2025, 5:52:24 AM

Component variants

Medium
Small

User #223 reacted angry post #221 · 5/30/2025, 5:52:24 AM

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/reactions/2603"
);
const reaction = await res.json();

TypeScript example

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

const res = await fetch(
  "https://example-data.com/api/v1/reactions/2603"
);
const reaction = (await res.json()) as Reaction;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/reactions/2603"
)
reaction = res.json()

Response

{
  "id": 2603,
  "userId": 223,
  "targetType": "post",
  "targetId": 221,
  "type": "angry",
  "createdAt": "2025-05-30T05:52:24.557Z"
}