example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 42 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": 985,
      "userId": 170,
      "type": "mention",
      "title": "Everett Yundt mentioned you in a post",
      "body": "Cerno creta tertius corrigo summopere virtus quae adfero.",
      "isRead": true,
      "link": "https://example.com/mention/-6T2my5B",
      "createdAt": "2025-12-26T21:53:39.095Z"
    },
    {
      "id": 986,
      "userId": 13,
      "type": "like",
      "title": "Britney Haag liked your post",
      "body": "Canis curso deripio auctus adamo torrens creo conitor.",
      "isRead": false,
      "link": "https://example.com/like/0SErM-nx",
      "createdAt": "2025-12-17T16:11:40.373Z"
    },
    {
      "id": 987,
      "userId": 206,
      "type": "follow",
      "title": "Elva Roberts started following you",
      "body": "Adipisci thesaurus dolorum vulnus cena.",
      "isRead": false,
      "link": "https://example.com/follow/oNav7kUq",
      "createdAt": "2026-01-30T23:37:48.881Z"
    }
  ],
  "meta": {
    "page": 42,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=42&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=43&limit=24",
    "prev": "/api/v1/notifications?page=41&limit=24"
  }
}