Skip to main content

ID Analyzer Python SDK — Identity Verification, KYC, Document & Biometric API

PyPI version Python versions license

Official Python client library for the ID Analyzer API v2 — automate identity document verification, KYC onboarding and biometric checks in minutes.

Scan and authenticate passports, driver's licenses, ID cards, visas and residence permits from 190+ countries, run 1:1 face match and liveness detection, screen against AML / PEP / sanctions watchlists, and onboard users remotely with DocuPass hosted verification & e-signature.

Features

  • Document OCR & authentication — passport, driver's license, ID card, visa & residence-permit recognition from 190+ countries, including MRZ and PDF417 / AAMVA barcode parsing.
  • Biometric verification — 1:1 face match and liveness / presentation-attack detection.
  • AML screening — PEP, sanctions, watchlist and adverse-media checks.
  • DocuPass — hosted, no-code remote identity verification, KYC/AML onboarding and legally-binding e-signature.
  • KYC profiles, transaction vault, contract generation and webhooks.
  • US & EU data-residency regions.

⚠️ Never embed your API key in client-side apps (mobile, browser JS). Call the API from your server.

Installation

pip install idanalyzer2

Requires Python 3.8+. The requests and validators dependencies install automatically.

Authentication & region

Pass your API key to each client, or set the IDANALYZER_KEY environment variable. The SDK targets the US endpoint (https://api2.idanalyzer.com) by default; set IDANALYZER_REGION=eu for the EU endpoint (https://api2-eu.idanalyzer.com). An unrecognized region raises InvalidArgumentException.

Quick start

from idanalyzer2 import *

scanner = Scanner("YOUR_API_KEY")
scanner.throwApiException(True)
scanner.setProfile(Profile(Profile.SECURITY_MEDIUM))

# Scan a document + selfie for biometric verification
result = scanner.scan("id_front.jpg", "", "selfie.jpg")
print(result["decision"])   # accept / review / reject

Examples

from idanalyzer2 import *

# AML / PEP / sanctions screening
aml = AML("YOUR_API_KEY")
aml.search(name="John Smith", country="US")          # POST /aml
aml.searchV3(text="John Smith", limit=10, page=1)    # POST /amlv3

# KYB — business verification
# Verify a business from its registration/incorporation document. A document
# is required; an optional profile selects the KYC profile. The service
# extracts the company details, checks official company registries, screens
# against sanctions/PEP, and returns directors/owners to verify.
kyb = KYB("YOUR_API_KEY")
kyb.verify(document="registration.jpg")                       # document required
kyb.verify(document="registration.jpg", profile="YOUR_PROFILE_ID")  # with a KYC profile

# DocuPass — hosted remote verification link
docupass = Docupass("YOUR_API_KEY")
link = docupass.createDocupass("YOUR_PROFILE_ID")
print(link["url"])

More demos in the /demo folder.

API coverage

The SDK wraps the complete ID Analyzer API v2 surface:

Class Methods
Scanner scan, quickScan, veryQuickScan
Biometric verifyFace, verifyLiveness
AML search (/aml), searchV3 (/amlv3)
KYB verify (/kyb)
Contract generate + template CRUD
Transaction getTransaction, listTransaction, updateTransaction, deleteTransaction, exportTransaction, saveImage, saveFile
Docupass createDocupass, listDocupass, getDocupass, deleteDocupass
ProfileAPI KYC profile create / list / get / update / delete / export
Webhook listWebhook, resendWebhook, deleteWebhook
Account getAccount
Profile client-side KYC profile-override builder

Resources

Other ID Analyzer SDKs

PHP · Python · Node.js · .NET · Java · Go

License

MIT © ID Analyzer — see LICENSE.

Metadata

Release files for idanalyzer2 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for idanalyzer2 1.3.0
File Size Uploaded Provenance Actions
idanalyzer2-1.3.0.tar.gz 23.5 kB With provenance Details for idanalyzer2-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for idanalyzer2 1.3.0
File Interpreter ABI Platform Actions
idanalyzer2-1.3.0-py3-none-any.whl Python 3 none any Details for idanalyzer2-1.3.0-py3-none-any.whl

Total release size: 45.9 kB

Release files / idanalyzer2-1.3.0.tar.gz

Download URL idanalyzer2-1.3.0.tar.gz
Size 23.5 kB
Tags Source
SHA-256 checksum
How to use checksums
6877bdaf9a17615106e0888f530890ed55fa0a6220b4127e1bf71f31e4cae264
BLAKE2b-256 checksum
How to use checksums
83d19f4f5c0fdb46e0da1671502f6f8782b56d37bb5f67a31ad3cbddb934a76c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 18, 2026.

Transparency log

Release files / idanalyzer2-1.3.0-py3-none-any.whl

Download URL idanalyzer2-1.3.0-py3-none-any.whl
Size 22.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a3fa3e1a6d9eb03c31ab2d6c978742ad43587ca204157fe5862118fb411fde48
BLAKE2b-256 checksum
How to use checksums
caa70276ee1b6ffea13e3fb6fe1fd99e153b5ff4383683cf28902290b3264cea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 18, 2026.

Transparency log

Security for idanalyzer2 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for idanalyzer2-1.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page