example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 67 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": 1585,
      "userId": 75,
      "type": "follow",
      "title": "Adrain Kris-Hermiston started following you",
      "body": "Absens autus voro trucido verbera sublime.",
      "isRead": false,
      "link": "https://example.com/follow/14IIwUAd",
      "createdAt": "2026-04-07T14:41:15.388Z"
    },
    {
      "id": 1586,
      "userId": 103,
      "type": "like",
      "title": "Merl Jenkins liked your post",
      "body": "Vis voluptate canonicus audax.",
      "isRead": true,
      "link": "https://example.com/like/faVX3-eL",
      "createdAt": "2025-09-18T21:11:43.487Z"
    },
    {
      "id": 1587,
      "userId": 90,
      "type": "like",
      "title": "Whitney O'Reilly liked your post",
      "body": "Minima excepturi adulescens thermae collum cernuus concedo decet clam.",
      "isRead": false,
      "link": "https://example.com/like/gtM36_zn",
      "createdAt": "2025-07-07T10:11:22.102Z"
    }
  ],
  "meta": {
    "page": 67,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=67&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=68&limit=24",
    "prev": "/api/v1/notifications?page=66&limit=24"
  }
}