# Lorem Ipsum Generator API

> Lorem Ipsum Generator generates placeholder text by paragraph count with optional length limits and standard opening phrasing. Every response includes the dummy copy plus word and sentence counts.

**Endpoint:** `GET https://api.apiverve.com/v1/loremipsumgenerator`  
**Category:** Data Generation  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/loremipsumgenerator

## Overview

Lorem Ipsum Generator works by generating lorem ipsum text based on the specified number of paragraphs, sentences, or words. Using predefined rules, it returns the generated text in a structured format.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/loremipsumgenerator?paragraphs=2&startwithlorem=true&maxlength=100" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `paragraphs` | integer | No | The number of paragraphs to generate. default 1. range 1-100 |
| `startwithlorem` | boolean | No | Start the text with 'Lorem ipsum dolor sit amet'. default true |
| `maxlength` | integer | No | The maximum length of the generated text (0 for no limit). default 0. range 0-inf |

## Response fields

- `words` — number · Number of words in the generated text
- `sentences` — number · Number of sentences in the generated text
- `text` — string · The generated lorem ipsum text

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "words": 73,
    "sentences": 7,
    "text": "Lorem ipsum dolor sit amet aliquip duis veniam dolore ea eu ex ad occaecat in sunt amet sit non esse. Proident fugiat eu nisi et duis excepteur. Aute ipsum pariatur labore do pariatur exercitation excepteur qui exercitation aliquip ut mollit. Reprehenderit ipsum velit eiusmod duis nulla. Id eu aute mollit cillum dolore adipisicing non occaecat. Laboris commodo magna occaecat officia amet sunt aliqua et enim enim incididunt in. Magna laborum irure nulla ea."
  }
}
```

## Use cases

- **Wireframe Component Prototyping** — To verify component spacing before final copy is ready, UI designers populate empty cards and modals with exact paragraph counts.
- **CMS Theme Demo Data** — Theme developers seed sample blog posts and page templates with placeholder text to show prospective buyers how typography scales across responsive viewports.
- **PDF Layout Stress Testing** — When formatting print invoices or reports, document engineers inject length-capped placeholder paragraphs to check page breaks and table cell overflow behavior.
- **Form Input Validation** — QA engineers fill multiline text areas with generated copy to test character counters, form validation rules, and database text truncation handling.

## SDKs

- **npm** — `npm install @apiverve/loremipsumgenerator` (https://www.npmjs.com/package/@apiverve/loremipsumgenerator)
- **PyPI** — `pip install apiverve-loremipsumgenerator` (https://pypi.org/project/apiverve-loremipsumgenerator/)
- **NuGet** — `dotnet add package APIVerve.API.LoremIpsumGenerator` (https://www.nuget.org/packages/APIVerve.API.LoremIpsumGenerator)
- **Source** — https://github.com/apiverve/loremipsumgenerator-api

## More

- Full reference: https://docs.apiverve.com/ref/loremipsumgenerator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
