Encoding
Decode Snowflake ID API
Decodes a Twitter/Discord/Instagram-style Snowflake ID into creation time (using the correct service epoch), worker ID, process ID, and sequence via the 42/5/5/12 bit layout. Answers 'When was this Discord ID created?', 'Decode the worker and sequence from a Snowflake.'
Price$0.02per request
MethodPOST
Route/v1/encoding/snowflake-decode
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
snowflaketwitterdiscordiddecodetimestampepochencoding
API URL
Integration docshttps://x402.hexl.dev/v1/encoding/snowflake-decodeExample request
{
"value": "175928847299117063",
"epoch": "discord"
}Example response
{
"id": "175928847299117063",
"epochName": "discord",
"epochMs": 1420070400000,
"timestampMs": 1462015105796,
"timestampIso": "2016-04-30T11:18:25.796Z",
"workerId": 1,
"processId": 0,
"sequence": 7,
"interpretation": "Snowflake (discord epoch) created at 2016-04-30T11:18:25.796Z; worker 1, process 0, seq 7."
}Input schema
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string",
"examples": [
"175928847299117063"
]
},
"epoch": {
"type": "string",
"enum": [
"twitter",
"discord",
"instagram",
"mastodon",
"custom"
]
},
"customEpochMs": {
"type": "number"
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}