example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 7 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": 145,
      "userId": 78,
      "type": "follow",
      "title": "Cassidy Price-Schimmel started following you",
      "body": "Desolo sum paens.",
      "isRead": true,
      "link": null,
      "createdAt": "2026-03-12T19:51:52.605Z"
    },
    {
      "id": 146,
      "userId": 103,
      "type": "follow",
      "title": "Adelia Roberts started following you",
      "body": "Centum utilis textilis thermae.",
      "isRead": false,
      "link": "https://example.com/follow/lrDxW_8I",
      "createdAt": "2025-12-24T17:02:46.909Z"
    },
    {
      "id": 147,
      "userId": 180,
      "type": "follow",
      "title": "Kariane Schmitt started following you",
      "body": "Benevolentia contigo aegre.",
      "isRead": true,
      "link": "https://example.com/follow/PL4CCWCv",
      "createdAt": "2026-04-20T09:15:11.717Z"
    }
  ],
  "meta": {
    "page": 7,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=7&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=8&limit=24",
    "prev": "/api/v1/notifications?page=6&limit=24"
  }
}