example-data.com
Menu
Browse docs and collections

Overview

activities / #1250

Component variants

Medium
Small

User #95 created restaurant #24 · 12/30/2025, 12:42:58 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 1250,
  "userId": 95,
  "verb": "created",
  "targetType": "restaurant",
  "targetId": 24,
  "createdAt": "2025-12-30T00:42:58.258Z"
}