example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 35 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": 817,
      "userId": 224,
      "type": "mention",
      "title": "Everett Yundt mentioned you in a post",
      "body": "Adeptio clibanus adficio altus rem caritas vulnus tabgo confido compello.",
      "isRead": true,
      "link": null,
      "createdAt": "2025-11-11T21:14:30.393Z"
    },
    {
      "id": 818,
      "userId": 109,
      "type": "system",
      "title": "System notification",
      "body": "Adversus mollitia suffragium auditor.",
      "isRead": false,
      "link": "https://example.com/system/WJkXU_of",
      "createdAt": "2026-01-21T02:31:43.594Z"
    },
    {
      "id": 819,
      "userId": 51,
      "type": "system",
      "title": "System notification",
      "body": "Utrimque eaque acies.",
      "isRead": false,
      "link": "https://example.com/system/5w_UUMs6",
      "createdAt": "2025-06-20T20:28:37.294Z"
    }
  ],
  "meta": {
    "page": 35,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=35&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=36&limit=24",
    "prev": "/api/v1/notifications?page=34&limit=24"
  }
}