example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 70 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": 1657,
      "userId": 246,
      "type": "reply",
      "title": "Whitney O'Reilly replied to your comment",
      "body": "Corrigo adsidue astrum campana casus quaerat cito.",
      "isRead": false,
      "link": "https://example.com/reply/J5UvBneH",
      "createdAt": "2026-05-03T14:39:35.795Z"
    },
    {
      "id": 1658,
      "userId": 240,
      "type": "reply",
      "title": "Cassidy Price-Schimmel replied to your comment",
      "body": "Utrum comis veritas sumptus territo civitas ter nemo quod.",
      "isRead": false,
      "link": null,
      "createdAt": "2026-05-11T01:00:34.159Z"
    },
    {
      "id": 1659,
      "userId": 26,
      "type": "like",
      "title": "Melba Collier liked your post",
      "body": "Adversus sollicito tepesco.",
      "isRead": false,
      "link": "https://example.com/like/AT1NmD1O",
      "createdAt": "2026-04-06T02:46:26.281Z"
    }
  ],
  "meta": {
    "page": 70,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=70&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=71&limit=24",
    "prev": "/api/v1/notifications?page=69&limit=24"
  }
}