example-data.com
Menu
Browse docs and collections

Overview

notifications / #1812

Activity #1812

User #183 like Matilde Beahan liked your post

1/28/2026, 11:05:00 PM

Component variants

Medium
Small

User #183 like Matilde Beahan liked your post · 1/28/2026, 11:05:00 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1812,
  "userId": 183,
  "type": "like",
  "title": "Matilde Beahan liked your post",
  "body": "Cupressus sustineo deorsum.",
  "isRead": true,
  "link": "https://example.com/like/yQfeiqdt",
  "createdAt": "2026-01-28T23:05:00.966Z"
}