example-data.com
Menu
Browse docs and collections

messages

messages

Page 143 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": 3409,
      "conversationId": 188,
      "userId": 56,
      "body": "Cras placeat tamen corrupti demitto aliqua aperio adicio defendo. Corroboro hic vulgivagus coniuratio creo contigo copia canto decretum. Tardus comparo vomito.",
      "isEdited": false,
      "createdAt": "2025-11-06T12:56:04.373Z",
      "updatedAt": "2025-11-06T12:56:04.373Z"
    },
    {
      "id": 3410,
      "conversationId": 188,
      "userId": 112,
      "body": "Uxor benevolentia spiculum correptius. Urbs temeritas audax abduco amiculum viriliter videlicet degusto. Assentator decor studio tabella talus ter.",
      "isEdited": false,
      "createdAt": "2025-11-07T00:00:56.712Z",
      "updatedAt": "2025-11-07T00:00:56.712Z"
    },
    {
      "id": 3411,
      "conversationId": 188,
      "userId": 235,
      "body": "Antiquus velum ara cruciamentum suasoria copia.",
      "isEdited": false,
      "createdAt": "2025-11-13T09:56:35.396Z",
      "updatedAt": "2025-11-13T09:56:35.396Z"
    }
  ],
  "meta": {
    "page": 143,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=143&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=144&limit=24",
    "prev": "/api/v1/messages?page=142&limit=24"
  }
}