example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 23 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": 529,
      "userId": 171,
      "type": "follow",
      "title": "Alexa Rippin started following you",
      "body": "Debitis comis excepturi cribro ab corrupti varietas comedo.",
      "isRead": true,
      "link": null,
      "createdAt": "2026-04-21T19:53:14.702Z"
    },
    {
      "id": 530,
      "userId": 158,
      "type": "follow",
      "title": "Wallace Batz started following you",
      "body": "Aedificium cursim credo delicate denuo territo utique aeternus est.",
      "isRead": false,
      "link": "https://example.com/follow/oZusGpYn",
      "createdAt": "2025-10-24T20:58:16.145Z"
    },
    {
      "id": 531,
      "userId": 245,
      "type": "like",
      "title": "Jesse Kiehn liked your post",
      "body": "Valde inventore adfero perspiciatis incidunt aqua calcar velum.",
      "isRead": false,
      "link": null,
      "createdAt": "2025-07-29T18:49:29.671Z"
    }
  ],
  "meta": {
    "page": 23,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=23&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=24&limit=24",
    "prev": "/api/v1/notifications?page=22&limit=24"
  }
}