example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 36 of 84.

Overview

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/notifications?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/notifications.d.ts https://example-data.com/types/notifications.d.ts
import type { Notification, ListEnvelope } from "./types/notifications";

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 841,
      "userId": 139,
      "type": "like",
      "title": "Arnaldo Friesen liked your post",
      "body": "Amissio verto dapifer.",
      "isRead": true,
      "link": "https://example.com/like/8oDJlyxb",
      "createdAt": "2025-07-07T09:04:19.343Z"
    },
    {
      "id": 842,
      "userId": 172,
      "type": "reply",
      "title": "Alexa Rippin replied to your comment",
      "body": "Sint thema stabilis ustulo cupio denuo temperantia cognatus vado congregatio.",
      "isRead": false,
      "link": "https://example.com/reply/Xl1R0x46",
      "createdAt": "2025-12-24T13:03:05.524Z"
    },
    {
      "id": 843,
      "userId": 67,
      "type": "follow",
      "title": "Santa Corwin started following you",
      "body": "Coepi architecto viridis studio adiuvo depromo.",
      "isRead": false,
      "link": "https://example.com/follow/BSWovJPb",
      "createdAt": "2025-11-13T08:08:31.037Z"
    }
  ],
  "meta": {
    "page": 36,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=36&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=37&limit=24",
    "prev": "/api/v1/notifications?page=35&limit=24"
  }
}