example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 37 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": 865,
      "userId": 250,
      "type": "system",
      "title": "System notification",
      "body": "Vomer votum vindico pariatur valens tabella aro taedium tendo.",
      "isRead": false,
      "link": "https://example.com/system/zxH_8ZW-",
      "createdAt": "2026-02-22T11:07:51.541Z"
    },
    {
      "id": 866,
      "userId": 41,
      "type": "follow",
      "title": "Mia Renner started following you",
      "body": "Umquam perferendis volup verbum commodo bardus quod patrocinor incidunt adaugeo.",
      "isRead": false,
      "link": "https://example.com/follow/rKzYnuFQ",
      "createdAt": "2025-07-23T05:37:25.893Z"
    },
    {
      "id": 867,
      "userId": 160,
      "type": "system",
      "title": "System notification",
      "body": "Absum vulnus deludo.",
      "isRead": true,
      "link": "https://example.com/system/OTiqQmF1",
      "createdAt": "2025-11-19T17:18:14.170Z"
    }
  ],
  "meta": {
    "page": 37,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=37&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=38&limit=24",
    "prev": "/api/v1/notifications?page=36&limit=24"
  }
}