GETPOST

RANDOM LETTERS API

Generate random letters, numbers, and symbols with customizable options. Ideal for password generation, testing, and random string creation.

SERVER

tools64.com

PLATFORM

Functions

VERSION

v1.0.0

BASE URL

https://tools64.com/api/letters

GET Method

Generate random characters using query parameters. Simple and efficient for basic use cases.

Request Parameters

count

number

Number of characters to generate (default: 1, max: 1000)

uppercase

boolean

Include uppercase letters (default: false)

lowercase

boolean

Include lowercase letters (default: true)

numbers

boolean

Include numbers (default: false)

symbols

boolean

Include symbols (default: false)

Response

Type: JSON

Returns a string of random characters with metadata

Code Examples

# Using curl
curl "https://tools64.com/api/letters?count=12&uppercase=true&lowercase=true&numbers=true&symbols=true"

# Using Python requests
import requests

# Generate single character
response = requests.get('https://tools64.com/api/letters')
data = response.json()
random_char = data['data']['characters']

# Generate password-like string
response = requests.get('https://tools64.com/api/letters', params={
    'count': 12,
    'uppercase': True,
    'lowercase': True,
    'numbers': True,
    'symbols': True
})
data = response.json()
password = data['data']['characters']

POST Method

Generate random characters using a JSON request body. This method is better for applications that need to send complex parameters.

Request Parameters

count

number

Number of characters to generate (default: 1, max: 1000)

uppercase

boolean

Include uppercase letters (default: false)

lowercase

boolean

Include lowercase letters (default: true)

numbers

boolean

Include numbers (default: false)

symbols

boolean

Include symbols (default: false)

Request Body

{
  "count": 12,
  "uppercase": true,
  "lowercase": true,
  "numbers": true,
  "symbols": true
}

Response

Type: JSON

Returns a string of random characters with metadata

Code Examples

# Using curl
curl -X POST "https://tools64.com/api/letters" \
  -H "Content-Type: application/json" \
  -d '{
    "count": 12,
    "uppercase": true,
    "lowercase": true,
    "numbers": true,
    "symbols": true
  }'

# Using Python requests
import requests
import json

# Generate secure password
payload = {
    "count": 16,
    "uppercase": True,
    "lowercase": True,
    "numbers": True,
    "symbols": True
}

response = requests.post(
    'https://tools64.com/api/letters',
    json=payload,
    headers={'Content-Type': 'application/json'}
)

data = response.json()
secure_password = data['data']['characters']

ENDPOINT EXAMPLES

Basic Usage

GET /api/letters

Returns a single lowercase letter

Password Generation

GET /api/letters?count=12&uppercase=true&lowercase=true&numbers=true&symbols=true

Returns a 12-character secure password

Alphanumeric String

GET /api/letters?count=8&uppercase=true&lowercase=true&numbers=true

Returns an 8-character alphanumeric string

ERROR HANDLING

The API returns appropriate HTTP status codes and error messages for various scenarios.

400 Bad Request

{
  "error": "Count must be between 1 and 1000"
}

500 Internal Server Error

{
  "error": "Internal server error",
  "message": "Error details"
}

RATE LIMITS & USAGE

Rate Limits

10 requests per hour per IP

Best Practices

  • Use GET for simple requests
  • Use POST for complex parameter sets
  • Combine character types for better randomness
  • Implement proper error handling
  • Cache results when appropriate

Use Cases

  • Generating secure passwords and passphrases
  • Creating random usernames and identifiers
  • Generating test data for development
  • Creating random strings for games
  • Generating unique tokens and keys

READY TO TEST THE API?

Try out the Random Letters API with different parameters to see it in action.