Read directly from HTTPS Parquet URLs with byte-range requests in DuckDB, Polars, PyArrow, or curl.
Every dataset exposes an open 100-row sample at /v1/sample/<dataset_id>.parquet with HTTP 206 Partial Content support.
-- Query the 100-row sample directly over HTTPS INSTALL httpfs; LOAD httpfs; SELECT COUNT(*), MIN(event_period_end_utc), MAX(known_time_utc) FROM 'https://bitemporal.dev/v1/sample/sec_424b5_dilution_v1.parquet'; -- Query the full file (1,641 rows) with a pass key CREATE OR REPLACE SECRET bt_auth (TYPE HTTP, BEARER_TOKEN 'bt_live_your_token'); SELECT * FROM 'https://bitemporal.dev/v1/datasets/sec_424b5_dilution_v1.parquet' LIMIT 25;
# Scan the 100-row sample with Polars import polars as pl sample_df = ( pl.scan_parquet("https://bitemporal.dev/v1/sample/sec_424b5_dilution_v1.parquet") .select(["event_period_end_utc", "known_time_utc", "entity_id", "match_status"]) .limit(10) .collect() ) # Read the full file (1,641 rows) with your API key full_df = pl.scan_parquet( "https://bitemporal.dev/v1/datasets/sec_424b5_dilution_v1.parquet", storage_options={"Authorization": "Bearer bt_live_your_token"}, ).collect()
# Read verified rows into PyArrow over HTTPS import httpx, io import pyarrow.parquet as pq resp = httpx.get("https://bitemporal.dev/v1/sample/sec_424b5_dilution_v1.parquet") table = pq.read_table(io.BytesIO(resp.content)) print(table.num_rows, table.column_names[:6])
# Check byte-range support on the sample file curl -i -r 0-3 "https://bitemporal.dev/v1/sample/sec_424b5_dilution_v1.parquet" # Download the 100-row sample file curl -fSL -o sample.parquet "https://bitemporal.dev/v1/sample/sec_424b5_dilution_v1.parquet" # Download the full file (1,641 rows) curl -fSL -H "Authorization: Bearer bt_live_your_token" -o dataset.parquet "https://bitemporal.dev/v1/datasets/sec_424b5_dilution_v1.parquet"
After Stripe checkout, visit /v1/billing/claim?session_id={CHECKOUT_SESSION_ID} once to display your bt_live_... key. Only its SHA-256 hash is kept; reloading the claim URL returns 409 Conflict.
# 1. Bearer header (curl) curl -fSL -H "Authorization: Bearer bt_live_your_token" -o data.parquet "https://bitemporal.dev/v1/datasets/sec_424b5_dilution_v1.parquet" # 2. HTTP Basic auth (empty username, token as password) curl -fSL -u :bt_live_your_token -o data.parquet "https://bitemporal.dev/v1/datasets/sec_424b5_dilution_v1.parquet" # 3. Inspect active quota cleanly curl -sS -H "Authorization: Bearer bt_live_your_token" "https://bitemporal.dev/v1/account/status"
Every dataset shares these standard temporal, revision, raw payload, and entity columns so AS OF queries work identically across all 17 files.
| Column | Parquet type | Meaning |
|---|---|---|
| event_period_end_utc | timestamp[ms, tz=UTC] | End date of the physical event, filing period, or scheduled activity. |
| known_time_utc | timestamp[ms, tz=UTC] | UTC timestamp when this specific revision first became publicly observable. |
| initial_known_time_utc | timestamp[ms, tz=UTC] | First public release timestamp for sequence 0 of this natural key. |
| prior_known_time_utc | timestamp[ms, tz=UTC] | Release timestamp of the preceding revision, or null on originals. |
| revision_seq | int32 | Zero-based monotonic revision counter (0 original, 1+ amendments or deletes). |
| record_op | string | Row operation type: ORIGINAL, AMEND, DELETE, or RETRACT. |
| vintage_source | string | How known_time_utc was observed (ARCHIVE_EXACT_TIMESTAMP, LIVE_OBSERVED_INGEST, STATUTORY_DEADLINE_PROXY). |
| payload_sha256 | string | Deterministic SHA-256 hash of payload values (fixed tombstone sentinel on DELETE and RETRACT). |
| raw_payload_json | string | Deterministic unstripped upstream source record preserved inline on ORIGINAL and AMEND rows. |
| entity_id | string | Canonical entity identifier (SEC CIK or stable deterministic fallback ID). |
| match_status | string | Entity resolution state (MATCHED_LISTED vs explicit unresolved or government/coop codes). |
| pit_primary_cik | string | Point-in-time parent SEC Central Index Key valid on known_time_utc. |
| pit_primary_ticker | string | Primary exchange ticker symbol valid on known_time_utc without survivorship bias. |
| pit_primary_lei | string | Legal Entity Identifier string mapped without forward lookahead. |
| pit_primary_figi | string | OpenFIGI identifier string valid on entity_mapping_known_time_utc. |
| pit_primary_ownership_share | float64 | Parent ownership share assigned on known_time_utc. |
| entity_mapping_known_time_utc | timestamp[ms, tz=UTC] | Timestamp when the parent entity link was known (always <= known_time_utc). |
Deduplicate to the latest active revision observable on a chosen cutoff date while excluding deleted or retracted keys.
-- Point-in-time state observable on 2025-06-30T23:59:59Z SELECT * FROM 'https://bitemporal.dev/v1/sample/sec_424b5_dilution_v1.parquet' WHERE known_time_utc <= TIMESTAMP '2025-06-30 23:59:59+00' QUALIFY ROW_NUMBER() OVER ( PARTITION BY entity_id, event_period_end_utc ORDER BY revision_seq DESC ) = 1 AND record_op NOT IN ('DELETE', 'RETRACT');
See Starter templates for copyable Polars revision-diff scripts and local catalog mirrors.
Daily request and egress limits are enforced per key hash in Cloudflare D1 and reset daily at 00:00 UTC. Exceeding a cap returns HTTP 429 with a Retry-After header.
| Plan | Price | Scope | Daily requests | Daily egress |
|---|---|---|---|---|
| pass_single | $19 (30 days, one-time) | 1 chosen dataset | 1,000 | 10 GiB |
| pass_all | $49 (30 days, one-time) | All 17 datasets | 5,000 | 50 GiB |
| foundry_sub | $39 / month (cancel anytime) | All 17 datasets + updates | 5,000 | 50 GiB |
Upstream feeds run on separate GitHub Actions schedules: NAESB gas cycles (5x daily), intraday compute/grid alerts (every 6h), daily feeds (14:00 UTC), and change-gated monthly queues.
Every update archives raw upstream bytes in content-addressed ZSTD storage first, preserves unstripped records in raw_payload_json, emits explicit DELETE tombstones on snapshot removals, and aborts Silver writes if active keys drop more than 25% or null rates spike over 15%.
| Endpoint | Auth | Purpose |
|---|---|---|
| /v1/catalog | Public | Live JSON catalog manifest with row counts, SHA-256 hashes, and schemas. |
| /v1/sample/<id>.parquet | Public | Free 100-row Parquet sample supporting Range requests. |
| /v1/datasets/<id>.parquet | Bearer / Basic | Full ZSTD-9 Parquet file gated by active key scope and daily cap. |
| /v1/account/status | Bearer / Basic | Read-only JSON tier status, expiry timestamp, and today's quota usage. |
| /llms.txt · /health | Public | Plain-text index for agents and live JSON catalog health check. |