example-data.com
Menu
Browse docs and collections

messages

messages

Page 55 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": 1297,
      "conversationId": 72,
      "userId": 37,
      "body": "Ubi versus earum consequuntur laboriosam exercitationem beatus suscipit fugiat arto. Demitto tristis amor corrumpo valetudo defetiscor benevolentia. Crapula valetudo administratio tunc conduco adipisci cernuus adeo.",
      "isEdited": false,
      "createdAt": "2026-05-19T18:17:45.089Z",
      "updatedAt": "2026-05-19T18:17:45.089Z"
    },
    {
      "id": 1298,
      "conversationId": 72,
      "userId": 11,
      "body": "Vox somnus clamo dedico ratione.",
      "isEdited": false,
      "createdAt": "2026-05-20T23:44:13.707Z",
      "updatedAt": "2026-05-20T23:44:13.707Z"
    },
    {
      "id": 1299,
      "conversationId": 73,
      "userId": 157,
      "body": "Quibusdam aiunt thymum depromo verumtamen allatus apostolus. Fugit stella degusto bestia utrimque subseco sum tamen terebro. Coma vilitas sopor non terebro traho appono utpote tolero concedo.",
      "isEdited": false,
      "createdAt": "2026-03-06T13:37:14.209Z",
      "updatedAt": "2026-03-06T13:37:14.209Z"
    }
  ],
  "meta": {
    "page": 55,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=55&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=56&limit=24",
    "prev": "/api/v1/messages?page=54&limit=24"
  }
}