example-data.com
Menu
Browse docs and collections

activities

activities

Page 33 of 125.

Overview

Request

curl example

curl -sS \
  "https://example-data.com/api/v1/activities?limit=25"

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/activities?limit=25"
);
const { data, meta } = 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, ListEnvelope } from "./types/activities";

const res = await fetch(
  "https://example-data.com/api/v1/activities?limit=25"
);
const { data, meta } = (await res.json()) as ListEnvelope<Activity>;

Python example

import requests

res = requests.get(
    "https://example-data.com/api/v1/activities",
    params={"limit": 25},
)
data = res.json()

Response

{
  "data": [
    {
      "id": 769,
      "userId": 164,
      "verb": "updated",
      "targetType": "post",
      "targetId": 332,
      "createdAt": "2026-02-06T13:42:02.589Z"
    },
    {
      "id": 770,
      "userId": 176,
      "verb": "commented",
      "targetType": "restaurant",
      "targetId": 16,
      "createdAt": "2025-09-13T13:08:17.096Z"
    },
    {
      "id": 771,
      "userId": 83,
      "verb": "deleted",
      "targetType": "restaurant",
      "targetId": 82,
      "createdAt": "2025-10-29T23:41:00.151Z"
    }
  ],
  "meta": {
    "page": 33,
    "limit": 24,
    "total": 3000,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/activities?page=33&limit=24",
    "first": "/api/v1/activities?page=1&limit=24",
    "last": "/api/v1/activities?page=125&limit=24",
    "next": "/api/v1/activities?page=34&limit=24",
    "prev": "/api/v1/activities?page=32&limit=24"
  }
}