example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 58 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": 1369,
      "userId": 227,
      "type": "follow",
      "title": "Jabari Farrell started following you",
      "body": "Expedita amo theologus volaticus consequatur delego defendo caries coniuratio vinco.",
      "isRead": true,
      "link": "https://example.com/follow/V2yRrMQI",
      "createdAt": "2026-05-05T18:55:59.922Z"
    },
    {
      "id": 1370,
      "userId": 40,
      "type": "system",
      "title": "System notification",
      "body": "Amo alias accusamus.",
      "isRead": false,
      "link": null,
      "createdAt": "2025-11-02T00:05:33.103Z"
    },
    {
      "id": 1371,
      "userId": 62,
      "type": "system",
      "title": "System notification",
      "body": "Earum nemo communis una quod.",
      "isRead": true,
      "link": "https://example.com/system/Q_cBRPPN",
      "createdAt": "2026-04-01T12:07:33.098Z"
    }
  ],
  "meta": {
    "page": 58,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=58&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=59&limit=24",
    "prev": "/api/v1/notifications?page=57&limit=24"
  }
}