example-data.com
Menu
Browse docs and collections

messages

messages

Page 11 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": 241,
      "conversationId": 15,
      "userId": 13,
      "body": "Adopto decor cibus corona sodalitas adulatio brevis vallum saepe.",
      "isEdited": false,
      "createdAt": "2026-02-03T11:49:29.961Z",
      "updatedAt": "2026-02-03T11:49:29.961Z"
    },
    {
      "id": 242,
      "conversationId": 15,
      "userId": 122,
      "body": "Occaecati sollers carcer vitiosus confugo. Ustulo vorago concedo curriculum degero contabesco.",
      "isEdited": false,
      "createdAt": "2026-02-03T20:53:59.558Z",
      "updatedAt": "2026-02-03T20:53:59.558Z"
    },
    {
      "id": 243,
      "conversationId": 15,
      "userId": 13,
      "body": "Aegrus bos desparatus avaritia auxilium textus tenetur caput sit cur.",
      "isEdited": false,
      "createdAt": "2026-02-09T07:17:41.211Z",
      "updatedAt": "2026-02-09T07:17:41.211Z"
    }
  ],
  "meta": {
    "page": 11,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=11&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=12&limit=24",
    "prev": "/api/v1/messages?page=10&limit=24"
  }
}