example-data.com
Menu
Browse docs and collections

messages

messages

Page 38 of 151.

Overview

Request

curl example

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

JavaScript example

const res = await fetch(
  "https://example-data.com/api/v1/messages?limit=25"
);
const { data, meta } = await res.json();

TypeScript example

// Download once: mkdir -p types && curl -o types/messages.d.ts https://example-data.com/types/messages.d.ts
import type { Message, ListEnvelope } from "./types/messages";

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

Python example

import requests

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

Response

{
  "data": [
    {
      "id": 889,
      "conversationId": 48,
      "userId": 113,
      "body": "Nobis explicabo brevis cursim utpote rerum. Aestus debeo volva abbas stultus.",
      "isEdited": false,
      "createdAt": "2026-04-06T20:16:01.642Z",
      "updatedAt": "2026-04-06T20:16:01.642Z"
    },
    {
      "id": 890,
      "conversationId": 48,
      "userId": 210,
      "body": "Ustilo turpis stillicidium beneficium itaque sui acsi.",
      "isEdited": false,
      "createdAt": "2026-04-10T09:21:21.339Z",
      "updatedAt": "2026-04-10T09:21:21.339Z"
    },
    {
      "id": 891,
      "conversationId": 48,
      "userId": 113,
      "body": "Nemo omnis virtus suscipit succurro aperio convoco tamquam substantia. Varius termes volutabrum aeternus ulciscor uberrime contabesco stultus. Ara expedita cupressus vester vis porro cohibeo tolero temperantia considero.",
      "isEdited": false,
      "createdAt": "2026-04-18T19:48:45.107Z",
      "updatedAt": "2026-04-18T19:48:45.107Z"
    }
  ],
  "meta": {
    "page": 38,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=38&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=39&limit=24",
    "prev": "/api/v1/messages?page=37&limit=24"
  }
}