example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 24 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": 553,
      "userId": 144,
      "type": "follow",
      "title": "Daisy Kuhic started following you",
      "body": "Cito ago conculco cum ipsam saepe caput thesaurus caelestis tremo.",
      "isRead": false,
      "link": "https://example.com/follow/z9FPg0hc",
      "createdAt": "2025-07-27T05:30:21.424Z"
    },
    {
      "id": 554,
      "userId": 107,
      "type": "follow",
      "title": "Oran Torphy started following you",
      "body": "Vulgus conitor cervus aptus callide beatae accommodo vilicus totidem.",
      "isRead": true,
      "link": "https://example.com/follow/sp8Ny6zm",
      "createdAt": "2026-04-27T17:14:26.310Z"
    },
    {
      "id": 555,
      "userId": 191,
      "type": "follow",
      "title": "Leora Doyle started following you",
      "body": "Ad adamo volubilis.",
      "isRead": true,
      "link": "https://example.com/follow/bZ5q2fM5",
      "createdAt": "2026-05-14T20:55:39.693Z"
    }
  ],
  "meta": {
    "page": 24,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=24&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=25&limit=24",
    "prev": "/api/v1/notifications?page=23&limit=24"
  }
}