example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 17 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": 385,
      "userId": 201,
      "type": "system",
      "title": "System notification",
      "body": "Brevis carbo desino aptus capio.",
      "isRead": false,
      "link": "https://example.com/system/6g_ZtspF",
      "createdAt": "2026-04-30T22:43:21.658Z"
    },
    {
      "id": 386,
      "userId": 39,
      "type": "reply",
      "title": "Jameson Considine replied to your comment",
      "body": "Uredo conatus somnus cognomen cicuta abundans surculus clamo dolorum delectus.",
      "isRead": true,
      "link": "https://example.com/reply/Q3vBJBSX",
      "createdAt": "2026-04-01T09:45:08.260Z"
    },
    {
      "id": 387,
      "userId": 20,
      "type": "like",
      "title": "Maymie Boehm liked your post",
      "body": "Dapifer depromo voluptatibus dolorum.",
      "isRead": true,
      "link": null,
      "createdAt": "2026-02-16T14:45:12.304Z"
    }
  ],
  "meta": {
    "page": 17,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=17&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=18&limit=24",
    "prev": "/api/v1/notifications?page=16&limit=24"
  }
}