example-data.com
Menu
Browse docs and collections

messages

messages

Page 127 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": 3025,
      "conversationId": 166,
      "userId": 43,
      "body": "Libero asperiores sono animi suscipit aestas cognomen accusator vinum. Excepturi molestias ventus deleniti xiphias qui collum videlicet. Coepi tabernus utique vito arbustum.",
      "isEdited": false,
      "createdAt": "2026-04-28T22:58:43.504Z",
      "updatedAt": "2026-04-28T22:58:43.504Z"
    },
    {
      "id": 3026,
      "conversationId": 166,
      "userId": 66,
      "body": "Commodo vita cunae adduco accusamus ago accusator.",
      "isEdited": false,
      "createdAt": "2026-04-29T00:37:18.462Z",
      "updatedAt": "2026-04-29T00:37:18.462Z"
    },
    {
      "id": 3027,
      "conversationId": 166,
      "userId": 43,
      "body": "Coniecto depopulo capitulus concido. Suscipit xiphias aurum infit acervus. Coadunatio ultra venio admoneo titulus.",
      "isEdited": false,
      "createdAt": "2026-04-30T02:22:22.602Z",
      "updatedAt": "2026-04-30T02:22:22.602Z"
    }
  ],
  "meta": {
    "page": 127,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=127&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=128&limit=24",
    "prev": "/api/v1/messages?page=126&limit=24"
  }
}