example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 18 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": 409,
      "userId": 81,
      "type": "reply",
      "title": "Charlene Roberts replied to your comment",
      "body": "Vix considero avaritia aduro caste.",
      "isRead": false,
      "link": "https://example.com/reply/iMXeAY_M",
      "createdAt": "2025-07-03T05:13:29.335Z"
    },
    {
      "id": 410,
      "userId": 156,
      "type": "reply",
      "title": "Wilton Dietrich replied to your comment",
      "body": "Custodia creptio balbus canonicus.",
      "isRead": true,
      "link": "https://example.com/reply/7_ZezQNw",
      "createdAt": "2025-11-26T05:45:41.958Z"
    },
    {
      "id": 411,
      "userId": 228,
      "type": "like",
      "title": "Jarrell Flatley liked your post",
      "body": "Voluptatibus neque addo ustulo defero voluntarius.",
      "isRead": false,
      "link": "https://example.com/like/Taeoz1t_",
      "createdAt": "2025-12-08T09:16:01.549Z"
    }
  ],
  "meta": {
    "page": 18,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=18&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=19&limit=24",
    "prev": "/api/v1/notifications?page=17&limit=24"
  }
}