Sources Overview
Sources extract data from external systems like APIs, databases, and message queues. Bizon ships 50 built-in sources and an extensible API for creating custom connectors.
Built-in Sources
Section titled “Built-in Sources”Every source is included in pip install bizon, except the four that need an extra (listed in the Extra column). Each connector’s folder on GitHub has example configs under config/.
List the sources and their streams from the CLI:
bizon source listbizon stream list stripe# [Supports incremental] - charges# ...bizon stream list reports incremental support per source class. Some connectors support incremental only on part of their streams: those marked Some streams below reject sync_mode: incremental (or fall back to a full read) on the others. Check the connector’s example configs for the streams that take a watermark.
CRM, Sales & Marketing
Section titled “CRM, Sales & Marketing”| Source | What it is | API | Incremental | Extra | Code |
|---|---|---|---|---|---|
hubspot | HubSpot CRM objects, engagements, associations | REST | Some streams | GitHub | |
customerio | Customer.io Journeys: customers, campaigns, newsletters, segments | REST | Yes | GitHub | |
calendly | Calendly users, scheduled events, invitees, routing forms | REST | Some streams | GitHub | |
gong | Gong calls, transcripts, users, scorecards | REST | Some streams | GitHub | |
buildbetter | BuildBetter calls, signals, people, companies | GraphQL | Some streams | GitHub | |
cycle | Cycle customers and companies | GraphQL | No | GitHub | |
vitally | Vitally accounts, users, notes, custom objects | REST | No | GitHub | |
partnerstack | PartnerStack vendor API: partnerships, deals, rewards | REST | No | GitHub | |
typeform | Typeform forms, workspaces, responses | REST | Some streams | GitHub | |
storeleads | StoreLeads domains, apps, technologies, Shopify app reviews | REST | No | GitHub | |
webflow | Webflow CMS collection items | REST | No | GitHub | |
contrast_io | Contrast webinars: events, registrations, views, poll votes | REST | No | GitHub |
Advertising
Section titled “Advertising”| Source | What it is | API | Incremental | Extra | Code |
|---|---|---|---|---|---|
google_ads | Google Ads account structure and daily performance (GAQL) | REST | Yes | GitHub | |
bing_ads | Microsoft Advertising accounts, Bulk entities, daily reports | REST | Yes | GitHub | |
linkedin_ads | LinkedIn ad accounts, campaigns, conversions, lead forms, analytics | REST | Yes | GitHub | |
openai_ads | OpenAI (ChatGPT) Ads campaigns, audit log, daily insights | REST | Yes | GitHub |
Finance, Billing & Contracts
Section titled “Finance, Billing & Contracts”| Source | What it is | API | Incremental | Extra | Code |
|---|---|---|---|---|---|
stripe | Stripe charges, balance transactions, events, coupons | REST | Yes | GitHub | |
chargebee | Chargebee subscriptions, comments, events | REST | Yes | GitHub | |
tipalti | Tipalti payees, bills, payments, balances | SOAP | No | GitHub | |
exchange_rates | apilayer Exchange Rates Data API, one rate set per day | REST | Yes | GitHub | |
nops | nOps cloud costs by dimension, cost summaries | REST | No | GitHub | |
tropic | Tropic procurement contracts | REST | No | GitHub | |
spotdraft | SpotDraft CLM contracts, with optional PDF text | REST | No | bizon[spotdraft] | GitHub |
Engineering & Product
Section titled “Engineering & Product”| Source | What it is | API | Incremental | Extra | Code |
|---|---|---|---|---|---|
github | GitHub repos, pull requests, reviews, commits, workflow runs, content (GitHub App auth) | REST + GraphQL | Yes | bizon[github] | GitHub |
linear | Linear issues, projects, cycles, history, comments | GraphQL | Yes | GitHub | |
posthog | PostHog events, persons, definitions, cohorts | REST | Some streams | GitHub | |
rootly | Rootly incidents, post-mortems, teams, services | REST | No | GitHub | |
harness_fme | Harness FME (formerly Split.io) feature flags and segments | REST | No | GitHub | |
metabase | Metabase users, cards, dashboards, permission groups | REST | No | GitHub | |
periscope | Periscope Data (Sisense) dashboards, charts, views | Web app API (cookies) | No | GitHub | |
noticeable | Noticeable changelog publications, comments, email events | GraphQL | No | GitHub |
AI Platforms
Section titled “AI Platforms”| Source | What it is | API | Incremental | Extra | Code |
|---|---|---|---|---|---|
anthropic | Anthropic Admin Analytics: Claude engagement, cost and usage reports | REST | Yes | GitHub | |
openai | OpenAI ChatGPT Compliance Platform: costs, workspace daily usage | REST | Yes | GitHub | |
cloudflare_ai_gateway | Cloudflare AI Gateway Logpush NDJSON files in a GCS bucket | GCS files | Yes | GitHub |
HR, Recruiting & Learning
Section titled “HR, Recruiting & Learning”| Source | What it is | API | Incremental | Extra | Code |
|---|---|---|---|---|---|
ashby | Ashby recruiting jobs and job postings | REST | No | GitHub | |
deel | Deel time off, people, managers | REST | No | GitHub | |
lattice | Lattice users, departments, feedback, review cycles | REST | No | GitHub | |
rippling | Rippling workers, org structure, compensation, leave | REST | No | GitHub | |
sana_ai | Sana learning platform insight reports | REST | No | GitHub |
Collaboration, Content & Communication
Section titled “Collaboration, Content & Communication”| Source | What it is | API | Incremental | Extra | Code |
|---|---|---|---|---|---|
notion | Notion databases, pages, blocks, users | REST | Some streams | GitHub | |
slack | Slack users, public channels, external users | REST | No | GitHub | |
airtable | Airtable tables, one table per stream | REST | No | GitHub | |
gsheets | Google Sheets worksheet | REST (gspread) | No | bizon[gsheets] | GitHub |
circle | Circle.so community members, spaces, posts, comments | REST | No | GitHub | |
wistia | Wistia medias, viewing events, daily media stats | REST | Some streams | GitHub | |
twilio | Twilio subaccounts, messages, usage records, phone numbers | REST | Yes | GitHub |
Streaming
Section titled “Streaming”| Source | What it is | API | Incremental | Extra | Code |
|---|---|---|---|---|---|
kafka | Kafka / Redpanda topics, JSON or Avro | Kafka | N/A (stream) | bizon[kafka] | GitHub |
Testing & Public Data
Section titled “Testing & Public Data”| Source | What it is | API | Incremental | Extra | Code |
|---|---|---|---|---|---|
dummy | Fake API with test records | Built-in fake API | No | GitHub | |
pokeapi | PokeAPI pokemon, berries, items | REST | No | GitHub | |
gbif | GBIF biodiversity occurrences, no auth; a high-volume load generator | REST | No | GitHub |
Source Configuration
Section titled “Source Configuration”Every source requires these base configuration fields:
source: name: hubspot stream: contacts sync_mode: full_refresh authentication: type: api_key params: token: ${env://HUBSPOT_TOKEN}Base Configuration Fields
Section titled “Base Configuration Fields”| Field | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | Yes | - | Source connector identifier |
stream | string | Yes | - | Stream name to sync |
sync_mode | enum | No | full_refresh | Sync mode: full_refresh, incremental, stream |
cursor_field | string | No | - | Field the source filters on in incremental mode (e.g. updated_at), for sources that read it |
authentication | object | Varies | - | Authentication configuration |
http | object | No | Connector default | HTTP timeout, retry and status policy. See HTTP Policy |
source_file_path | string | No | - | Path to custom source file |
force_ignore_checkpoint | bool | No | false | Restart from iteration 0 instead of resuming the in-flight job. The incremental watermark still comes from the last successful job |
max_iterations | int | No | - | Limit iterations (for testing) |
reset | bool | No | false | Deprecated. Resets the stream on every run until removed. Use bizon run --reset or bizon stream reset instead |
Source-specific fields sit next to these at the same level. A key that neither the base config nor the connector’s config class declares logs a warning and is ignored.
AbstractSource API
Section titled “AbstractSource API”Implement AbstractSource to create custom source connectors.
from bizon.source.source import AbstractSourcefrom bizon.source.config import SourceConfigfrom bizon.source.models import SourceIteration, SourceRecord
class MySource(AbstractSource):
@staticmethod def streams() -> list[str]: """Return available stream names.""" return ["users", "orders"]
@staticmethod def get_config_class() -> type[SourceConfig]: """Return the config class for this source.""" return MySourceConfig
def get_authenticator(self): """Return a requests.auth.AuthBase instance or None.""" return None
def check_connection(self) -> tuple[bool, any]: """Test the connection. Return (success, error_or_none).""" return True, None
def get_total_records_count(self) -> int | None: """Return total record count if known, else None.""" return None
def get(self, pagination: dict = None) -> SourceIteration: """Fetch the next batch of records.""" records = [ SourceRecord(id="1", data={"name": "Alice"}), SourceRecord(id="2", data={"name": "Bob"}), ] return SourceIteration( records=records, next_pagination={} # Empty dict = no more data )Required Methods
Section titled “Required Methods”| Method | Returns | Description |
|---|---|---|
streams() | list[str] | Static method returning available stream names |
get_config_class() | type[SourceConfig] | Static method returning config class |
get_authenticator() | AuthBase | None | Return authenticator for requests session |
check_connection() | tuple[bool, any] | Test connectivity |
get_total_records_count() | int | None | Total records available (for progress) |
get(pagination) | SourceIteration | Fetch next batch of records |
Optional Methods
Section titled “Optional Methods”| Method | Returns | Description |
|---|---|---|
get_records_after(source_state, pagination) | SourceIteration | Incremental fetch (for incremental mode) |
get_retry_policy() | Retry | None | Tune the default session’s retries without replacing it. See HTTP Policy |
get_session() | requests.Session | Replace the default session. source.http then has no effect |
commit() | None | Commit progress to source (for Kafka offsets) |
set_streams_config(streams) | None | Accept stream routing configuration |
Data Models
Section titled “Data Models”SourceRecord
Section titled “SourceRecord”Individual record extracted from the source:
class SourceRecord: id: str # Unique identifier (ints are coerced to str) data: dict # JSON payload timestamp: datetime # Record timestamp (default: extraction time, UTC) destination_id: str # Target table (for multi-table routing)SourceIteration
Section titled “SourceIteration”Batch of records with pagination state:
class SourceIteration: records: list[SourceRecord] # Records in this batch next_pagination: dict # State for next iteration next_state: dict | None # State handed to the next incremental run (default: None)Pagination behavior:
- Return an empty
{}dict to signal no more data - Return pagination state (cursor, offset, page) to continue fetching
next_state must be JSON-serializable. The last non-None value emitted during a run is saved when the job succeeds, and the next incremental run receives it as source_state.state. A run that emits none keeps the previous state; a reset starts from an empty one.
SourceIncrementalState
Section titled “SourceIncrementalState”State for incremental syncs:
class SourceIncrementalState: last_run: datetime # Start time of the last successful job (timezone-aware UTC) state: dict # next_state persisted by the last successful job cursor_field: str | None # source.cursor_field from the config run_started_at: datetime | None # Start time of the current job (UTC, stable across resumes)run_started_at is exactly the last_run the next run will receive, so using it as the upper bound of the current window makes consecutive windows tile with no gap or overlap. See Incremental Sync.
Example: Pagination Patterns
Section titled “Example: Pagination Patterns”Cursor-based
Section titled “Cursor-based”def get(self, pagination: dict = None) -> SourceIteration: cursor = pagination.get("cursor") if pagination else None
response = self.session.get( "https://api.example.com/users", params={"cursor": cursor} ) data = response.json()
records = [ SourceRecord(id=str(u["id"]), data=u) for u in data["users"] ]
next_cursor = data.get("next_cursor") return SourceIteration( records=records, next_pagination={"cursor": next_cursor} if next_cursor else {} )Offset-based
Section titled “Offset-based”def get(self, pagination: dict = None) -> SourceIteration: offset = pagination.get("offset", 0) if pagination else 0 limit = 100
response = self.session.get( "https://api.example.com/users", params={"offset": offset, "limit": limit} ) data = response.json()
records = [SourceRecord(id=str(u["id"]), data=u) for u in data]
if len(records) < limit: return SourceIteration(records=records, next_pagination={})
return SourceIteration( records=records, next_pagination={"offset": offset + limit} )Next Steps
Section titled “Next Steps”- Kafka Source - Stream from Kafka topics
- HubSpot Source - Sync CRM data
- Custom Sources - Build your own connector
- Authentication - Configure auth methods