example-data.com
Menu
Browse docs and collections

notifications

notifications

Page 77 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": 1825,
      "userId": 43,
      "type": "follow",
      "title": "Marta Harvey started following you",
      "body": "Sum vere trans antiquus.",
      "isRead": true,
      "link": "https://example.com/follow/gAZxQzpO",
      "createdAt": "2025-10-20T10:59:26.574Z"
    },
    {
      "id": 1826,
      "userId": 167,
      "type": "like",
      "title": "Diana Murazik liked your post",
      "body": "Depulso volup thema minima venustas spargo caritas.",
      "isRead": false,
      "link": "https://example.com/like/SeyD8g3L",
      "createdAt": "2025-11-23T11:07:30.711Z"
    },
    {
      "id": 1827,
      "userId": 137,
      "type": "mention",
      "title": "Roberta Mueller-Yundt mentioned you in a post",
      "body": "Ceno sint solus victus cado.",
      "isRead": true,
      "link": null,
      "createdAt": "2025-05-26T05:48:32.992Z"
    }
  ],
  "meta": {
    "page": 77,
    "limit": 24,
    "total": 2000,
    "totalPages": 84
  },
  "links": {
    "self": "/api/v1/notifications?page=77&limit=24",
    "first": "/api/v1/notifications?page=1&limit=24",
    "last": "/api/v1/notifications?page=84&limit=24",
    "next": "/api/v1/notifications?page=78&limit=24",
    "prev": "/api/v1/notifications?page=76&limit=24"
  }
}