example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 39 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": 913,
      "userId": 69,
      "type": "system",
      "title": "System notification",
      "body": "Auditor temptatio utrum.",
      "isRead": true,
      "link": "https://example.com/system/E3uzCvXm",
      "createdAt": "2025-09-15T15:41:23.831Z"
    },
    {
      "id": 914,
      "userId": 163,
      "type": "mention",
      "title": "Cassidy Christiansen mentioned you in a post",
      "body": "Aro laboriosam cura alius usus arbustum vis.",
      "isRead": true,
      "link": "https://example.com/mention/Kgu7vKTZ",
      "createdAt": "2025-05-31T02:49:14.566Z"
    },
    {
      "id": 915,
      "userId": 129,
      "type": "mention",
      "title": "Margaretta Barrows mentioned you in a post",
      "body": "Titulus thymum cavus auctus.",
      "isRead": true,
      "link": "https://example.com/mention/D9Fs2nYv",
      "createdAt": "2025-09-24T20:34:26.294Z"
    }
  ],
  "meta": {
    "page": 39,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=39&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=40&limit=24",
    "prev": "/api/v1/notifications?page=38&limit=24"
  }
}