example-data.com
Menu
Browse docs and collections

messages

messages

Page 75 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": 1777,
      "conversationId": 101,
      "userId": 134,
      "body": "Desino asperiores usus velut tantum strenuus. Caritas solium doloribus.",
      "isEdited": false,
      "createdAt": "2025-12-22T08:02:27.159Z",
      "updatedAt": "2025-12-22T08:02:27.159Z"
    },
    {
      "id": 1778,
      "conversationId": 101,
      "userId": 134,
      "body": "Commodo spes capillus ars vulticulus labore. Cinis termes cauda cohaero mollitia aranea spectaculum abstergo blandior. Uredo maiores auctus solium.",
      "isEdited": false,
      "createdAt": "2025-12-24T20:11:30.776Z",
      "updatedAt": "2025-12-24T20:11:30.776Z"
    },
    {
      "id": 1779,
      "conversationId": 101,
      "userId": 121,
      "body": "Ventus speculum carbo tardus inflammatio sono amita.",
      "isEdited": false,
      "createdAt": "2025-12-31T02:49:54.744Z",
      "updatedAt": "2025-12-31T02:49:54.744Z"
    }
  ],
  "meta": {
    "page": 75,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=75&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=76&limit=24",
    "prev": "/api/v1/messages?page=74&limit=24"
  }
}