Lorem Ipsum Utilities

Generate Phones

Generates realistic-looking phone numbers for testing and mockups via `/v1/lorem/phones`. Perfect for populating forms, UI prototypes, and test datasets without using real numbers. Returns formatted phone numbers in various styles (US, international, extensions). Claude Code and other MCP-enabled editors can generate batches instantly for development workflows.

API Endpoint

GET /v1/lorem/phones

Code Examples

curl "https://tinyfn.io/v1/lorem/phones" \
  -H "X-API-Key: YOUR_API_KEY"
const response = await fetch('https://tinyfn.io/v1/lorem/phones', {
  headers: { 'X-API-Key': 'YOUR_API_KEY' }
});
const data = await response.json();
console.log(data);
import requests

response = requests.get('https://tinyfn.io/v1/lorem/phones',
    headers={'X-API-Key': 'YOUR_API_KEY'})
data = response.json()
print(data)

Use via MCP

Add to your AI agent

Connect your AI agent (Claude, Cursor, Windsurf, etc.) to TinyFn's lorem ipsum tools:

{
  "mcpServers": {
    "tinyfn-lorem": {
      "url": "https://tinyfn.io/mcp/lorem",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}

Learn more about MCP setup →

FAQ

How do I generate phone numbers with MCP in Cursor or Claude Code?

Use the Generate Phones tool directly in your editor. Specify count and format preferences, and it returns formatted phone numbers ready for your code or mockups.

What phone number formats does the API return?

Returns US format (555) 123-4567, international +1-555-123-4567, and numbers with extensions. All use safe ranges that won't connect to real phones.

Are these phone numbers safe for testing and demos?

Yes, generated numbers use reserved ranges (555, 800) and fake area codes that won't route to actual phones, making them perfect for development and testing.

Can I generate phone numbers for specific countries or regions?

The tool focuses on US-style numbers with safe prefixes. For international testing, you can request different format styles within the US numbering system.

How many phone numbers can I generate at once?

You can generate multiple numbers in a single API call. Specify the quantity parameter to get batches for populating large datasets or test fixtures.

Try Generate Phones Now

Get your free API key and start using Generate Phones in seconds.

Get Free API Key