Skip to content

Quickstart

From no account to a live response in five steps.

Create a free account at portal.thesma.dev/signup. No credit card, no dataset selection — every tier includes all four data verticals (SEC EDGAR, US Census, US BLS, US SBA).

On first login the portal auto-generates a key. You can also create additional keys at portal.thesma.dev/dashboardAPI keys.

Keys look like:

gd_live_a1b2c3d4e5f6...

The plaintext key is shown once at creation. Save it somewhere safe — the server only stores a SHA-256 hash, so there is no way to recover a lost key. Revoke and reissue if you lose one.

Fetch the most recent annual financials for Apple (AAPL):

Terminal window
curl -H "X-API-Key: $THESMA_API_KEY" \
"https://api.thesma.dev/v1/us/sec/companies/AAPL/financials?period=annual&limit=1"

You should see a JSON response with a data array of financial statements and a pagination envelope:

{
"data": [
{
"ticker": "AAPL",
"fiscal_year": 2024,
"period_type": "annual",
"revenue": 391035000000,
"net_income": 93736000000,
"filed_at": "2024-11-01"
}
],
"pagination": {
"page": 1,
"per_page": 1,
"total": 1,
"total_pages": 1
}
}

Exact field values change as new filings land; the shape is stable.

Terminal window
pip install thesma
import os
from thesma import ThesmaClient
client = ThesmaClient(api_key=os.environ["THESMA_API_KEY"])
financials = client.sec.companies("AAPL").financials(period="annual", limit=1)
print(financials.data[0].revenue)

The SDK reads THESMA_API_KEY automatically if you omit the api_key= argument.

  • Authentication — both header formats, key-format details, real 401/403 shapes.
  • Rate limits — what you get on each tier, the 429 shape, and Retry-After semantics.
  • Datasets — coverage, known limitations, endpoint tables for each data vertical.
  • Recipes — worked examples, starting with the flagship cross-dataset labor-context enrichment.
  • API Reference — full endpoint list, try any request in the browser.