example-data.com
Menu
Browse docs and collections

messages

messages

Page 140 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": 3337,
      "conversationId": 183,
      "userId": 164,
      "body": "Voluntarius comprehendo recusandae cui exercitationem. Ventus in conduco delinquo antea commemoro depraedor arto strenuus. Possimus nam crastinus fuga defaeco corrumpo solus soluta.",
      "isEdited": false,
      "createdAt": "2025-07-12T17:46:11.245Z",
      "updatedAt": "2025-07-12T17:46:11.245Z"
    },
    {
      "id": 3338,
      "conversationId": 183,
      "userId": 164,
      "body": "Cena sufficio curso vito currus deporto atavus ver taceo avarus.",
      "isEdited": false,
      "createdAt": "2025-07-18T02:31:20.408Z",
      "updatedAt": "2025-07-18T02:31:20.408Z"
    },
    {
      "id": 3339,
      "conversationId": 183,
      "userId": 164,
      "body": "Uberrime ustulo vinum clibanus. Necessitatibus auxilium admoneo bis corporis conservo atavus adamo suspendo culpa.",
      "isEdited": false,
      "createdAt": "2025-07-27T13:10:45.357Z",
      "updatedAt": "2025-07-27T13:10:45.357Z"
    }
  ],
  "meta": {
    "page": 140,
    "limit": 24,
    "total": 3602,
    "totalPages": 151
  },
  "links": {
    "self": "/api/v1/messages?page=140&limit=24",
    "first": "/api/v1/messages?page=1&limit=24",
    "last": "/api/v1/messages?page=151&limit=24",
    "next": "/api/v1/messages?page=141&limit=24",
    "prev": "/api/v1/messages?page=139&limit=24"
  }
}