NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

MurmurHash API

POST

Hash strings fast for data partitioning and bloom filters.

MurmurHash generates fast, non-cryptographic hashes using the MurmurHash3 algorithm. Ideal for hash tables, data partitioning, bloom filters, and checksums where cryptographic security isn't needed.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/murmurhash
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "hash": 1586663183,
    "hashHex": "5e928f0f",
    "variant": "murmur3_32",
    "seed": 0
  }
}

About the MurmurHash API

A MurmurHash API that returns MurmurHash3 values for any text, in the 32-bit or 128-bit variant, with an optional seed. Send a string and get back the hash as a number and as a lowercase hex string, so you can compare it with what your own code, database or data pipeline produces.

MurmurHash is fast and spreads keys evenly, which is why it sits behind hash tables, bloom filters, sharding keys and sampling buckets. Not suitable for cryptographic purposes - use for data structures, deduplication, consistent hashing, and other performance-critical applications where the goal is distribution rather than secrecy. It is also handy for checking that two systems agree on a hash, or for computing bucket assignments in a no-code tool that has no hashing function of its own.

Every plan, including the Free plan, returns the full result for both variants. Change the seed to get an independent hash family from the same input, which is how bloom filters and count-min sketches derive several hash functions from one algorithm.

How it works

MurmurHash implements MurmurHash3 in three forms. variant=32 (the default) is MurmurHash3_x86_32; variant=128 is MurmurHash3_x86_128, transcribed from Austin Appleby's reference code; variant=128x64 is MurmurHash3_x64_128, which is what Python mmh3.hash128/mmh3.hash_bytes, Guava Hashing.murmur3_128 and most Java, Go and Rust 128-bit murmur3 packages compute. Use 128x64 when comparing a 128-bit hash with one of those libraries. Any other variant produces the x86 128-bit hash.

The text you POST is hashed as its UTF-8 bytes, exactly as sent, so results match standard MurmurHash3 implementations for any text, including accented letters and emoji.

seed is parsed as an integer and defaults to 0. The same text and seed always give the same hash, and changing the seed gives an unrelated value.

For the 32-bit variant, hash is the result as an unsigned integer from 0 to 4,294,967,295, and hashHex is the same value as eight hex digits, zero-padded. The 32-bit variant also returns hashSigned, the same value as a signed 32-bit integer, which is how Python mmh3.hash() and Java report it. For the 128-bit variants both hash and hashHex contain the same 32-character hex string, because the value is too large to return as a JSON number. For 128 it is the four 32-bit state words in order, each written in little-endian byte order. For 128x64 it is the two 64-bit halves h1 then h2, each little-endian, which equals Guava's HashCode.toString() and mmh3.hash_bytes(...).hex(). Cassandra's Murmur3Partitioner token is the first 64-bit half read as a signed integer, and it sign-extends non-ASCII bytes, so compare Cassandra tokens on ASCII keys. variant is returned as murmur3_32, murmur3_128 or murmur3_x64_128, and seed echoes the seed used. There is no plan-based difference in the output.

What people use it for

Hash Tables
Generate keys for hash-based data structures
Data Partitioning
Consistently distribute data across shards
Bloom Filters
Fast hashing for probabilistic data structures
Deduplication
Quickly identify duplicate records

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use MurmurHash

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the MurmurHash API.

Read the docs →
Which MurmurHash variants are supported?
Three: 32 (MurmurHash3_x86_32, the default), 128 (MurmurHash3_x86_128) and 128x64 (MurmurHash3_x64_128). Use 128x64 to match the 128-bit hashes from Python mmh3, Guava and Cassandra. The reference names x86_32, x86_128 and x64_128 are accepted as well. The response confirms the variant applied alongside the generated hash.
Can I supply a custom seed for consistent hashing?
Yes. You can supply an optional integer seed value with your text to ensure consistent, reproducible hash outputs across your applications and partitioned datasets.
Can I use these hashes to store passwords or secure tokens?
No. MurmurHash3 is strictly non-cryptographic and should never be used for cryptographic security or password hashing. It is intended for performance-critical data structures like hash tables, bloom filters, and deduplication systems.
What would 50,000 hash calculations a month cost me?
At 1 credit per call, 50,000 calculations use 50,000 credits, which is a quarter of the Starter plan's 200,000 monthly credits. That works out to about $0.15 per 1,000 calls. The Free plan includes 200 calls per month for testing.
What data format does the hash function accept?
The endpoint accepts any standard text string you provide. It hashes the UTF-8 bytes of the string exactly as sent, including any leading or trailing whitespace, and returns the calculated hash along with the seed and variant used.

Ready to build with MurmurHash? Start with 200 free credits — one key unlocks all 420+ APIs.

Explore the catalog

420+ APIs on the same key and the same response shape.

Browse all APIs