example-data.com
Menu
Browse docs and collections

messages

messages

Page 137 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": 3265,
      "conversationId": 178,
      "userId": 152,
      "body": "Demo pecto tredecim abstergo tersus arbor dens. Inflammatio caput vigor hic.",
      "isEdited": false,
      "createdAt": "2026-04-12T11:05:13.181Z",
      "updatedAt": "2026-04-12T11:05:13.181Z"
    },
    {
      "id": 3266,
      "conversationId": 178,
      "userId": 20,
      "body": "Adicio truculenter voluptas caste aureus demulceo ipsum alienus cuppedia audacia.",
      "isEdited": false,
      "createdAt": "2026-04-21T20:41:59.751Z",
      "updatedAt": "2026-04-21T20:41:59.751Z"
    },
    {
      "id": 3267,
      "conversationId": 178,
      "userId": 166,
      "body": "Candidus deripio annus decor conventus angulus tredecim. Cubo triduana victus tempus undique.",
      "isEdited": false,
      "createdAt": "2026-05-06T14:32:34.147Z",
      "updatedAt": "2026-05-06T14:32:34.147Z"
    }
  ],
  "meta": {
    "page": 137,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=137&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=138&limit=24",
    "prev": "/api/v1/messages?page=136&limit=24"
  }
}