example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 5 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": 97,
      "userId": 228,
      "type": "follow",
      "title": "Filiberto Fay started following you",
      "body": "Cernuus maiores cedo tollo thema trepide deporto minus delectatio.",
      "isRead": false,
      "link": "https://example.com/follow/3Rr1Wcnr",
      "createdAt": "2026-01-20T06:43:51.826Z"
    },
    {
      "id": 98,
      "userId": 79,
      "type": "follow",
      "title": "Arnaldo Friesen started following you",
      "body": "Ver triumphus absens constans bene delicate.",
      "isRead": true,
      "link": "https://example.com/follow/L09_nvPr",
      "createdAt": "2025-10-26T09:47:37.674Z"
    },
    {
      "id": 99,
      "userId": 121,
      "type": "reply",
      "title": "Gudrun Brakus replied to your comment",
      "body": "Deripio ex tenax quasi itaque aeternus spiculum agnosco.",
      "isRead": true,
      "link": "https://example.com/reply/OuCupvV1",
      "createdAt": "2025-10-20T09:52:44.486Z"
    }
  ],
  "meta": {
    "page": 5,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=5&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=6&limit=24",
    "prev": "/api/v1/notifications?page=4&limit=24"
  }
}