Guide for AI agents
The Clarifo Data API on one page for AI coding agents: authentication, naming companies, choosing an endpoint, units, citations, errors and limits.
This page is written for an AI coding agent that is building a client for the
Clarifo Data API, and for the developer reviewing its work. It is plain
Markdown at /docs/agents.md. Every
other docs page is available the same way: add .md to its address.
/llms.txt lists them all.
What the API is
A read-only REST API over SEC EDGAR filings (NYSE, Nasdaq and SEC-reporting OTC companies) and the reports of Nasdaq Helsinki, Stockholm and Copenhagen companies. It returns structured financials, filing search and the filing page behind each figure. It has no prices, analyst estimates or ownership data.
- Base URL:
https://api.clarifo.com/api/v1/data - Requests and responses are JSON.
GETendpoints take query parameters,POSTendpoints take a JSON body. - Every endpoint is read-only, so retries are safe.
Authentication
Send the key as a bearer token on every request:
Authorization: Bearer clf_live_…- Read the key from the
CLARIFO_API_KEYenvironment variable. Never hard-code it, commit it or send it from browser or mobile code: call the API from a server. - Keys start with
clf_live_orclf_test_. A test key reaches the same data with a smaller monthly cap. - The user creates keys at Settings → API keys on clarifo.com. API access needs a Pro or Enterprise plan or the 7-day Pro trial.
Details: Authentication.
Choosing an endpoint
| The user wants | Call |
|---|---|
| Headline figures (revenue, EBITDA, EPS, cash flow), annual or quarterly | GET /companies/{company}/financials |
| Every line of the income statement, balance sheet or cash flow | GET /companies/{company}/statement |
| Two to five companies side by side | POST /companies/compare |
| A ranking by growth or size across a market or industry | POST /companies/screen |
| Revenue by country or region | GET /companies/{company}/revenue-geography |
| A description of the business, its customers, strategy and risks | GET /companies/{company}/profile |
| A list of filings (annual reports, 10-Ks, interim reports, releases) | POST /filings/search |
| Passages from the filing text that answer a question | POST /filings/content-search |
| A source link for a figure or passage | GET /filings/{page_id}/snapshot |
Prefer one compare call over several financials calls when the user asks
about more than one company. Use content-search for wording, policies and
explanations, and the financials endpoints for numbers.
Naming companies
The company parameter takes a ticker (AAPL, NESTE, KNEBV.HE), an
official name ("Fiskars Oyj Abp"), a Nordic LEI or a partial name
("Apple"). Names match case-insensitively; write a ticker in capitals. A CIK works on financials, statement, compare and
revenue-geography. ISIN is not accepted.
When a name is ambiguous the API picks the strongest match rather than
failing. Once the right company is confirmed, store its ticker (for a Nordic
company the LEI, or the ticker with its exchange) and reuse it. Nordic
tickers come back without the exchange suffix; send them back with the suffix
(.HE, .ST, .CO) or with market=nordic, since a few are also US
tickers (GMAB). Show users display_name, not company_name.
Details: Companies & identifiers.
Periods and units
financialsreturns annual periods inby_year(years, default 5) and the most recent disclosure inlatest_period.period_type=quarterlyadds aby_quarterseries.statementreturns up to 25 periods (years, default 10). Quarterly line items exist for US companies only.marketisnordicorus; omit it to search both. Screening usescountryinstead:FI,SE,DK,NordicorUS.- Amounts are in the company's reporting currency, which is not always the
market default. Always read
currencyandunitfrom the response: aunitof"EUR"means euros and"MEUR"means millions of euros. - Ratios are percentages in
financials.by_year(8.4means 8.4 %) and fractions inlatest_periodand screening (0.084). - Key code on the English
metric_key(revenue,operating_income), not on the display label.
Details: Markets & currencies.
Citations
Figures and passages carry a page_id or a _provenance block that points
to the filing they came from. Pass a page_id to
GET /filings/{page_id}/snapshot to get a viewable URL, and show users the
ready-made citation_markdown rather than a raw page_id.
Details: Page IDs & citations.
Errors and retries
- A rejected request returns an envelope with
error,status_code,pathandcorrelation_id. - A valid request with nothing to return carries
errorand afailure_kindin the body. Branch onfailure_kind, never on theerrortext:
failure_kind | Status | What to do |
|---|---|---|
not_found | 404 | No data for this company, period or filter. Do not retry; read suggestions or alternatives. |
validation_error | 422 | Fix the arguments. |
plan_required | 403 | The plan does not include this data. |
upstream_unavailable, search_upstream, missing_dependency, invocation_error | 200 | Retry with exponential backoff. |
- A
200body can still be a miss: check forerrorbefore treating it as data. 401means a missing or revoked key,402a lapsed plan. Do not retry either.- On
429wait forRetry-After. On500,503and504retry with exponential backoff. - Send an
Idempotency-Keyheader onPOSTretries; a replayed response does not use quota.
Details: Errors.
Limits
- 10 requests per second and 300 per minute per account.
- 10,000 requests a month on Pro, shared by all keys; a test key also stops at 1,000 a month.
filings/searchreturns at most 100 results and has no offset: whenhas_moreistrue, narrow the years or the document type.- Cache responses; most data changes only when a company reports.
Details: Rate limits & quotas.
Checklist for generated code
- The key comes from
CLARIFO_API_KEYand is used on a server only. - Every response is checked for
errorandfailure_kindbefore use. - Amounts are formatted from
currencyandunit, never an assumed scale. - Each figure shown to a user links to its source through
citation_markdownor the snapshot endpoint. - Retries use exponential backoff and honour
Retry-After.
Further reading
- Quickstart
- Coverage
- Key figures
- Full statements
- Content search
- MCP server: the same data inside Claude, ChatGPT and Cursor, without an API client.