example-data.com
Menu
Browse docs and collections

reactions

reactions

Page 121 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": 2881,
      "userId": 246,
      "targetType": "post",
      "targetId": 199,
      "type": "laugh",
      "createdAt": "2026-01-04T22:03:32.458Z"
    },
    {
      "id": 2882,
      "userId": 121,
      "targetType": "post",
      "targetId": 374,
      "type": "love",
      "createdAt": "2025-12-24T15:05:10.741Z"
    },
    {
      "id": 2883,
      "userId": 72,
      "targetType": "post",
      "targetId": 9,
      "type": "love",
      "createdAt": "2024-10-21T09:14:02.501Z"
    }
  ],
  "meta": {
    "page": 121,
    "limit": 24,
    "total": 3000,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/reactions?page=121&limit=24",
    "first": "/api/v1/reactions?page=1&limit=24",
    "last": "/api/v1/reactions?page=125&limit=24",
    "next": "/api/v1/reactions?page=122&limit=24",
    "prev": "/api/v1/reactions?page=120&limit=24"
  }
}