example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 29 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": 673,
      "userId": 58,
      "type": "reply",
      "title": "Lennie Dickinson replied to your comment",
      "body": "Cui auditor arguo voro cohibeo cunctatio.",
      "isRead": true,
      "link": "https://example.com/reply/sr9c5QUR",
      "createdAt": "2026-03-10T02:45:44.869Z"
    },
    {
      "id": 674,
      "userId": 121,
      "type": "follow",
      "title": "Maryam Kunze started following you",
      "body": "Peior absorbeo derideo trucido stips conduco illo demergo.",
      "isRead": true,
      "link": "https://example.com/follow/IAmw85PU",
      "createdAt": "2025-11-27T07:11:18.189Z"
    },
    {
      "id": 675,
      "userId": 175,
      "type": "like",
      "title": "Fritz Skiles liked your post",
      "body": "Spargo adicio claudeo cinis corrigo vomer vestrum valde vado.",
      "isRead": false,
      "link": "https://example.com/like/EYpQzZI2",
      "createdAt": "2026-02-04T23:23:32.652Z"
    }
  ],
  "meta": {
    "page": 29,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=29&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=30&limit=24",
    "prev": "/api/v1/notifications?page=28&limit=24"
  }
}