--- id: minfraud version: "3.3.0" license: Apache-2.0 license_treatment: permissive maintenance: active --- # minfraud — MaxMind minFraud API License: permissive · Maintenance: active · Downloads: 106.8K/mo ## 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 above — 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 pip install minfraud uv add minfraud poetry add minfraud ## Installing 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_current - Install friction: low - Maintenance: active - Downloads: 106.8K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags fraud detection api client, maxmind minfraud python, transaction risk scoring, async fraud assessment, payment fraud detection, chargeback reporting api, ip address fraud analysis, fraud-detection, async-support, payment-security [View on SkillFed](https://skillfed.io/packages/minfraud) · [View on PyPI](https://pypi.org/project/minfraud/)