example-data.com
Menu
Browse docs and collections

Overview

notifications / #1862

Activity #1862

User #61 like Judy Hackett liked your post

8/31/2025, 8:46:55 AM

Component variants

Medium
Small

User #61 like Judy Hackett liked your post · 8/31/2025, 8:46:55 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1862,
  "userId": 61,
  "type": "like",
  "title": "Judy Hackett liked your post",
  "body": "Adulatio facere avarus degusto carmen vallum tero.",
  "isRead": true,
  "link": "https://example.com/like/qhd5Wrib",
  "createdAt": "2025-08-31T08:46:55.178Z"
}