example-data.com
Menu
Browse docs and collections

Overview

reactions / #1402

Activity #1402

User #60 reacted love post #435

5/21/2025, 3:16:28 PM

Component variants

Medium
Small

User #60 reacted love post #435 · 5/21/2025, 3:16:28 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1402,
  "userId": 60,
  "targetType": "post",
  "targetId": 435,
  "type": "love",
  "createdAt": "2025-05-21T15:16:28.856Z"
}