example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 53 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": 1249,
      "userId": 51,
      "type": "like",
      "title": "Tiara Wilderman liked your post",
      "body": "Decet vitium cavus triduana confugo laborum coniecto vetus tamen voluptatum.",
      "isRead": false,
      "link": null,
      "createdAt": "2026-04-15T03:30:37.757Z"
    },
    {
      "id": 1250,
      "userId": 16,
      "type": "follow",
      "title": "Earlene Wisozk started following you",
      "body": "Clamo thymbra decerno quisquam alii solvo commodi curvo ante apparatus.",
      "isRead": false,
      "link": null,
      "createdAt": "2025-11-18T13:47:24.185Z"
    },
    {
      "id": 1251,
      "userId": 111,
      "type": "mention",
      "title": "Wendy Borer mentioned you in a post",
      "body": "Vito excepturi aedificium voco.",
      "isRead": true,
      "link": "https://example.com/mention/Yq7zB7EI",
      "createdAt": "2025-11-15T16:37:22.819Z"
    }
  ],
  "meta": {
    "page": 53,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=53&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=54&limit=24",
    "prev": "/api/v1/notifications?page=52&limit=24"
  }
}