example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 51 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": 1201,
      "userId": 193,
      "type": "like",
      "title": "Jamal Gerhold liked your post",
      "body": "Quas eaque universe stultus curis ustulo adopto velit.",
      "isRead": true,
      "link": "https://example.com/like/FEmz4esW",
      "createdAt": "2025-10-17T12:56:59.028Z"
    },
    {
      "id": 1202,
      "userId": 66,
      "type": "reply",
      "title": "Era Mitchell replied to your comment",
      "body": "Decerno cervus undique claudeo.",
      "isRead": false,
      "link": "https://example.com/reply/mDvxU3fR",
      "createdAt": "2026-03-30T14:29:46.320Z"
    },
    {
      "id": 1203,
      "userId": 61,
      "type": "like",
      "title": "Esperanza Casper liked your post",
      "body": "Thesis adaugeo autem decipio asperiores assumenda aperio.",
      "isRead": false,
      "link": "https://example.com/like/T-hcXNfm",
      "createdAt": "2026-04-17T14:49:14.901Z"
    }
  ],
  "meta": {
    "page": 51,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=51&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=52&limit=24",
    "prev": "/api/v1/notifications?page=50&limit=24"
  }
}