example-data.com
Menu
Browse docs and collections

activities

activities

Browse 3000 activities records. Explore sample records and fetch JSON over a free REST API for prototypes, tests, and learning.

Overview

Cards

Compact

Detailed

Showing first 6 of 24 on this page.

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": 1,
      "userId": 15,
      "verb": "shared",
      "targetType": "restaurant",
      "targetId": 9,
      "createdAt": "2026-02-03T09:24:31.539Z"
    },
    {
      "id": 2,
      "userId": 54,
      "verb": "created",
      "targetType": "comment",
      "targetId": 184,
      "createdAt": "2025-09-04T16:12:24.407Z"
    },
    {
      "id": 3,
      "userId": 5,
      "verb": "shared",
      "targetType": "restaurant",
      "targetId": 69,
      "createdAt": "2026-02-16T15:04:26.292Z"
    }
  ],
  "meta": {
    "page": 1,
    "limit": 25,
    "total": 3000,
    "totalPages": 120
  },
  "links": {
    "self": "/api/v1/activities?page=1",
    "first": "/api/v1/activities?page=1",
    "last": "/api/v1/activities?page=120",
    "next": "/api/v1/activities?page=2",
    "prev": null
  }
}

View full response →