NewConnect Claude, Gemini, ChatGPT, and other AI agents to API Ninjas via our MCP server

Lorem Ipsum API

The Lorem Ipsum API generates configurable lorem ipsum placeholder text for your application.

(4.5)

From 4,349 users

3,900+

Applications using this API

API Status

Online - All Systems Operational

API Response Times

Average
P50
P75
P90
P95
384ms430ms444ms738ms1288ms

Didn't find what you were looking for? Suggest an improvement


/v1/loremipsum GET

https://api.api-ninjas.com/v1/loremipsum

Returns one or more paragraphs of lorem ipsum placeholder text.

Parameters

  • max_length  optional

    Maximum character length.

  • paragraphs  optional

    Number of paragraphs to generate. If unset, a default value of 1 will be used.

  • start_with_lorem_ipsum  optional

    Whether to begin the text with the words "Lorem ipsum". Must be either true or false. If unset, a default value of true will be used.

  • random  optional

    Whether to randomly generate paragraphs. Must be either true or false. If unset, a default value of true will be used.

Headers

  • X-Api-Key  required

    API Key associated with your account.

Response

A JSON object with the following fields or an error if the request is unsuccessful.

  • text

    The generated Lorem Ipsum text.

Sample Request Live Demo!

paragraphs
max_length
start_with_lorem_ipsum
random

Try our APIs in the API playground

Sign up for a free API key to get started — no credit card required.

https://api.api-ninjas.com/v1/loremipsum?paragraphs=2

Headers

X-Api-KeyLog in or sign up to get your API Key

Sample Response

JSON
{
    text:"Lorem ipsum purus in mollis nunc sed id semper. Suspendisse faucibus interdum posuere lorem ipsum. Dictum non consectetur a erat. Risus nullam eget felis eget nunc lobortis mattis aliquam faucibus. Sed adipiscing diam donec adipiscing tristique risus nec feugiat. Faucibus et molestie ac feugiat sed lectus vestibulum mattis. In nibh mauris cursus mattis molestie a iaculis at erat. Velit aliquet sagittis id consectetur purus ut faucibus. Lorem dolor sed viverra ipsum. Facilisis gravida neque convallis a cras. Adipiscing vitae proin sagittis nisl rhoncus. Odio eu feugiat pretium nibh ipsum. Sit amet nulla facilisi morbi. Viverra mauris in aliquam sem. Vitae justo eget magna fermentum. Ultrices dui sapien eget mi proin sed libero. Convallis a cras semper auctor neque vitae tempus quam. Netus et malesuada fames ac turpis egestas. Morbi enim nunc faucibus a pellentesque sit amet porttitor. Suspendisse potenti nullam ac tortor vitae. Blandit volutpat maecenas volutpat blandit. Nulla facilisi etiam dignissim diam quis enim lobortis scelerisque. Aliquet enim tortor at auctor urna nunc id cursus metus. Phasellus faucibus scelerisque eleifend donec pretium vulputate. Enim ut tellus elementum sagittis vitae et leo. Sem nulla pharetra diam sit amet nisl suscipit adipiscing. Elementum integer enim neque volutpat ac tincidunt vitae. Id leo in vitae turpis massa sed elementum. Volutpat sed cras ornare arcu dui vivamus arcu felis. Suspendisse in est ante in. Ut enim blandit volutpat maecenas volutpat blandit aliquam etiam. Elit eget gravida cum sociis natoque. Aliquet porttitor lacus luctus accumsan tortor posuere ac ut. Purus faucibus ornare suspendisse sed. Fermentum posuere urna nec tincidunt praesent semper feugiat nibh. Ac turpis egestas integer eget aliquet. "
}

Code Examples

1 2 curl -X GET "https://api.api-ninjas.com/v1/loremipsum?paragraphs=2" \ -H "X-Api-Key: YOUR_API_KEY"

If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.

Frequently Asked Questions

  • Yes, but you must have a premium subscription. Commercial use of the Lorem Ipsum API is not permitted on the free tier. See our pricing page to choose a plan that fits your needs.
  • Sign up for a free account to instantly get your API key, then pass it in the X-Api-Key header on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.
  • Your API requests will simply be denied once you hit your monthly quota — you will never be charged more than the plan you signed up for. To increase your quota, you can upgrade your plan any time on our pricing page.
  • The API responds with a standard HTTP status code and a JSON error message describing the problem. See our error codes reference for the full list of codes and how to resolve each one, or contact support if you need help.
  • Use the paragraphs parameter to set how many paragraphs to generate (defaults to 1), and optionally cap the output with the max_length parameter to limit the total character length. See the full API catalog for other text-generation tools.
  • Yes. The start_with_lorem_ipsum parameter accepts true or false and defaults to true, so the classic 'Lorem ipsum' opening is included unless you turn it off. Volume-based pricing plans let you generate placeholder text at scale.
  • The endpoint returns a single JSON object with one field, text, containing the generated Lorem Ipsum placeholder content; an unsuccessful request returns an error instead, documented on the error codes page.
  • Set the random parameter to false (it defaults to true) to disable randomized paragraph generation. For other mock data to pair with it, try the Random Word API or the Random User API.