example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 28 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": 649,
      "userId": 113,
      "type": "follow",
      "title": "Jaylon Conroy started following you",
      "body": "Cruciamentum denuo demitto.",
      "isRead": true,
      "link": "https://example.com/follow/c5RnMiYY",
      "createdAt": "2026-02-07T15:02:53.096Z"
    },
    {
      "id": 650,
      "userId": 225,
      "type": "reply",
      "title": "Karlee Hudson-Turner replied to your comment",
      "body": "Quis traho demergo denego cupiditate placeat reiciendis virga benevolentia.",
      "isRead": true,
      "link": "https://example.com/reply/Hpo96Qg8",
      "createdAt": "2026-04-19T14:43:33.945Z"
    },
    {
      "id": 651,
      "userId": 177,
      "type": "mention",
      "title": "Cruz Okuneva mentioned you in a post",
      "body": "Atrocitas clam voluptatem cernuus tripudio chirographum commodi eveniet.",
      "isRead": true,
      "link": null,
      "createdAt": "2025-11-24T03:18:24.039Z"
    }
  ],
  "meta": {
    "page": 28,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=28&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=29&limit=24",
    "prev": "/api/v1/notifications?page=27&limit=24"
  }
}