example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 43 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": 1009,
      "userId": 106,
      "type": "follow",
      "title": "Ismael Ward started following you",
      "body": "Terreo amo ipsam vomito audacia ago cogito centum.",
      "isRead": true,
      "link": "https://example.com/follow/I8RvNte2",
      "createdAt": "2025-06-24T17:07:42.533Z"
    },
    {
      "id": 1010,
      "userId": 194,
      "type": "reply",
      "title": "Autumn Bartell replied to your comment",
      "body": "Agnitio utor corrumpo cursus virtus degenero totus vilitas.",
      "isRead": true,
      "link": null,
      "createdAt": "2026-03-22T16:17:00.117Z"
    },
    {
      "id": 1011,
      "userId": 236,
      "type": "follow",
      "title": "Gwendolyn Wyman started following you",
      "body": "Tyrannus triduana ante.",
      "isRead": false,
      "link": "https://example.com/follow/5r0GSw4w",
      "createdAt": "2025-12-07T17:39:31.189Z"
    }
  ],
  "meta": {
    "page": 43,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=43&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=44&limit=24",
    "prev": "/api/v1/notifications?page=42&limit=24"
  }
}