example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 13 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": 289,
      "userId": 131,
      "type": "system",
      "title": "System notification",
      "body": "Adinventitias terror magni.",
      "isRead": false,
      "link": "https://example.com/system/_hi7P-Ee",
      "createdAt": "2026-03-27T20:31:26.236Z"
    },
    {
      "id": 290,
      "userId": 54,
      "type": "mention",
      "title": "Rubye Emmerich mentioned you in a post",
      "body": "Ascit nemo decerno cohaero sortitus videlicet.",
      "isRead": false,
      "link": "https://example.com/mention/B6ljZZF2",
      "createdAt": "2025-08-20T07:00:31.316Z"
    },
    {
      "id": 291,
      "userId": 18,
      "type": "system",
      "title": "System notification",
      "body": "Repellendus complectus crux.",
      "isRead": false,
      "link": null,
      "createdAt": "2025-06-02T15:23:25.881Z"
    }
  ],
  "meta": {
    "page": 13,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=13&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=14&limit=24",
    "prev": "/api/v1/notifications?page=12&limit=24"
  }
}