example-data.com
Menu
Browse docs and collections

reactions

reactions

Page 124 of 125.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/reactions?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/reactions?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/reactions";

const res = await fetch(
  "https://example-data.com/api/v1/reactions?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Reaction>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/reactions",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 2953,
      "userId": 117,
      "targetType": "post",
      "targetId": 228,
      "type": "angry",
      "createdAt": "2026-02-13T08:32:16.434Z"
    },
    {
      "id": 2954,
      "userId": 223,
      "targetType": "post",
      "targetId": 275,
      "type": "laugh",
      "createdAt": "2025-01-24T13:57:53.707Z"
    },
    {
      "id": 2955,
      "userId": 10,
      "targetType": "post",
      "targetId": 212,
      "type": "sad",
      "createdAt": "2025-10-17T22:03:10.596Z"
    }
  ],
  "meta": {
    "page": 124,
    "limit": 24,
    "total": 3000,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/reactions?page=124&limit=24",
    "first": "/api/v1/reactions?page=1&limit=24",
    "last": "/api/v1/reactions?page=125&limit=24",
    "next": "/api/v1/reactions?page=125&limit=24",
    "prev": "/api/v1/reactions?page=123&limit=24"
  }
}