example-data.com
Menu
Browse docs and collections

messages

messages

Page 108 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": 2569,
      "conversationId": 139,
      "userId": 209,
      "body": "Concido audeo argumentum deprecator. Tempus virgo cometes confugo facilis verecundia dicta laborum ascisco suggero. Villa valde tandem condico tripudio solium corona.",
      "isEdited": false,
      "createdAt": "2026-04-23T22:46:35.054Z",
      "updatedAt": "2026-04-23T22:46:35.054Z"
    },
    {
      "id": 2570,
      "conversationId": 139,
      "userId": 36,
      "body": "Adhuc arca vorago qui consuasor. Pecco sperno sponte solutio acquiro arbustum canis clam vulnus aestivus.",
      "isEdited": false,
      "createdAt": "2026-05-06T11:11:47.145Z",
      "updatedAt": "2026-05-06T11:11:47.145Z"
    },
    {
      "id": 2571,
      "conversationId": 139,
      "userId": 36,
      "body": "Necessitatibus iste magnam architecto curatio numquam verto. Sopor qui vilicus deprecator vaco arca.",
      "isEdited": false,
      "createdAt": "2026-05-09T17:58:05.091Z",
      "updatedAt": "2026-05-09T17:58:05.091Z"
    }
  ],
  "meta": {
    "page": 108,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=108&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=109&limit=24",
    "prev": "/api/v1/messages?page=107&limit=24"
  }
}