example-data.com
Menu
Browse docs and collections

Overview

notifications / #488

Activity #488

User #24 like Matt Kuhic liked your post

8/20/2025, 8:23:52 PM

Component variants

Medium
Small

User #24 like Matt Kuhic liked your post · 8/20/2025, 8:23:52 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 488,
  "userId": 24,
  "type": "like",
  "title": "Matt Kuhic liked your post",
  "body": "Subito temperantia praesentium conor patruus aufero debitis cattus.",
  "isRead": true,
  "link": "https://example.com/like/X4RAR4Xd",
  "createdAt": "2025-08-20T20:23:52.681Z"
}