example-data.com
Menu
Browse docs and collections

messages

messages

Page 126 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": 3001,
      "conversationId": 165,
      "userId": 77,
      "body": "Tamisium admiratio aegrus. Suscipio colo volva supplanto.",
      "isEdited": false,
      "createdAt": "2025-09-26T17:16:21.103Z",
      "updatedAt": "2025-09-26T17:16:21.103Z"
    },
    {
      "id": 3002,
      "conversationId": 165,
      "userId": 233,
      "body": "Balbus caritas tibi nostrum nobis vigor ex. Suppono neque cubitum coruscus quis alveus.",
      "isEdited": false,
      "createdAt": "2025-10-03T22:33:34.005Z",
      "updatedAt": "2025-10-03T22:33:34.005Z"
    },
    {
      "id": 3003,
      "conversationId": 165,
      "userId": 233,
      "body": "Vix reprehenderit apostolus dignissimos calculus veniam. Arto auxilium tardus brevis.",
      "isEdited": false,
      "createdAt": "2025-10-29T22:50:28.678Z",
      "updatedAt": "2025-10-29T22:50:28.678Z"
    }
  ],
  "meta": {
    "page": 126,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=126&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=127&limit=24",
    "prev": "/api/v1/messages?page=125&limit=24"
  }
}