Installation
httpx, pydantic, typer, rich) are installed automatically.
Authentication
Get your API key from your Databar workspace → Integrations.- Environment variable (recommended)
- Explicit in code
Quickstart
Enrichments
List and search enrichments
List and search enrichments
Get enrichment details
Get enrichment details
Run a single enrichment
Run a single enrichment
Bulk run
Bulk run
Get choices for a select parameter
Get choices for a select parameter
Waterfalls
Waterfalls chain multiple enrichment providers together with automatic fallback — if provider A doesn’t return a result, provider B is tried automatically.List waterfalls
List waterfalls
Run a waterfall
Run a waterfall
Bulk run a waterfall
Bulk run a waterfall
Tables
Create and list tables
Create and list tables
Read rows
Read rows
Insert rows
Insert rows
Update rows
Update rows
Upsert rows
Upsert rows
Tasks
For async operations, you can check task status manually or poll until complete:Error handling
| Exception | HTTP Status | When raised |
|---|---|---|
DatabarAuthError | 401 / 403 | Invalid or missing API key |
DatabarNotFoundError | 404 | Enrichment, waterfall, or table not found |
DatabarInsufficientCreditsError | 406 | Not enough credits |
DatabarGoneError | 410 | Task results expired (stored 1 hour) |
DatabarValidationError | 422 | Invalid request parameters |
DatabarRateLimitError | 429 | Rate limit exceeded |
DatabarTaskFailedError | — | Task status returned failed |
DatabarTimeoutError | — | Polling exceeded max attempts |
Configuration
Source code
The SDK is open source under the MIT License.databar-ai/databar-python
View source, report issues, and contribute on GitHub.