example-data.com
Menu
Browse docs and collections

reactions

reactions

Page 117 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": 2785,
      "userId": 167,
      "targetType": "post",
      "targetId": 210,
      "type": "love",
      "createdAt": "2025-04-30T07:06:56.042Z"
    },
    {
      "id": 2786,
      "userId": 176,
      "targetType": "post",
      "targetId": 99,
      "type": "like",
      "createdAt": "2025-04-12T07:51:26.896Z"
    },
    {
      "id": 2787,
      "userId": 74,
      "targetType": "post",
      "targetId": 276,
      "type": "angry",
      "createdAt": "2025-04-16T01:00:47.566Z"
    }
  ],
  "meta": {
    "page": 117,
    "limit": 24,
    "total": 3000,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/reactions?page=117&limit=24",
    "first": "/api/v1/reactions?page=1&limit=24",
    "last": "/api/v1/reactions?page=125&limit=24",
    "next": "/api/v1/reactions?page=118&limit=24",
    "prev": "/api/v1/reactions?page=116&limit=24"
  }
}