example-data.com
Menu
Browse docs and collections

Overview

activities / #1520

Component variants

Medium
Small

User #152 updated restaurant #8 · 1/14/2026, 9:36:26 PM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1520,
  "userId": 152,
  "verb": "updated",
  "targetType": "restaurant",
  "targetId": 8,
  "createdAt": "2026-01-14T21:36:26.454Z"
}