example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 74 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": 1753,
      "userId": 48,
      "type": "reply",
      "title": "Alex Lang replied to your comment",
      "body": "Suadeo usus exercitationem certe vesper tracto aegrus vel.",
      "isRead": false,
      "link": "https://example.com/reply/2bdeopbr",
      "createdAt": "2025-08-18T01:06:47.810Z"
    },
    {
      "id": 1754,
      "userId": 167,
      "type": "system",
      "title": "System notification",
      "body": "Sodalitas arbitro verecundia est delibero deprecator amet autus depulso apud.",
      "isRead": true,
      "link": null,
      "createdAt": "2025-08-28T08:47:23.168Z"
    },
    {
      "id": 1755,
      "userId": 204,
      "type": "follow",
      "title": "Mike Zemlak started following you",
      "body": "Aliquid dolorum absum deludo colo velit sono clementia.",
      "isRead": false,
      "link": "https://example.com/follow/jqKKNT47",
      "createdAt": "2025-06-05T05:22:23.418Z"
    }
  ],
  "meta": {
    "page": 74,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=74&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=75&limit=24",
    "prev": "/api/v1/notifications?page=73&limit=24"
  }
}