Generate unique identifiers with a single GET request. UUIDs, nanoids, hex tokens, numeric IDs, timestamps — with optional prefixes and batch generation up to 100.
uuid / v4Standard UUID v4 — 36 character hex with dashes
nanoid21-character URL-safe random ID (A-Za-z0-9_-)
nanoid-short12-character compact nanoid for short URLs
hex32-character random hex string
base6422-character random base64url string
numeric18-digit random numeric string
timestampMillisecond Unix timestamp as ID
# Single UUID
curl "https://api-snap.com/api/uuid" -H "Authorization: Bearer snp_your_key"
# 10 prefixed nanoids
curl "https://api-snap.com/api/uuid?format=nanoid&count=10&prefix=usr_" \
-H "Authorization: Bearer snp_your_key"const res = await fetch(
"https://api-snap.com/api/uuid?format=nanoid&count=5&prefix=txn_",
{ headers: { Authorization: "Bearer snp_your_key" } }
);
const { ids } = await res.json();
// ["txn_V1StGXR8_Z5jdHi6B-myT", ...]import requests
r = requests.get(
"https://api-snap.com/api/uuid",
params={"format": "nanoid", "count": 5, "prefix": "order_"},
headers={"Authorization": "Bearer snp_your_key"},
)
ids = r.json()["ids"]No crypto libraries needed. Just an API call.
Get Your Free API Key