example-data.com
Menu
Browse docs and collections

Overview

reactions / #512

Activity #512

User #233 reacted love post #127

7/31/2025, 5:45:30 AM

Component variants

Medium
Small

User #233 reacted love post #127 · 7/31/2025, 5:45:30 AM

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/reactions/512"
);
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/512"
);
const reaction = (await res.json()) as Reaction;

Python example

import requests

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

Response

{
  "id": 512,
  "userId": 233,
  "targetType": "post",
  "targetId": 127,
  "type": "love",
  "createdAt": "2025-07-31T05:45:30.392Z"
}