example-data.com
Menu
Browse docs and collections

Overview

reactions / #2921

Activity #2921

User #60 reacted like post #364

2/16/2025, 5:42:48 AM

Component variants

Medium
Small

User #60 reacted like post #364 · 2/16/2025, 5:42:48 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 2921,
  "userId": 60,
  "targetType": "post",
  "targetId": 364,
  "type": "like",
  "createdAt": "2025-02-16T05:42:48.242Z"
}