Skip to content

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.

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:

Terminal window
bizon source list
bizon 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.

SourceWhat it isAPIIncrementalExtraCode
hubspotHubSpot CRM objects, engagements, associationsRESTSome streamsGitHub
customerioCustomer.io Journeys: customers, campaigns, newsletters, segmentsRESTYesGitHub
calendlyCalendly users, scheduled events, invitees, routing formsRESTSome streamsGitHub
gongGong calls, transcripts, users, scorecardsRESTSome streamsGitHub
buildbetterBuildBetter calls, signals, people, companiesGraphQLSome streamsGitHub
cycleCycle customers and companiesGraphQLNoGitHub
vitallyVitally accounts, users, notes, custom objectsRESTNoGitHub
partnerstackPartnerStack vendor API: partnerships, deals, rewardsRESTNoGitHub
typeformTypeform forms, workspaces, responsesRESTSome streamsGitHub
storeleadsStoreLeads domains, apps, technologies, Shopify app reviewsRESTNoGitHub
webflowWebflow CMS collection itemsRESTNoGitHub
contrast_ioContrast webinars: events, registrations, views, poll votesRESTNoGitHub
SourceWhat it isAPIIncrementalExtraCode
google_adsGoogle Ads account structure and daily performance (GAQL)RESTYesGitHub
bing_adsMicrosoft Advertising accounts, Bulk entities, daily reportsRESTYesGitHub
linkedin_adsLinkedIn ad accounts, campaigns, conversions, lead forms, analyticsRESTYesGitHub
openai_adsOpenAI (ChatGPT) Ads campaigns, audit log, daily insightsRESTYesGitHub
SourceWhat it isAPIIncrementalExtraCode
stripeStripe charges, balance transactions, events, couponsRESTYesGitHub
chargebeeChargebee subscriptions, comments, eventsRESTYesGitHub
tipaltiTipalti payees, bills, payments, balancesSOAPNoGitHub
exchange_ratesapilayer Exchange Rates Data API, one rate set per dayRESTYesGitHub
nopsnOps cloud costs by dimension, cost summariesRESTNoGitHub
tropicTropic procurement contractsRESTNoGitHub
spotdraftSpotDraft CLM contracts, with optional PDF textRESTNobizon[spotdraft]GitHub
SourceWhat it isAPIIncrementalExtraCode
githubGitHub repos, pull requests, reviews, commits, workflow runs, content (GitHub App auth)REST + GraphQLYesbizon[github]GitHub
linearLinear issues, projects, cycles, history, commentsGraphQLYesGitHub
posthogPostHog events, persons, definitions, cohortsRESTSome streamsGitHub
rootlyRootly incidents, post-mortems, teams, servicesRESTNoGitHub
harness_fmeHarness FME (formerly Split.io) feature flags and segmentsRESTNoGitHub
metabaseMetabase users, cards, dashboards, permission groupsRESTNoGitHub
periscopePeriscope Data (Sisense) dashboards, charts, viewsWeb app API (cookies)NoGitHub
noticeableNoticeable changelog publications, comments, email eventsGraphQLNoGitHub
SourceWhat it isAPIIncrementalExtraCode
anthropicAnthropic Admin Analytics: Claude engagement, cost and usage reportsRESTYesGitHub
openaiOpenAI ChatGPT Compliance Platform: costs, workspace daily usageRESTYesGitHub
cloudflare_ai_gatewayCloudflare AI Gateway Logpush NDJSON files in a GCS bucketGCS filesYesGitHub
SourceWhat it isAPIIncrementalExtraCode
ashbyAshby recruiting jobs and job postingsRESTNoGitHub
deelDeel time off, people, managersRESTNoGitHub
latticeLattice users, departments, feedback, review cyclesRESTNoGitHub
ripplingRippling workers, org structure, compensation, leaveRESTNoGitHub
sana_aiSana learning platform insight reportsRESTNoGitHub
SourceWhat it isAPIIncrementalExtraCode
notionNotion databases, pages, blocks, usersRESTSome streamsGitHub
slackSlack users, public channels, external usersRESTNoGitHub
airtableAirtable tables, one table per streamRESTNoGitHub
gsheetsGoogle Sheets worksheetREST (gspread)Nobizon[gsheets]GitHub
circleCircle.so community members, spaces, posts, commentsRESTNoGitHub
wistiaWistia medias, viewing events, daily media statsRESTSome streamsGitHub
twilioTwilio subaccounts, messages, usage records, phone numbersRESTYesGitHub
SourceWhat it isAPIIncrementalExtraCode
kafkaKafka / Redpanda topics, JSON or AvroKafkaN/A (stream)bizon[kafka]GitHub
SourceWhat it isAPIIncrementalExtraCode
dummyFake API with test recordsBuilt-in fake APINoGitHub
pokeapiPokeAPI pokemon, berries, itemsRESTNoGitHub
gbifGBIF biodiversity occurrences, no auth; a high-volume load generatorRESTNoGitHub

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}
FieldTypeRequiredDefaultDescription
namestringYes-Source connector identifier
streamstringYes-Stream name to sync
sync_modeenumNofull_refreshSync mode: full_refresh, incremental, stream
cursor_fieldstringNo-Field the source filters on in incremental mode (e.g. updated_at), for sources that read it
authenticationobjectVaries-Authentication configuration
httpobjectNoConnector defaultHTTP timeout, retry and status policy. See HTTP Policy
source_file_pathstringNo-Path to custom source file
force_ignore_checkpointboolNofalseRestart from iteration 0 instead of resuming the in-flight job. The incremental watermark still comes from the last successful job
max_iterationsintNo-Limit iterations (for testing)
resetboolNofalseDeprecated. 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.

Implement AbstractSource to create custom source connectors.

from bizon.source.source import AbstractSource
from bizon.source.config import SourceConfig
from 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
)
MethodReturnsDescription
streams()list[str]Static method returning available stream names
get_config_class()type[SourceConfig]Static method returning config class
get_authenticator()AuthBase | NoneReturn authenticator for requests session
check_connection()tuple[bool, any]Test connectivity
get_total_records_count()int | NoneTotal records available (for progress)
get(pagination)SourceIterationFetch next batch of records
MethodReturnsDescription
get_records_after(source_state, pagination)SourceIterationIncremental fetch (for incremental mode)
get_retry_policy()Retry | NoneTune the default session’s retries without replacing it. See HTTP Policy
get_session()requests.SessionReplace the default session. source.http then has no effect
commit()NoneCommit progress to source (for Kafka offsets)
set_streams_config(streams)NoneAccept stream routing configuration

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)

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.

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.

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 {}
)
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}
)