example-data.com
Menu
Browse docs and collections

Overview

activities / #1904

Component variants

Medium
Small

User #248 updated restaurant #42 · 8/17/2025, 5:50:07 PM

Related

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/activities/1904"
);
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/1904"
);
const activity = (await res.json()) as Activity;

Python example

import requests

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

Response

{
  "id": 1904,
  "userId": 248,
  "verb": "updated",
  "targetType": "restaurant",
  "targetId": 42,
  "createdAt": "2025-08-17T17:50:07.994Z"
}