Lorem API Logo

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: -440fabc

Echo a Request

Send a request to the API and get the same data back.

JSON data to echo 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

Number of paragraphs (1-10)

Seed for text generation

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

Article slug

Response format

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

Type of numbers to generate (int or float)

Seed for random number generation

Number of random numbers to generate

Response format

Distribution type

Minimum value (for uniform distribution)

Maximum value (for uniform distribution)

Mu (mean) for normal distribution

Sigma (stddev) for normal distribution

fetch('https://lorem-api.com/api/number')
  .then(response => response.json())
  .then(console.log)
Loading...

Get an Image

Generate a placeholder image.

Random Image

Get a QR Code

Generate a QR Code.

Random QR Code