# MurmurHash API

> 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.

**Endpoint:** `POST https://api.apiverve.com/v1/murmurhash`  
**Category:** Data Processing  
**Cost:** 1 credit per call  
**Canonical page:** https://apiverve.com/marketplace/murmurhash

## Overview

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.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl -X POST "https://api.apiverve.com/v1/murmurhash" \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"hello world","seed":0,"variant":"32"}'
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `text` | string | Yes | The text to hash |
| `seed` | integer | No | Seed value for the hash function, an unsigned 32-bit integer (0 to 4294967295). default 0. range 0-4294967295 |
| `variant` | string | No | Hash variant: 32 (MurmurHash3_x86_32), 128 (MurmurHash3_x86_128) or 128x64 (MurmurHash3_x64_128, the 128-bit hash Python mmh3, Guava and Cassandra use). default 32. One of: 32, 128, 128x64 |

## Response fields

- `hash` — number · Generated MurmurHash3 hash value as an unsigned integer. Use hashHex for the hexadecimal string form
- `hashHex` — string · The hash rendered as a lowercase hexadecimal string
- `variant` — string · Hash variant that was used: murmur3_32, murmur3_128 or murmur3_x64_128
- `seed` — number · Seed value used for hash generation

## Sample response

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

## Use cases

- **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

## SDKs

- **npm** — `npm install @apiverve/murmurhash` (https://www.npmjs.com/package/@apiverve/murmurhash)
- **NuGet** — `dotnet add package APIVerve.API.MurmurHash` (https://www.nuget.org/packages/APIVerve.API.MurmurHash)
- **Source** — https://github.com/apiverve/murmurhash-api

## More

- Full reference: https://docs.apiverve.com/ref/murmurhash
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
