example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 73 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": 1729,
      "userId": 247,
      "type": "system",
      "title": "System notification",
      "body": "Ullus usitas sollicito sono caelum suppono modi iusto ambitus cohors.",
      "isRead": false,
      "link": "https://example.com/system/GKedFkB8",
      "createdAt": "2025-08-17T02:41:55.260Z"
    },
    {
      "id": 1730,
      "userId": 232,
      "type": "follow",
      "title": "Berniece Medhurst started following you",
      "body": "Alter optio iure coma cui excepturi congregatio.",
      "isRead": false,
      "link": "https://example.com/follow/AS_lkKqN",
      "createdAt": "2026-02-18T17:50:46.210Z"
    },
    {
      "id": 1731,
      "userId": 71,
      "type": "mention",
      "title": "Claudie Hagenes mentioned you in a post",
      "body": "Coerceo conforto uredo vulgus canto turpis cena.",
      "isRead": true,
      "link": null,
      "createdAt": "2026-05-12T12:27:11.332Z"
    }
  ],
  "meta": {
    "page": 73,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=73&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=74&limit=24",
    "prev": "/api/v1/notifications?page=72&limit=24"
  }
}