example-data.com
Menu
Browse docs and collections

messages

messages

Page 20 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": 457,
      "conversationId": 25,
      "userId": 149,
      "body": "Creo addo synagoga nam creator vilicus curtus addo certus baiulus. Pariatur nesciunt pariatur comis pecco ultra cumque.",
      "isEdited": false,
      "createdAt": "2025-11-11T16:34:40.263Z",
      "updatedAt": "2025-11-11T16:34:40.263Z"
    },
    {
      "id": 458,
      "conversationId": 25,
      "userId": 149,
      "body": "Cilicium creber quis curso cedo atrox bardus cupio subvenio.",
      "isEdited": false,
      "createdAt": "2025-11-17T13:34:59.732Z",
      "updatedAt": "2025-11-17T13:34:59.732Z"
    },
    {
      "id": 459,
      "conversationId": 25,
      "userId": 149,
      "body": "Studio deduco teres enim. Traho cunctatio porro accusator apud. Decerno creator cena.",
      "isEdited": false,
      "createdAt": "2025-11-18T14:42:13.020Z",
      "updatedAt": "2025-11-18T14:42:13.020Z"
    }
  ],
  "meta": {
    "page": 20,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=20&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=21&limit=24",
    "prev": "/api/v1/messages?page=19&limit=24"
  }
}