minfraud
MaxMind minFraud API
What it is and what it does
minfraud is a Python wrapper around MaxMind's minFraud web services for fraud detection and reporting. It provides both synchronous (Client) and asynchronous (AsyncClient) interfaces to query three main services: Score (fast risk assessment), Insights (enriched risk data), and Factors (detailed fraud indicators). The library also supports reporting fraudulent transactions back to MaxMind to improve their detection algorithms.
The package handles request validation before sending to the web service, raising specific exceptions (AuthenticationError, InvalidRequestError, HttpError, InsufficientFundsError) to help you handle different failure modes. It depends on aiohttp and requests for HTTP transport, email-validator and geoip2 for data enrichment, voluptuous for schema validation, and typing-extensions for type hints.
Use it for:
- Real-time fraud scoring during checkout to flag high-risk transactions before payment processing.
- Batch analysis of historical transactions to identify patterns and improve internal fraud rules.
- Asynchronous risk assessment in high-throughput payment systems to avoid blocking request handlers.
- Reporting confirmed chargebacks and fraud cases back to MaxMind to strengthen their detection models.
- Enriching transaction logs with geolocation and device risk data for compliance and investigation.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python client library for MaxMind's minFraud web services, providing synchronous and asynchronous APIs to assess transaction fraud risk and report fraudulent activity.
Yes. Active maintenance, permissive license, low install friction, no known vulnerabilities, and production-stable status make it a solid choice for integrating MaxMind's fraud detection into Python applications. Requires a MaxMind account and API credentials to be useful.
Install
minfraud on PyPI
pip
pip install minfrauduv
uv add minfraudpoetry
poetry add minfraudInstalling minfraud
Before you install
Low install friction with a pure-Python wheel distribution. Active maintenance with a release within the last month. Supports current Python versions (3.10–3.14) and has been maintained since 2015.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions, making it suitable for most production fraud-detection workflows.
Quickstart
pip install minfraud
from minfraud import Client
client = Client(account_id=42, license_key='your_key')
response = client.score({'device': {'ip_address': '152.216.7.110'}})
Requires a MaxMind account ID and license key to authenticate requests to the minFraud web service.
Verify before relying
- Rate limits or quota constraints on API calls per account tier.
- Latency characteristics for synchronous vs. asynchronous requests in production.
- Specific error recovery and retry behavior for network failures.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — aiohttp, email-validator, geoip2, requests, typing-extensions, voluptuous |
| Maintenance | actively maintained — 24 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 106,804/month — #12,639 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: minfraud-3.3.0-py3-none-any.whl
Tags
More Internet packages
Botocore provides low-level, data-driven access…
permissive · top 100 on PyPI
aiobotocoreProvides an async client for AWS services using…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
filelockProvides a platform-independent file locking…
permissive · top 100 on PyPI
fastapiFastAPI is a Python web framework for building…
permissive · top 100 on PyPI
googleapis-common-protosProvides common Protocol Buffer message…
permissive · top 100 on PyPI
geoip2Queries MaxMind's GeoIP web services and…
permissive · top 5,000 on PyPI
SiftPython client library for Sift Science's fraud…
permissive · top 15,000 on PyPI
maxminddbReads MaxMind DB files to look up geolocation…
permissive · top 5,000 on PyPI
maxminddb-geolite2Provides geolocation lookups by IP address…
unclear · top 15,000 on PyPI
chargebeeOfficial Python client library for integrating…
unclear · top 5,000 on PyPI
beanstreamProvides a Python client library for the…
permissive · top 15,000 on PyPI
dodopaymentsProvides a Python client library for the Dodo…
permissive · top 15,000 on PyPI
method-pythonPython client library for the Method API,…
permissive · top 15,000 on PyPI
gocardless-proA Python client library for the GoCardless API…
permissive · top 15,000 on PyPI
AvalaraPython client library for Avalara's AvaTax REST…
unclear · top 15,000 on PyPI