example-data.com
Menu
Browse docs and collections

messages

messages

Page 46 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": 1081,
      "conversationId": 60,
      "userId": 206,
      "body": "Curatio est ventosus commodo terra dedecor thalassinus.",
      "isEdited": false,
      "createdAt": "2025-09-20T10:42:47.573Z",
      "updatedAt": "2025-09-20T10:42:47.573Z"
    },
    {
      "id": 1082,
      "conversationId": 60,
      "userId": 83,
      "body": "Creta alo turba adipisci suasoria acerbitas quod. Certus certe solitudo. Tabgo denego abutor.",
      "isEdited": false,
      "createdAt": "2025-10-20T16:17:41.964Z",
      "updatedAt": "2025-10-20T16:17:41.964Z"
    },
    {
      "id": 1083,
      "conversationId": 60,
      "userId": 211,
      "body": "Deorsum solum vacuus depromo cumque ambitus alias verus adopto. Aro sint laboriosam cunae at corroboro cilicium. Aequus corpus comparo demum excepturi vomica cupiditas denuo.",
      "isEdited": true,
      "createdAt": "2025-11-02T04:03:49.900Z",
      "updatedAt": "2026-04-21T11:12:20.228Z"
    }
  ],
  "meta": {
    "page": 46,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=46&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=47&limit=24",
    "prev": "/api/v1/messages?page=45&limit=24"
  }
}