example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 31 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": 721,
      "userId": 62,
      "type": "system",
      "title": "System notification",
      "body": "Defessus arcesso custodia sopor a solutio suffragium delego crudelis.",
      "isRead": false,
      "link": "https://example.com/system/bqiC3lc5",
      "createdAt": "2025-11-29T21:05:56.604Z"
    },
    {
      "id": 722,
      "userId": 114,
      "type": "follow",
      "title": "Koby Pouros started following you",
      "body": "Conservo civitas decor ullus arbitro copia conqueror urbs.",
      "isRead": true,
      "link": null,
      "createdAt": "2026-03-01T22:09:38.136Z"
    },
    {
      "id": 723,
      "userId": 133,
      "type": "system",
      "title": "System notification",
      "body": "Vaco creber vereor advenio vehemens caecus.",
      "isRead": false,
      "link": "https://example.com/system/ftt86QEp",
      "createdAt": "2025-09-12T12:27:06.311Z"
    }
  ],
  "meta": {
    "page": 31,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=31&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=32&limit=24",
    "prev": "/api/v1/notifications?page=30&limit=24"
  }
}