example-data.com
Menu
Browse docs and collections

Overview

activities / #2203

Component variants

Medium
Small

User #178 updated restaurant #27 · 11/25/2025, 2:42:04 PM

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/activities/2203"
);
const activity = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/activities.d.ts https://example-data.com/types/activities.d.ts
import type { Activity } from "./types/activities";

const res = await fetch(
  "https://example-data.com/api/v1/activities/2203"
);
const activity = (await res.json()) as Activity;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/activities/2203"
)
activitie = res.json()

Response

{
  "id": 2203,
  "userId": 178,
  "verb": "updated",
  "targetType": "restaurant",
  "targetId": 27,
  "createdAt": "2025-11-25T14:42:04.744Z"
}