example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 49 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": 1153,
      "userId": 20,
      "type": "follow",
      "title": "Jermain Kshlerin started following you",
      "body": "Sursum tendo denique deputo tero ea ipsum cado.",
      "isRead": false,
      "link": null,
      "createdAt": "2026-01-06T21:45:15.220Z"
    },
    {
      "id": 1154,
      "userId": 31,
      "type": "like",
      "title": "Oliver Mitchell liked your post",
      "body": "Anser nisi tactus cunctatio thema aranea carmen cunabula clam bellum.",
      "isRead": false,
      "link": "https://example.com/like/ECeqqPB5",
      "createdAt": "2026-04-01T14:32:59.674Z"
    },
    {
      "id": 1155,
      "userId": 158,
      "type": "mention",
      "title": "Adrain Kris-Hermiston mentioned you in a post",
      "body": "Alius veritas accusantium molestiae compono audax volup sulum celo.",
      "isRead": false,
      "link": "https://example.com/mention/GIB9C-pI",
      "createdAt": "2026-04-11T07:25:20.050Z"
    }
  ],
  "meta": {
    "page": 49,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=49&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=50&limit=24",
    "prev": "/api/v1/notifications?page=48&limit=24"
  }
}