example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 79 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": 1873,
      "userId": 30,
      "type": "system",
      "title": "System notification",
      "body": "Vesica caterva cohaero trepide alo.",
      "isRead": false,
      "link": "https://example.com/system/oKEo0-sQ",
      "createdAt": "2025-10-05T06:19:47.693Z"
    },
    {
      "id": 1874,
      "userId": 154,
      "type": "system",
      "title": "System notification",
      "body": "Temporibus caterva usitas crur coerceo sulum tabgo adaugeo tergeo argentum.",
      "isRead": false,
      "link": null,
      "createdAt": "2026-03-06T03:12:42.546Z"
    },
    {
      "id": 1875,
      "userId": 220,
      "type": "mention",
      "title": "Vida Kunde-Koepp mentioned you in a post",
      "body": "Magni a cras suscipio vivo tabella umbra.",
      "isRead": true,
      "link": "https://example.com/mention/uJHvfaej",
      "createdAt": "2025-11-15T01:02:50.889Z"
    }
  ],
  "meta": {
    "page": 79,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=79&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=80&limit=24",
    "prev": "/api/v1/notifications?page=78&limit=24"
  }
}