example-data.com
Menu
Browse docs and collections

messages

messages

Page 102 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": 2425,
      "conversationId": 131,
      "userId": 72,
      "body": "Validus ustulo ullus modi votum comburo subnecto uberrime comes. Sequi defluo comburo.",
      "isEdited": false,
      "createdAt": "2026-04-18T21:57:34.630Z",
      "updatedAt": "2026-04-18T21:57:34.630Z"
    },
    {
      "id": 2426,
      "conversationId": 131,
      "userId": 129,
      "body": "Adversus ambulo theca calcar delibero velit canonicus solus articulus cilicium. Vita vergo defleo tutis. Acquiro perferendis antepono ut confugo vere aduro.",
      "isEdited": false,
      "createdAt": "2026-04-22T07:04:36.239Z",
      "updatedAt": "2026-04-22T07:04:36.239Z"
    },
    {
      "id": 2427,
      "conversationId": 131,
      "userId": 129,
      "body": "Cuppedia cras solvo textilis adnuo. Occaecati cetera amet. Dedico super volutabrum fuga cum copiose defluo testimonium amoveo corrigo.",
      "isEdited": false,
      "createdAt": "2026-04-23T21:09:01.570Z",
      "updatedAt": "2026-04-23T21:09:01.570Z"
    }
  ],
  "meta": {
    "page": 102,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=102&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=103&limit=24",
    "prev": "/api/v1/messages?page=101&limit=24"
  }
}