example-data.com
Menu
Browse docs and collections

activities

activities

Page 39 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": 913,
      "userId": 225,
      "verb": "deleted",
      "targetType": "comment",
      "targetId": 1230,
      "createdAt": "2025-08-05T07:49:45.742Z"
    },
    {
      "id": 914,
      "userId": 40,
      "verb": "updated",
      "targetType": "product",
      "targetId": 9,
      "createdAt": "2026-04-19T01:48:04.177Z"
    },
    {
      "id": 915,
      "userId": 130,
      "verb": "updated",
      "targetType": "restaurant",
      "targetId": 76,
      "createdAt": "2026-01-27T15:11:27.414Z"
    }
  ],
  "meta": {
    "page": 39,
    "limit": 24,
    "total": 3000,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/activities?page=39&limit=24",
    "first": "/api/v1/activities?page=1&limit=24",
    "last": "/api/v1/activities?page=125&limit=24",
    "next": "/api/v1/activities?page=40&limit=24",
    "prev": "/api/v1/activities?page=38&limit=24"
  }
}