enigma-api-client
Enigma's Public API SDK
What it is and what it does
Enigma API Client is a Python SDK that wraps Enigma's GraphQL business intelligence API, letting you query a large business database either by writing raw GraphQL or by submitting natural language prompts. The library handles connection lifecycle, async I/O, and response parsing through httpx, pydantic, and graphql-core.
The package offers four query strategies: ServiceStrategy (default, server-side generation), TemplateStrategy (LLM-classified into 12 pre-defined templates), GenerativeStrategy (end-to-end LLM generation), and AgentStrategy (Claude agent with skill access). Most callers use the default server-side strategy; local strategies require an Anthropic API key and trade speed for control. The client is designed as an async context manager to maintain reusable keep-alive connections.
Use it for:
- Brand and company profile lookups: search for business details by name or website.
- Location discovery: find retail or office locations for a brand within a geographic region.
- Person and ownership search: identify companies owned by or associated with a specific individual.
- KYB verification: verify legal entity status and corporate structure for compliance or due diligence.
- Watchlist screening: check entities against risk or compliance watchlists.
- Custom queries: use raw GraphQL or generative strategies for complex business intelligence queries not covered by templates.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Python SDK for querying Enigma's GraphQL business intelligence API, supporting both raw GraphQL and natural language prompts to search a database of 250M+ businesses.
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and offers a clean async API with multiple query strategies. It is worth installing if you need programmatic access to Enigma's business database and can provide an API key. The default server-side strategy requires no local LLM setup; local strategies add flexibility at the cost of Anthropic API calls and latency.
Install
enigma-api-client on PyPI
pip
pip install enigma-api-clientuv
uv add enigma-api-clientpoetry
poetry add enigma-api-clientInstalling enigma-api-client
Before you install
Low install friction with a pure-Python wheel and four lightweight runtime dependencies. Active maintenance with a release 2 days old as of the fact sheet date.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions.
Quickstart
pip install enigma-api-client
import asyncio
from enigma_api_client import Client, ClientConfig
async def main():
config = ClientConfig(enigma_api_key="your-api-key")
async with Client(config) as client:
response = await client.search(prompt="Tell me about Chipotle")
print(response.data)
asyncio.run(main())
Requires Python 3.11 or later. Enigma API key required; optional Anthropic API key for local LLM-based query generation strategies.
Verify before relying
- Whether the 250M+ business database figure is current or a historical snapshot.
- Specific rate limits, latency characteristics, or SLA guarantees for the GraphQL endpoint.
- Whether AgentStrategy's iterative refinement actually improves query quality in practice for edge cases.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 4 — httpx, pyyaml, pydantic, graphql-core |
| Maintenance | actively maintained — 2 days since the last release |
| First released | |
| Downloads | 95,655/month — #13,256 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: enigma_api_client-0.7.11-py3-none-any.whl
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
sgqlcsgqlc is a Python client library for querying…
permissive · top 5,000 on PyPI
graphqlclientA lightweight GraphQL client that sends queries…
permissive · top 15,000 on PyPI
gqlA GraphQL client for Python that executes…
permissive · top 1,000 on PyPI
rocketreachPython client library for the RocketReach API,…
unclear · top 15,000 on PyPI
python-graphql-clientSends GraphQL queries, mutations, and…
permissive · top 15,000 on PyPI
graphql-queryBuilds GraphQL query strings programmatically…
permissive · top 15,000 on PyPI
hypothesis-graphqlGenerates arbitrary GraphQL queries matching…
permissive · top 5,000 on PyPI
GitHubKitA fully typed Python SDK for GitHub's REST and…
permissive · top 5,000 on PyPI
Flask-GraphQLAdds a GraphQL endpoint to Flask applications,…
permissive · top 15,000 on PyPI
tako-sdkProvides a Python client library for the Tako…
permissive · top 15,000 on PyPI