example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 14 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": 313,
      "userId": 147,
      "type": "system",
      "title": "System notification",
      "body": "Ventosus tolero tum temptatio caput.",
      "isRead": true,
      "link": "https://example.com/system/dfV1r46C",
      "createdAt": "2026-02-05T15:20:14.681Z"
    },
    {
      "id": 314,
      "userId": 177,
      "type": "like",
      "title": "Orrin Grant liked your post",
      "body": "Supplanto vir clementia defero voluntarius sophismata.",
      "isRead": true,
      "link": "https://example.com/like/_X_ZYXti",
      "createdAt": "2026-04-11T12:30:05.020Z"
    },
    {
      "id": 315,
      "userId": 160,
      "type": "system",
      "title": "System notification",
      "body": "Blandior blandior velut sopor caute demonstro adduco acquiro vergo.",
      "isRead": true,
      "link": null,
      "createdAt": "2025-09-08T21:38:43.167Z"
    }
  ],
  "meta": {
    "page": 14,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=14&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=15&limit=24",
    "prev": "/api/v1/notifications?page=13&limit=24"
  }
}