example-data.com
Menu
Browse docs and collections

Overview

reactions / #2531

Activity #2531

User #27 reacted like post #265

2/17/2025, 9:04:58 PM

Component variants

Medium
Small

User #27 reacted like post #265 · 2/17/2025, 9:04:58 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 2531,
  "userId": 27,
  "targetType": "post",
  "targetId": 265,
  "type": "like",
  "createdAt": "2025-02-17T21:04:58.925Z"
}