UUID Generator HTTP API
Welcome to the UUID.ca Developer HTTP API. Our API runs on Cloudflare's global edge network, providing sub-millisecond UUID and GUID generation with zero authentication, no rate limits for standard workloads, and full CORS support.
Quick Start (cURL)
Generate a single random UUID v4 in plain text:
curl https://uuid.ca/api/v4
Output:
9b1deb4d-3b7d-4bad-9bdd-2b0d7b3dcb6d
Supported Endpoints
| Endpoint | Method | Description |
|---|---|---|
/api/v4 or /api/ |
GET | Version 4 (Random, RFC 4122) |
/api/v7 |
GET | Version 7 (Unix ms time-ordered, RFC 9562) |
/api/v1 |
GET | Version 1 (Timestamp & MAC/Node) |
/api/v6 |
GET | Version 6 (Reordered time-based) |
/api/nil |
GET | Nil UUID (00000000-0000-0000-0000-000000000000) |
Query Parameters
| Parameter | Values | Default | Description |
|---|---|---|---|
count |
1 to 100 | 1 |
Number of UUIDs to generate in a single batch. |
format |
text | json |
text |
Response format (or pass Accept: application/json header). |
case |
lower | upper |
lower |
Convert hexadecimal letters to UPPERCASE. |
hyphens |
true | false |
true |
Set to false to strip dashes (32 hex characters). |
braces |
true | false |
false |
Set to true to wrap each GUID in curly braces { }. |
Usage Examples
1. Time-Ordered UUID v7 (RFC 9562)
curl https://uuid.ca/api/v7
2. Bulk Generation (JSON Response)
curl "https://uuid.ca/api/v7?count=3&format=json"
Output:
{
"version": "v7",
"count": 3,
"uuids": [
"019313ea-5470-7164-883a-4467008daae6",
"019313ea-5470-7164-883a-4467008daae7",
"019313ea-5470-7164-883a-4467008daae8"
]
}
3. Microsoft / .NET GUID Format
curl "https://uuid.ca/api/v4?case=upper&braces=true"
Output:
{4FE5A660-59B1-4A59-99E7-29BE7D6DEB39}
4. Bash One-Liner for Environment Variables
export DEPLOYMENT_ID=$(curl -s https://uuid.ca/api/v4)
echo "Deploying with ID: $DEPLOYMENT_ID"
5. Path Syntax for Bulk Requests
# Generate 5 UUID v4s
curl https://uuid.ca/api/v4/5