Documentation

CLI, Python SDK & Query Guide

Sync clean SEC datasets in Parquet & Lance from Cloudflare's edge in under 5 minutes.

1. Install the CLI

Lightweight pure-Python package (httpx only, Python 3.10+).

pip install edgars-arrow

# Or run directly without installing:
uvx edgars-arrow --help

2. Authenticate

Generate an API key in your Dashboard and export it as EDGARS_API_KEY (or pass --api-key).

export EDGARS_API_KEY="ea_live_..."

# Verify your plan & see available daily releases
edgars-arrow releases

3. Bulk Sync Parquet or Lance

edgars-arrow pull makes one API call to mint a scoped edge token, then downloads all matching releases in parallel from dl.edgarsarrow.com. Every file is verified against its manifest SHA-256 — re-running the same command skips already-downloaded files automatically.

# Sync all 8 tables in Parquet for a date range
edgars-arrow pull \
  --format parquet \
  --from 2026-10-01 \
  --to 2026-10-31 \
  --out ./sec-data

# Sync only financial facts & insider transactions
edgars-arrow pull \
  --format parquet \
  --tables filings,financial_facts,insider_transactions \
  --out ./quant-data

# Sync compacted Lance datasets for RAG / vector search
edgars-arrow pull \
  --format lance \
  --tables filings,sections,chunks \
  --out ./rag-data

4. Python SDK

from edgars_arrow_cli import EdgarsClient

client = EdgarsClient()  # reads EDGARS_API_KEY from env
stats = client.pull(
    "./sec-data",
    fmt="parquet",
    tables=["filings", "financial_facts", "institutional_holdings"],
    from_date="2026-10-01",
)
print(stats)

5. Query Immediately

DuckDB (Parquet)
SELECT f.cik, f.company_name, f.accepted_at,
       x.concept, x.exact_value, x.unit
FROM read_parquet('./sec-data/*/parquet/financial_facts.parquet') x
JOIN read_parquet('./sec-data/*/parquet/filings.parquet') f
  USING (filing_id)
WHERE x.dimensions_json IS NULL
  AND x.value_status = 'exact'
LIMIT 20;
Lance (AI / RAG)
import lance

ds = lance.dataset(
    "./rag-data/daily-2026-10-19/lance/chunks.lance"
)
tbl = ds.to_table(
    filter="form = '10-K' AND section_type = '10-K:item-1a'",
    columns=["cik", "accession", "text", "clean_start"],
)