example-data.com
Menu
Browse docs and collections

messages

messages

Page 86 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": 2041,
      "conversationId": 112,
      "userId": 43,
      "body": "Corporis caecus bestia. Ulciscor admitto tabesco minima explicabo amo illo spectaculum. Est carbo iure absens ulciscor.",
      "isEdited": false,
      "createdAt": "2026-05-16T16:48:45.108Z",
      "updatedAt": "2026-05-16T16:48:45.108Z"
    },
    {
      "id": 2042,
      "conversationId": 113,
      "userId": 113,
      "body": "Tumultus pauper strues vacuus.",
      "isEdited": false,
      "createdAt": "2025-08-07T06:00:19.946Z",
      "updatedAt": "2025-08-07T06:00:19.946Z"
    },
    {
      "id": 2043,
      "conversationId": 113,
      "userId": 249,
      "body": "Vicinus adeo tertius dolorem compono confugo tibi tui cunctatio. Clementia vulnero decimus casso. Sollicito uter urbanus cavus callide.",
      "isEdited": false,
      "createdAt": "2025-08-16T20:36:35.970Z",
      "updatedAt": "2025-08-16T20:36:35.970Z"
    }
  ],
  "meta": {
    "page": 86,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=86&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=87&limit=24",
    "prev": "/api/v1/messages?page=85&limit=24"
  }
}