example-data.com
Menu
Browse docs and collections

Overview

reactions / #2130

Activity #2130

User #113 reacted sad post #287

7/8/2025, 4:00:11 PM

Component variants

Medium
Small

User #113 reacted sad post #287 · 7/8/2025, 4:00:11 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 2130,
  "userId": 113,
  "targetType": "post",
  "targetId": 287,
  "type": "sad",
  "createdAt": "2025-07-08T16:00:11.617Z"
}