example-data.com
Menu
Browse docs and collections

Overview

reactions / #456

Activity #456

User #191 reacted love post #5

2/8/2025, 5:32:11 AM

Component variants

Medium
Small

User #191 reacted love post #5 · 2/8/2025, 5:32:11 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 456,
  "userId": 191,
  "targetType": "post",
  "targetId": 5,
  "type": "love",
  "createdAt": "2025-02-08T05:32:11.905Z"
}