example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 15 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": 337,
      "userId": 56,
      "type": "mention",
      "title": "Lazaro Herzog mentioned you in a post",
      "body": "Supra denique tremo delinquo tepidus sum concedo.",
      "isRead": true,
      "link": "https://example.com/mention/gdzMB8SJ",
      "createdAt": "2025-09-08T18:44:56.648Z"
    },
    {
      "id": 338,
      "userId": 243,
      "type": "mention",
      "title": "Rosemary Krajcik mentioned you in a post",
      "body": "Quidem impedit ultra soluta caelum argentum unde ullus tyrannus curiositas.",
      "isRead": true,
      "link": "https://example.com/mention/T5U-N1im",
      "createdAt": "2026-05-10T16:10:57.299Z"
    },
    {
      "id": 339,
      "userId": 33,
      "type": "follow",
      "title": "Merl Jenkins started following you",
      "body": "Turpis id attonbitus vorax.",
      "isRead": false,
      "link": null,
      "createdAt": "2026-01-12T23:44:34.664Z"
    }
  ],
  "meta": {
    "page": 15,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=15&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=16&limit=24",
    "prev": "/api/v1/notifications?page=14&limit=24"
  }
}