Lorem API
Lorem API provides a collection of REST, GraphQL, WebSocket, and MCP endpoints that return consistent dummy data for testing and prototyping.
Available Endpoints:
- REST:
https://lorem-api.com/api/
| API Docs - GraphQL:
https://lorem-api.com/api/graphql
| Playground - WebSocket:
wss://lorem-api.com/ws/
| Playground - MCP:
https://lorem-api.com/api/mcp
| Playground
Latest Build: main-2664053
Echo a Request
Send a request to the API and get the same data back.
fetch('https://lorem-api.com/api/echo', {
method: 'POST',
body: "{\"foo\":\"bar\"}"
})
.then(response => response.text())
.then(console.log)
Loading...
Get an Article
Fetch a dummy article by its slug. Change the format to get the response in JSON, YAML, or TOML.
fetch('https://lorem-api.com/api/article/foo?format=json')
.then(response => response.json())
.then(console.log)
Loading...
Get Lorem Text
Fetch placeholder lorem ipsum text.
fetch('https://lorem-api.com/api/lorem?paragraphs=1&seed=foo')
.then(response => response.text())
.then(console.log)
Loading...
Get Random Numbers
Fetch placeholder random numbers.
fetch('https://lorem-api.com/api/number?format=json&type=int&distribution=uniform&min=0&max=100&length=10&seed=123')
.then(response => response.json())
.then(console.log)
Loading...