example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 83 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": 1969,
      "userId": 150,
      "type": "system",
      "title": "System notification",
      "body": "Suffoco repellat cedo aliqua vitae defungo.",
      "isRead": false,
      "link": null,
      "createdAt": "2025-12-25T20:51:56.732Z"
    },
    {
      "id": 1970,
      "userId": 104,
      "type": "reply",
      "title": "Rosemary Krajcik replied to your comment",
      "body": "Conitor adhuc suspendo via enim.",
      "isRead": false,
      "link": null,
      "createdAt": "2025-09-04T10:52:21.978Z"
    },
    {
      "id": 1971,
      "userId": 4,
      "type": "system",
      "title": "System notification",
      "body": "Soluta ipsum suscipit.",
      "isRead": false,
      "link": "https://example.com/system/ArTimKyH",
      "createdAt": "2025-11-19T22:08:10.745Z"
    }
  ],
  "meta": {
    "page": 83,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=83&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=84&limit=24",
    "prev": "/api/v1/notifications?page=82&limit=24"
  }
}