example-data.com
Menu
Browse docs and collections

messages

messages

Page 62 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": 1465,
      "conversationId": 81,
      "userId": 17,
      "body": "Certe apostolus vinitor alias crapula varius stultus amita uterque.",
      "isEdited": false,
      "createdAt": "2026-02-26T00:10:17.289Z",
      "updatedAt": "2026-02-26T00:10:17.289Z"
    },
    {
      "id": 1466,
      "conversationId": 81,
      "userId": 17,
      "body": "Ab labore versus quisquam natus. Vulgaris vestigium corrumpo agnitio creo theca. Ascit deludo vos viriliter caste cinis tenax minima.",
      "isEdited": false,
      "createdAt": "2026-03-01T04:59:51.104Z",
      "updatedAt": "2026-03-01T04:59:51.104Z"
    },
    {
      "id": 1467,
      "conversationId": 81,
      "userId": 30,
      "body": "Vilicus curiositas adipiscor venio aedificium ver verumtamen censura sol. Clarus aufero defungo necessitatibus conscendo cohaero vaco.",
      "isEdited": false,
      "createdAt": "2026-03-16T11:48:39.117Z",
      "updatedAt": "2026-03-16T11:48:39.117Z"
    }
  ],
  "meta": {
    "page": 62,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=62&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=63&limit=24",
    "prev": "/api/v1/messages?page=61&limit=24"
  }
}