Skip to main content

Official Python SDK for the BizVerify API — verify business entities against official government registries (Secretary of State, Companies House) across the US and Europe.

Project description

BizVerify Python SDK

Official Python SDK for the BizVerify business entity verification API.

Installation

pip install bizverify

Quick Start

Authentication (Passwordless)

from bizverify import BizVerify

client = BizVerify()

# Request a verification code via email
client.auth.request_access("you@example.com", accept_terms=True)

# Verify the code — client is automatically configured with the new API key
resp = client.auth.verify_access("you@example.com", "123456", label="my-agent")
print(resp.api_key)  # Store this for future use

# Or initialize with an existing API key
client = BizVerify(api_key="bv_live_...")

Verify a Business Entity

client = BizVerify(api_key="bv_live_...")

# Synchronous verification (cached result)
result = client.verification.verify("Acme Inc", "us-fl")
print(result.status, result.data)

# Verify and wait for async job to complete
job = client.verification.verify_and_wait("Acme Inc", "us-fl")
print(job.status, job.result)

Search for Entities

# Single page
response = client.search.find("Acme", jurisdiction="us-fl")
for result in response.results:
    print(result.entity_name, result.confidence)

# Auto-paginate through all results
for result in client.search.find_all("Acme"):
    print(result.entity_name)

Response Metadata

Every API call populates last_response_meta with credit and rate limit info:

result = client.verification.verify("Acme Inc", "us-fl")
meta = client.last_response_meta
print(meta.credits_remaining)    # 85
print(meta.credits_charged)      # 15
print(meta.rate_limit_remaining)  # 59

Configuration & Jurisdictions

# Get full API configuration (no auth required)
config = client.config.get()
print(config.pricing)
print(config.jurisdictions)

# List supported jurisdictions
resp = client.config.jurisdictions()
for j in resp.jurisdictions:
    print(j.code, j.name, j.features)

Async Client

import asyncio
from bizverify import AsyncBizVerify

async def main():
    async with AsyncBizVerify(api_key="bv_live_...") as client:
        result = await client.verification.verify("Acme Inc", "us-fl")
        print(result.status)

        async for result in client.search.find_all("Acme"):
            print(result.entity_name)

asyncio.run(main())

Error Handling

from bizverify import BizVerify, NotFoundError, InsufficientCreditsError, RateLimitError

client = BizVerify(api_key="bv_live_...")

try:
    entity = client.entities.get("ent_nonexistent")
except NotFoundError as e:
    print(f"Not found: {e.message} (code={e.code})")
except InsufficientCreditsError:
    print("Need more credits")
except RateLimitError as e:
    print(f"Rate limited, retry after {e.retry_after}s")

API Reference

Resources

Resource Methods
client.auth request_access(), verify_access()
client.verification verify(), verify_and_wait(), get_status()
client.entities get(), history()
client.search find(), find_all()
client.account get(), usage(), data_export(), update_email(), create_key(), revoke_key()
client.billing get(), purchase()
client.config get(), jurisdictions()
client.checker check()

Client Options

client = BizVerify(
    api_key="bv_live_...",      # API key authentication
    base_url="https://...",     # Custom base URL
    max_retries=2,              # Retry on 5xx (default: 2)
    timeout=30.0,               # Request timeout in seconds (default: 30)
)

Requirements

  • Python >= 3.9
  • httpx >= 0.25

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bizverify-0.2.1.tar.gz (18.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bizverify-0.2.1-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file bizverify-0.2.1.tar.gz.

File metadata

  • Download URL: bizverify-0.2.1.tar.gz
  • Upload date:
  • Size: 18.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bizverify-0.2.1.tar.gz
Algorithm Hash digest
SHA256 453cd7e0cfb2686200519303d9f9f287afaeda840cc6ccb85d22ab73b3c083c0
MD5 7472449a5472b02ac7707610114640cc
BLAKE2b-256 3a2a140515c535e9835baa28c9811888962d236f3925af6b6a28ff7e180626ef

See more details on using hashes here.

Provenance

The following attestation bundles were made for bizverify-0.2.1.tar.gz:

Publisher: publish.yml on BizVerify/bizverify-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file bizverify-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: bizverify-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for bizverify-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 94141a29b946b750a66da634683b8bebbd21ff00decc53d1b5afebfd942ab3f6
MD5 19e51f70c9d502f5f54fbd0838c2d705
BLAKE2b-256 92a8ef403084ad63db2ab087cde5537ba33add1ff8cbcce782034aab5a9d0d65

See more details on using hashes here.

Provenance

The following attestation bundles were made for bizverify-0.2.1-py3-none-any.whl:

Publisher: publish.yml on BizVerify/bizverify-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page