example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 4 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": 73,
      "userId": 169,
      "type": "system",
      "title": "System notification",
      "body": "Verumtamen tui coepi arma nostrum sequi velut.",
      "isRead": true,
      "link": "https://example.com/system/xepX0lyK",
      "createdAt": "2025-07-05T14:09:55.613Z"
    },
    {
      "id": 74,
      "userId": 141,
      "type": "reply",
      "title": "Samson Stroman replied to your comment",
      "body": "Speciosus peior via deprecator cumque deporto trado aggero alius.",
      "isRead": true,
      "link": "https://example.com/reply/q6Om4t5X",
      "createdAt": "2026-01-02T11:13:15.149Z"
    },
    {
      "id": 75,
      "userId": 93,
      "type": "like",
      "title": "Bradford Doyle liked your post",
      "body": "Annus sollers taedium eveniet umquam cognomen deduco.",
      "isRead": false,
      "link": null,
      "createdAt": "2026-04-10T03:49:34.982Z"
    }
  ],
  "meta": {
    "page": 4,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=4&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=5&limit=24",
    "prev": "/api/v1/notifications?page=3&limit=24"
  }
}