example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 3 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": 49,
      "userId": 97,
      "type": "like",
      "title": "Lazaro Herzog liked your post",
      "body": "Conicio aegrus tardus volutabrum tribuo audentia cariosus cariosus culpo.",
      "isRead": false,
      "link": "https://example.com/like/xa3Y3URO",
      "createdAt": "2025-08-22T18:02:34.392Z"
    },
    {
      "id": 50,
      "userId": 161,
      "type": "reply",
      "title": "Wiley Rodriguez replied to your comment",
      "body": "Pauper aptus tergiversatio termes.",
      "isRead": true,
      "link": "https://example.com/reply/ssYNWmt-",
      "createdAt": "2025-08-29T14:53:14.529Z"
    },
    {
      "id": 51,
      "userId": 193,
      "type": "reply",
      "title": "Margaretta Barrows replied to your comment",
      "body": "Admiratio summopere depromo tendo eum.",
      "isRead": true,
      "link": null,
      "createdAt": "2026-03-17T16:18:09.561Z"
    }
  ],
  "meta": {
    "page": 3,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=3&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=4&limit=24",
    "prev": "/api/v1/notifications?page=2&limit=24"
  }
}