Encoding
Parse KSUID timestamp API
Parses a 27-char base62 KSUID, decoding its 4-byte timestamp (offset from the 2014-05-13 KSUID epoch) into epoch-ms/ISO and isolating the 16-byte random payload. Answers 'When was this KSUID created?', 'Extract the payload from a KSUID.'
Price$0.02per request
MethodPOST
Route/v1/encoding/ksuid-parse
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
ksuidtimestampparsebase62sortable-idepochsegmentencoding
API URL
Integration docshttps://x402.hexl.dev/v1/encoding/ksuid-parseExample request
{
"value": "0ujtsYcgvSTl8PAuAdqWYSMnLOv"
}Example response
{
"timestampMs": 1507608047000,
"timestampIso": "2017-10-10T04:00:47.000Z",
"payloadHex": "b5a1cd34b5f99d1154fb6853345c9735",
"valid": true,
"interpretation": "KSUID created at 2017-10-10T04:00:47.000Z; 16-byte random payload follows."
}Input schema
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string",
"examples": [
"0ujtsYcgvSTl8PAuAdqWYSMnLOv"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}