---
slug: "agents"
eyebrow: "Get started"
title: "Guide for AI agents"
description: "The Clarifo Data API on one page for AI coding agents: authentication, naming companies, choosing an endpoint, units, citations, errors and limits."
lastModified: "2026-12-02"
---

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`](https://www.clarifo.com/docs/agents.md). Every
other docs page is available the same way: add `.md` to its address.
[`/llms.txt`](https://www.clarifo.com/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. `GET` endpoints take query parameters,
  `POST` endpoints take a JSON body.
- Every endpoint is read-only, so retries are safe.

## Authentication

Send the key as a bearer token on every request:

```http
Authorization: Bearer clf_live_…
```

- Read the key from the `CLARIFO_API_KEY` environment 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_` or `clf_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](/docs/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](/docs/concepts/companies-and-identifiers).

## Periods and units

- `financials` returns annual periods in `by_year` (`years`, default 5) and
  the most recent disclosure in `latest_period`. `period_type=quarterly` adds a
  `by_quarter` series.
- `statement` returns up to 25 periods (`years`, default 10). Quarterly line
  items exist for US companies only.
- `market` is `nordic` or `us`; omit it to search both. Screening uses
  `country` instead: `FI`, `SE`, `DK`, `Nordic` or `US`.
- Amounts are in the company's reporting currency, which is not always the
  market default. Always read `currency` and `unit` from the response: a
  `unit` of `"EUR"` means euros and `"MEUR"` means millions of euros.
- Ratios are percentages in `financials.by_year` (`8.4` means 8.4 %) and
  fractions in `latest_period` and screening (`0.084`).
- Key code on the English `metric_key` (`revenue`, `operating_income`), not
  on the display label.

Details: [Markets & currencies](/docs/concepts/markets-and-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](/docs/concepts/page-ids-and-citations).

## Errors and retries

- A rejected request returns an envelope with `error`, `status_code`, `path`
  and `correlation_id`.
- A valid request with nothing to return carries `error` and a `failure_kind`
  in the body. Branch on `failure_kind`, never on the `error` text:

| `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 `200` body can still be a miss: check for `error` before treating it as
  data.
- `401` means a missing or revoked key, `402` a lapsed plan. Do not retry
  either.
- On `429` wait for `Retry-After`. On `500`, `503` and `504` retry with
  exponential backoff.
- Send an `Idempotency-Key` header on `POST` retries; a replayed response does
  not use quota.

Details: [Errors](/docs/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/search` returns at most 100 results and has no offset: when
  `has_more` is `true`, narrow the years or the document type.
- Cache responses; most data changes only when a company reports.

Details: [Rate limits & quotas](/docs/rate-limits).

## Checklist for generated code

1. The key comes from `CLARIFO_API_KEY` and is used on a server only.
2. Every response is checked for `error` and `failure_kind` before use.
3. Amounts are formatted from `currency` and `unit`, never an assumed scale.
4. Each figure shown to a user links to its source through
   `citation_markdown` or the snapshot endpoint.
5. Retries use exponential backoff and honour `Retry-After`.

## Further reading

- [Quickstart](https://www.clarifo.com/docs/quickstart.md)
- [Coverage](https://www.clarifo.com/docs/concepts/coverage.md)
- [Key figures](https://www.clarifo.com/docs/api/company-financials.md)
- [Full statements](https://www.clarifo.com/docs/api/company-statement.md)
- [Content search](https://www.clarifo.com/docs/api/filings-content-search.md)
- [MCP server](https://www.clarifo.com/docs/mcp.md): the same data inside
  Claude, ChatGPT and Cursor, without an API client.
