Documentation

API URL


GET /api/v1/lorem-ipsum (GET)

Headers
Code
Content-Type: application/json
Query Parameters


Example GET Request

Code
GET https://datpaq.com/api/v1/lorem-ipsum?units=paragraphs&amount=2&length=short&api_key=your-api-key

Successful Response

Status
HTML
200 OK
Body
Code
{
  "success": true,
  "data": {
    "text": "Lorem ipsum dolor sit amet…",
    "paragraphs": [
      "Lorem ipsum dolor sit amet…",
      "Quis suscipit distinctio nam…"
    ],
    "stats": {
      "paragraphs": 2,
      "sentences": 4,
      "words": 31,
      "characters": 209
    },
    "options": {
      "units": "paragraphs",
      "amount": 2,
      "length": "short",
      "startWithLorem": true,
      "seed": null,
      "maxLength": null,
      "truncated": false
    }
  },
  "metadata": {
    "correlationId": "req_abc123",
    "timestamp": "2026-10-14T12:00:00.000Z",
    "processingTime": "1ms",
    "api_token_name": null,
    "rate_limit": {
      "limit": null,
      "remaining": null,
      "reset": null
    }
  },
  "updatedAt": "2026-10-14T12:00:00.000Z"
}

Error Response

Example
Code
HTTP 400 ValidationError: Invalid units/length/format amount over cap malformed seed maxLength out of range or unknown parameter — Request rejected before generation; HTTP 401 AuthenticationError: Gateway authentication failure — Request rejected due to missing or invalid API credentials; HTTP 404 NotFound: Unknown endpoint path — Request path does not map to available lorem-ipsum routes; HTTP 429 RateLimitError: More than 120 requests in 15 minutes — Request rejected by service rate limiter; HTTP 500 InternalError: Unexpected generation failure — Text generation could not complete

Last Updated:  May 4, 2026