Base URL
https://mockly.me

Returns a simple example JSON object.

https://mockly.me/json

Example Response

{
  "name": "John Doe",
  "age": 30,
  "is_active": true
}

Returns a rich randomly generated user profile.

https://mockly.me/user

Example Response

{
  "id": "4821",
  "name": "Jane Smith",
  "username": "janesmith42",
  "email": "[email protected]",
  "avatar": "https://mockly.me/avatar?name=Jane+Smith",
  "age": 34,
  "job_title": "Product Manager",
  "company": "TechCorp"
}

Returns a user profile for a specific ID.

https://mockly.me/user/id/1234

Parameters

NameTypeDescription
user_idstringUser identifier

Example Response

{
  "id": "4821",
  "name": "Jane Smith",
  "username": "janesmith42",
  "email": "[email protected]",
  "avatar": "https://mockly.me/avatar?name=Jane+Smith",
  "age": 34,
  "job_title": "Product Manager",
  "company": "TechCorp"
}

Returns a minimal user object with core fields only.

https://mockly.me/user/basic

Example Response

{
  "id": "1",
  "name": "Jane Doe",
  "email": "[email protected]"
}

Returns a randomly generated product with images and metadata.

https://mockly.me/product

Example Response

{
  "id": "9912",
  "name": "Wireless Headphones",
  "price": 79.99,
  "category": "Electronics"
}

Returns a paginated list of mock products.

https://mockly.me/products

Parameters

NameTypeDescription
limitnumberQuery param — max items (default 10)
offsetnumberQuery param — pagination offset

Example Response

{
  "products": [
    {
      "id": "1",
      "name": "Product A",
      "price": 29.99
    }
  ],
  "total": 100
}

Returns a list of mock users.

https://mockly.me/users

Parameters

NameTypeDescription
limitnumberQuery param — max items

Example Response

{
  "users": [
    {
      "id": "1",
      "name": "Alice"
    }
  ],
  "total": 50
}

Returns mock blog posts with author and tags.

https://mockly.me/posts

Example Response

{
  "posts": [
    {
      "id": "1",
      "title": "Hello World",
      "body": "..."
    }
  ]
}

Returns a list of mock todo items.

https://mockly.me/todos

Example Response

{
  "todos": [
    {
      "id": "1",
      "title": "Buy groceries",
      "completed": false
    }
  ]
}

Returns inspirational quotes with author attribution.

https://mockly.me/quotes

Example Response

{
  "quotes": [
    {
      "id": "1",
      "text": "Stay hungry.",
      "author": "Steve Jobs"
    }
  ]
}

Returns mock recipe data with ingredients and instructions.

https://mockly.me/recipes

Example Response

{
  "recipes": [
    {
      "id": "1",
      "title": "Pasta Carbonara",
      "prep_time": "20 min"
    }
  ]
}

Returns a response with the specified HTTP status code (for error testing).

https://mockly.me/status/404

Parameters

NameTypeDescription
codenumberHTTP status code (e.g. 404, 500)

Example Response

{
  "status": 404,
  "message": "Not Found"
}

Mock login endpoint that accepts any credentials and returns a token.

https://mockly.me/auth/login

Parameters

NameTypeDescription
emailstringBody param — any email
passwordstringBody param — any password

Example Response

{
  "token": "mock-jwt-token",
  "user": {
    "id": "1",
    "email": "[email protected]"
  }
}