example-data.com
Menu
Browse docs and collections

Overview

reactions / #1083

Activity #1083

User #3 reacted laugh post #450

4/24/2025, 11:47:36 AM

Component variants

Medium
Small

User #3 reacted laugh post #450 · 4/24/2025, 11:47:36 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1083,
  "userId": 3,
  "targetType": "post",
  "targetId": 450,
  "type": "laugh",
  "createdAt": "2025-04-24T11:47:36.574Z"
}