example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 65 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": 1537,
      "userId": 222,
      "type": "follow",
      "title": "Green Kozey started following you",
      "body": "Adicio voro sublime magni curiositas viscus.",
      "isRead": false,
      "link": "https://example.com/follow/3-7FSB2V",
      "createdAt": "2026-03-23T19:38:00.343Z"
    },
    {
      "id": 1538,
      "userId": 203,
      "type": "follow",
      "title": "Ethyl Auer started following you",
      "body": "Canis vix dolorem deserunt.",
      "isRead": true,
      "link": null,
      "createdAt": "2026-03-29T14:40:40.802Z"
    },
    {
      "id": 1539,
      "userId": 157,
      "type": "like",
      "title": "Alexander Beahan liked your post",
      "body": "Amiculum beatus subseco degusto alias cognomen capitulus bonus advenio thorax.",
      "isRead": true,
      "link": "https://example.com/like/pY6wPCKI",
      "createdAt": "2025-12-20T04:30:04.942Z"
    }
  ],
  "meta": {
    "page": 65,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=65&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=66&limit=24",
    "prev": "/api/v1/notifications?page=64&limit=24"
  }
}