example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 25 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": 577,
      "userId": 81,
      "type": "follow",
      "title": "Casimir Smitham started following you",
      "body": "Surculus delicate denego architecto.",
      "isRead": true,
      "link": "https://example.com/follow/dZpLspXp",
      "createdAt": "2026-02-15T01:11:15.512Z"
    },
    {
      "id": 578,
      "userId": 37,
      "type": "system",
      "title": "System notification",
      "body": "Admitto recusandae vis curriculum stultus suspendo.",
      "isRead": true,
      "link": "https://example.com/system/74VEm74t",
      "createdAt": "2025-11-20T13:07:44.115Z"
    },
    {
      "id": 579,
      "userId": 137,
      "type": "follow",
      "title": "Lazaro Rath started following you",
      "body": "Illum viridis bestia nemo.",
      "isRead": false,
      "link": "https://example.com/follow/p70r23fm",
      "createdAt": "2026-05-01T03:35:07.196Z"
    }
  ],
  "meta": {
    "page": 25,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=25&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=26&limit=24",
    "prev": "/api/v1/notifications?page=24&limit=24"
  }
}