example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 71 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": 1681,
      "userId": 206,
      "type": "mention",
      "title": "Tiara Wilderman mentioned you in a post",
      "body": "Iure tabula conculco itaque compono aestas rem amiculum atrocitas.",
      "isRead": false,
      "link": "https://example.com/mention/Rfra9UjP",
      "createdAt": "2026-01-15T04:53:31.753Z"
    },
    {
      "id": 1682,
      "userId": 207,
      "type": "system",
      "title": "System notification",
      "body": "Defero textus vomer.",
      "isRead": false,
      "link": "https://example.com/system/OcTpTYJr",
      "createdAt": "2025-10-27T12:35:06.955Z"
    },
    {
      "id": 1683,
      "userId": 242,
      "type": "reply",
      "title": "Ruben Terry replied to your comment",
      "body": "Deporto desolo minus depopulo harum tribuo rerum desparatus.",
      "isRead": false,
      "link": "https://example.com/reply/rrRC7a1Z",
      "createdAt": "2025-11-29T12:39:19.690Z"
    }
  ],
  "meta": {
    "page": 71,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=71&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=72&limit=24",
    "prev": "/api/v1/notifications?page=70&limit=24"
  }
}