example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 82 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": 1945,
      "userId": 233,
      "type": "system",
      "title": "System notification",
      "body": "Pauper uter voluptatibus tamquam virga sui aggredior aut viduo.",
      "isRead": true,
      "link": "https://example.com/system/XbTRyScp",
      "createdAt": "2025-07-18T13:02:33.251Z"
    },
    {
      "id": 1946,
      "userId": 181,
      "type": "reply",
      "title": "Lacy Gusikowski replied to your comment",
      "body": "Architecto creptio adsidue viriliter esse truculenter qui possimus desidero.",
      "isRead": false,
      "link": "https://example.com/reply/0ye02QcY",
      "createdAt": "2025-08-01T12:49:53.683Z"
    },
    {
      "id": 1947,
      "userId": 7,
      "type": "mention",
      "title": "Mckenna Hegmann-Price mentioned you in a post",
      "body": "Decumbo adamo culpo.",
      "isRead": false,
      "link": "https://example.com/mention/AMqkKAmF",
      "createdAt": "2026-01-19T05:55:16.947Z"
    }
  ],
  "meta": {
    "page": 82,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=82&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=83&limit=24",
    "prev": "/api/v1/notifications?page=81&limit=24"
  }
}