example-data.com
Menu
Browse docs and collections

reactions

reactions

Page 15 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": 337,
      "userId": 115,
      "targetType": "post",
      "targetId": 252,
      "type": "angry",
      "createdAt": "2026-02-28T14:35:27.571Z"
    },
    {
      "id": 338,
      "userId": 47,
      "targetType": "post",
      "targetId": 495,
      "type": "sad",
      "createdAt": "2026-04-08T01:10:50.863Z"
    },
    {
      "id": 339,
      "userId": 237,
      "targetType": "post",
      "targetId": 14,
      "type": "sad",
      "createdAt": "2024-06-03T13:11:03.033Z"
    }
  ],
  "meta": {
    "page": 15,
    "limit": 24,
    "total": 3000,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/reactions?page=15&limit=24",
    "first": "/api/v1/reactions?page=1&limit=24",
    "last": "/api/v1/reactions?page=125&limit=24",
    "next": "/api/v1/reactions?page=16&limit=24",
    "prev": "/api/v1/reactions?page=14&limit=24"
  }
}