example-data.com
Menu
Browse docs and collections

Overview

notifications / #1984

Activity #1984

User #126 like Perry Kerluke liked your post

10/8/2025, 2:51:27 PM

Component variants

Medium
Small

User #126 like Perry Kerluke liked your post · 10/8/2025, 2:51:27 PM

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/notifications/1984"
);
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/1984"
);
const notification = (await res.json()) as Notification;

Python example

import requests

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

Response

{
  "id": 1984,
  "userId": 126,
  "type": "like",
  "title": "Perry Kerluke liked your post",
  "body": "Denuo cras sapiente alter temeritas viridis bibo dens maiores.",
  "isRead": false,
  "link": "https://example.com/like/JA700iRZ",
  "createdAt": "2025-10-08T14:51:27.226Z"
}