example-data.com
Menu
Browse docs and collections

messages

messages

Page 101 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": 2401,
      "conversationId": 130,
      "userId": 24,
      "body": "Fuga sub speculum celo non arceo volva. Addo texo thymum alienus suasoria patria velociter caveo tamisium. Apparatus crastinus benigne quod curia denuncio.",
      "isEdited": false,
      "createdAt": "2025-11-24T02:17:14.628Z",
      "updatedAt": "2025-11-24T02:17:14.628Z"
    },
    {
      "id": 2402,
      "conversationId": 130,
      "userId": 227,
      "body": "Vereor victoria adduco arx acceptus terebro. Comes incidunt a victus aestas calamitas centum trepide amitto vulgaris. Autus delinquo decet arbor theatrum cena cupiditas.",
      "isEdited": true,
      "createdAt": "2025-12-23T22:14:34.062Z",
      "updatedAt": "2026-01-01T17:41:19.311Z"
    },
    {
      "id": 2403,
      "conversationId": 130,
      "userId": 227,
      "body": "Toties crur arbitro decimus soleo anser aufero exercitationem sortitus. Ullam tergeo depopulo deprecator adficio aro tametsi tametsi crur decerno. Vulgus cinis vinum demergo demoror adamo uredo.",
      "isEdited": false,
      "createdAt": "2026-01-07T02:40:29.216Z",
      "updatedAt": "2026-01-07T02:40:29.216Z"
    }
  ],
  "meta": {
    "page": 101,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=101&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=102&limit=24",
    "prev": "/api/v1/messages?page=100&limit=24"
  }
}