example-data.com
Menu
Browse docs and collections

Overview

activities / #181

Component variants

Medium
Small

User #128 created restaurant #80 · 8/11/2025, 4:47:50 AM

Related

Request

curl example

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

JavaScript example

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

Python example

import requests

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

Response

{
  "id": 181,
  "userId": 128,
  "verb": "created",
  "targetType": "restaurant",
  "targetId": 80,
  "createdAt": "2025-08-11T04:47:50.893Z"
}