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: -440fabc
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 Lorem Text
Fetch placeholder lorem ipsum text.
Options
fetch('https://lorem-api.com/api/lorem')
.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.
Options
fetch('https://lorem-api.com/api/article/foo')
.then(response => response.json())
.then(console.log)
Loading...
Get Random Numbers
Generate random numbers with various distributions and formats.
Options
fetch('https://lorem-api.com/api/number')
.then(response => response.json())
.then(console.log)
Loading...