DEV Community

2x lazymac
2x lazymac

Posted on • Originally published at api.lazy-mac.com

How to Use the Fake Data Generator API — Free REST + MCP Server

Every developer needs test data. Fake names, emails, addresses, UUIDs, credit card numbers, phone numbers — instead of hardcoding "John Doe" everywhere, hit this API and get realistic randomized data.

Try It Right Now

curl -s https://api.lazy-mac.com/fake-data/api/v1/person | jq
Enter fullscreen mode Exit fullscreen mode

Response:

{
  "count": 1,
  "data": [
    {
      "firstName": "Brenda",
      "lastName": "Walker",
      "fullName": "Brenda Walker",
      "email": "brenda418@fastmail.com",
      "phone": "+1-289-775-9923",
      "address": {
        "street": "7123 Ramirez Dr",
        "city": "San Jose",
        "state": "NE",
        "zip": "32307",
        "country": "US"
      },
      "company": "Vortex Corp",
      "birthDate": "1991-08-23T05:25:43.546Z"
    }
  ]
}
Enter fullscreen mode Exit fullscreen mode

All Endpoints

Endpoint Description
GET /api/v1/person Full person profile
GET /api/v1/text Lorem ipsum or random text
GET /api/v1/number Random numbers
GET /api/v1/uuid UUID v4
GET /api/v1/password Secure random passwords
GET /api/v1/address Street addresses
GET /api/v1/color Random colors
GET /api/v1/date Random dates
GET /api/v1/creditcard Test credit card numbers
GET /api/v1/ip Random IP addresses
POST /api/v1/custom Custom schema generation

Generate Test Passwords

curl -s https://api.lazy-mac.com/fake-data/api/v1/password | jq
Enter fullscreen mode Exit fullscreen mode

Generate UUIDs

curl -s https://api.lazy-mac.com/fake-data/api/v1/uuid | jq
Enter fullscreen mode Exit fullscreen mode

Seed Your Database

import requests

for _ in range(100):
    person = requests.get(
        "https://api.lazy-mac.com/fake-data/api/v1/person"
    ).json()["data"][0]
    db.insert({
        "name": person["fullName"],
        "email": person["email"],
        "phone": person["phone"]
    })
Enter fullscreen mode Exit fullscreen mode

Use as an MCP Server

{
  "mcpServers": {
    "fake-data": {
      "url": "https://api.lazy-mac.com/fake-data/mcp"
    }
  }
}
Enter fullscreen mode Exit fullscreen mode

Ask Claude: "Generate 5 fake user profiles for my test database"

Pricing

Tier Requests/mo Price
Free 100 $0
Pro 10,000 $9/mo
Business Unlimited $49/mo

Get Pro Access on Gumroad →


Browse all 22 APIs at api.lazy-mac.com →

More from the lazymac API Toolkit:

Top comments (0)