Encoding
xxHash32 digest API
Computes the 32-bit xxHash (XXH32) of bytes with an optional seed, faithfully implementing the 16-byte block rounds, tail mix, and avalanche finalizer. Answers 'What is the xxHash32 of this data?', 'Compute a seeded xxHash32 for sharding.'
Price$0.02per request
MethodPOST
Route/v1/encoding/xxhash32
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
xxhashxxh32hashnon-cryptographicfast-hashseed32-bitencoding
API URL
Integration docshttps://x402.hexl.dev/v1/encoding/xxhash32Example request
{
"value": "test"
}Example response
{
"hash": 1042293711,
"hashHex": "0x3e2023cf",
"seed": 0,
"byteLength": 4,
"interpretation": "xxHash32 (seed 0) of 4 bytes = 0x3e2023cf."
}Input schema
{
"type": "object",
"required": [
"value"
],
"properties": {
"value": {
"type": "string",
"examples": [
"test"
]
},
"seed": {
"type": "number",
"examples": [
0
]
},
"inputEncoding": {
"type": "string",
"examples": [
"utf8",
"hex",
"base64"
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}