GET/v1/uuid
Generate UUIDs (v4 random or v7 time-ordered)
PARAMETERS
- versionquery · enum
- 4 = random, 7 = time-ordered (sorts by creation time)one of: 4, 7
- countquery · integer
- How manye.g. 1
REQUEST
curl "https://api.apialmanac.com/v1/uuid" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.apialmanac.com/v1/uuid", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.apialmanac.com/v1/uuid", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"version": 7,
"count": 2,
"uuids": [
"019a1d2e-8f3c-7b10-9c4e-2a6f1b7d8e90",
"019a1d2e-8f3c-7b11-8d5f-3b7a2c8e9f01"
]
}