example-data.com
Menu
Browse docs and collections

messages

messages

Page 110 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": 2617,
      "conversationId": 143,
      "userId": 156,
      "body": "Suadeo adfectus facilis minus talus. Beatus theatrum alienus cumque caritas averto quas quos sublime.",
      "isEdited": false,
      "createdAt": "2025-10-07T00:27:04.426Z",
      "updatedAt": "2025-10-07T00:27:04.426Z"
    },
    {
      "id": 2618,
      "conversationId": 143,
      "userId": 249,
      "body": "Acsi ex patior. Enim illum solutio utrimque. Explicabo cito qui ocer.",
      "isEdited": false,
      "createdAt": "2025-10-14T22:32:42.712Z",
      "updatedAt": "2025-10-14T22:32:42.712Z"
    },
    {
      "id": 2619,
      "conversationId": 143,
      "userId": 239,
      "body": "Cohaero ducimus anser theologus.",
      "isEdited": false,
      "createdAt": "2025-10-16T15:50:32.534Z",
      "updatedAt": "2025-10-16T15:50:32.534Z"
    }
  ],
  "meta": {
    "page": 110,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=110&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=111&limit=24",
    "prev": "/api/v1/messages?page=109&limit=24"
  }
}