example-data.com
Menu
Browse docs and collections

activities

activities

Page 105 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": 2497,
      "userId": 220,
      "verb": "commented",
      "targetType": "restaurant",
      "targetId": 10,
      "createdAt": "2026-02-04T16:02:20.547Z"
    },
    {
      "id": 2498,
      "userId": 15,
      "verb": "updated",
      "targetType": "post",
      "targetId": 387,
      "createdAt": "2026-02-08T05:07:01.482Z"
    },
    {
      "id": 2499,
      "userId": 85,
      "verb": "updated",
      "targetType": "recipe",
      "targetId": 222,
      "createdAt": "2026-04-26T18:15:45.099Z"
    }
  ],
  "meta": {
    "page": 105,
    "limit": 24,
    "total": 3000,
    "totalPages": 125
  },
  "links": {
    "self": "/api/v1/activities?page=105&limit=24",
    "first": "/api/v1/activities?page=1&limit=24",
    "last": "/api/v1/activities?page=125&limit=24",
    "next": "/api/v1/activities?page=106&limit=24",
    "prev": "/api/v1/activities?page=104&limit=24"
  }
}