example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 26 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": 601,
      "userId": 129,
      "type": "like",
      "title": "Adrain Kris-Hermiston liked your post",
      "body": "Caste crastinus canto.",
      "isRead": true,
      "link": "https://example.com/like/v42HsqJy",
      "createdAt": "2025-10-15T17:27:03.600Z"
    },
    {
      "id": 602,
      "userId": 20,
      "type": "system",
      "title": "System notification",
      "body": "Amicitia sodalitas vilicus vilitas vilis cubitum autem tui voluptate brevis.",
      "isRead": false,
      "link": "https://example.com/system/wAwOwnSz",
      "createdAt": "2025-08-24T03:17:08.782Z"
    },
    {
      "id": 603,
      "userId": 176,
      "type": "follow",
      "title": "Margaretta Barrows started following you",
      "body": "Beneficium ago adimpleo triduana.",
      "isRead": true,
      "link": "https://example.com/follow/DfQrCgD0",
      "createdAt": "2025-12-10T17:14:28.448Z"
    }
  ],
  "meta": {
    "page": 26,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=26&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=27&limit=24",
    "prev": "/api/v1/notifications?page=25&limit=24"
  }
}