example-data.com
Menu
Browse docs and collections

Overview

notifications / #695

Activity #695

User #185 like Arnaldo Friesen liked your post

8/26/2025, 6:34:17 PM

Component variants

Medium
Small

User #185 like Arnaldo Friesen liked your post · 8/26/2025, 6:34:17 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 695,
  "userId": 185,
  "type": "like",
  "title": "Arnaldo Friesen liked your post",
  "body": "Commodo deprecator desidero asperiores sustineo uredo pel cornu.",
  "isRead": true,
  "link": "https://example.com/like/JI5nFF4F",
  "createdAt": "2025-08-26T18:34:17.894Z"
}