Lorem Ipsum API
The Lorem Ipsum API generates configurable lorem ipsum placeholder text for your application.
From 4,349 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 384ms | 430ms | 444ms | 738ms | 1288ms |
Similar APIs
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_lengthoptionalMaximum character length.
paragraphsoptionalNumber of paragraphs to generate. If unset, a default value of
1will be used.start_with_lorem_ipsumoptionalWhether to begin the text with the words "Lorem ipsum". Must be either
trueorfalse. If unset, a default value oftruewill be used.randomoptionalWhether to randomly generate paragraphs. Must be either
trueorfalse. If unset, a default value oftruewill be used.
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON object with the following fields or an error if the request is unsuccessful.
textThe generated Lorem Ipsum text.
Sample Request Live Demo!
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=2Headers
X-Api-KeyLog in or sign up to get your API KeySample Response
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
Can I use the Lorem Ipsum API for commercial purposes?
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.How do I get an API key and start using the Lorem Ipsum API?
Sign up for a free account to instantly get your API key, then pass it in theX-Api-Keyheader on every request. The documentation above includes ready-to-run examples in cURL, Python, JavaScript, Node.js, and more.What happens if I exceed my quota for the month?
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.What happens if a request to the Lorem Ipsum API fails?
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.How do I control the amount of placeholder text returned?
Use theparagraphsparameter to set how many paragraphs to generate (defaults to1), and optionally cap the output with themax_lengthparameter to limit the total character length. See the full API catalog for other text-generation tools.Can I make the generated text always start with the words 'Lorem ipsum'?
Yes. Thestart_with_lorem_ipsumparameter acceptstrueorfalseand defaults totrue, so the classic 'Lorem ipsum' opening is included unless you turn it off. Volume-based pricing plans let you generate placeholder text at scale.What does the response look like, and how is it structured?
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.Can I generate fixed (non-random) placeholder text for reproducible mockups?
Set therandomparameter tofalse(it defaults totrue) to disable randomized paragraph generation. For other mock data to pair with it, try the Random Word API or the Random User API.