example-data.com
Menu
Browse docs and collections

Overview

notifications / #525

Activity #525

User #158 follow Diana Murazik started following you

10/2/2025, 10:12:43 PM

Component variants

Medium
Small

User #158 follow Diana Murazik started following you · 10/2/2025, 10:12:43 PM

Related

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/notifications/525" \
  -H "Accept: application/json"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/notifications/525"
);
const notification = 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 } from "./types/notifications";

const res = await fetch(
  "https://example-data.com/api/v1/notifications/525"
);
const notification = (await res.json()) as Notification;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/notifications/525"
)
notification = res.json()

Response

{
  "id": 525,
  "userId": 158,
  "type": "follow",
  "title": "Diana Murazik started following you",
  "body": "Acer conscendo bestia viduo vere canonicus conculco deficio sono.",
  "isRead": true,
  "link": "https://example.com/follow/kkLTSm4m",
  "createdAt": "2025-10-02T22:12:43.010Z"
}