MockHero

phone

Identity

Generate phone numbers in the correct format for any country. German numbers start with +49, US with +1, Japanese with +81 — properly formatted with country codes and spacing.

Example Outputs

+49 151 2345 6789+1 (415) 555-0123+44 7911 123456+81 90-1234-5678

Parameters

ParameterDescription
localeLanguage/region code for country format

API Usage

Send a POST request to generate phone data:

curl -X POST https://mockhero.dev/api/v1/generate \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "tables": [
    {
      "name": "example",
      "count": 5,
      "fields": [
        {
          "name": "phone",
          "type": "phone",
          "params": {
            "locale": "de"
          }
        }
      ]
    }
  ]
}'

Common Use Cases

  • Phone validation testing
  • SMS integration testing
  • Contact database seeding
  • International format testing

Quick Info

Field Type
phone
Category
Identity
Parameters
1 parameter
Output Format
JSON, CSV, SQL

Try it now

Generate phone data instantly in the playground.

Generate Phone + 155 more types via API

One API call. Multiple tables. Relational integrity. Free tier included.

Get Started Free