Sector Analysis

Analyze a company against its industry peers using intelligent 11-step cascade search.

The Problem

Private companies don't publish financial statements like public ones do. Even with access to a large database, finding enough comparable companies for meaningful statistical analysis is challenging. A company's ideal peer group would share the same CNAE code (industry classification), geographic location, and revenue range — but this combination often yields too few matches for reliable benchmarks.

Our Solution

This API implements an intelligent 11-step cascade algorithm that automatically relaxes search criteria until it finds a statistically valid peer group (minimum sample size configurable, default 5). The cascade progressively trades off similarity for sample size:

Steps 1-4: Geographic relaxation

  1. Exact CNAE + City + State + Revenue range (±30%)
  2. Remove city filter
  3. Expand revenue range (×1.5)
  4. Expand revenue range again (×1.5)

Steps 5-6: Revenue relaxation
5. Remove state filter
6. Remove revenue filter entirely

Steps 7-11: Industry relaxation
7-11. Progressively broaden CNAE code (remove trailing digits to climb the classification hierarchy)

The API returns the parameters actually used in the params field, so you know exactly what trade-offs were made to achieve statistical validity.

Output

Returns median statistics across 27+ financial indicators with up to 10 years of history, estimated market size based on CNAE, and sample peer companies included in the analysis.

Authentication

Use HTTP Basic Auth (email + API key) or pass credentials in the request body.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required
^\d{14}$

14-digit Brazilian company identifier (CNPJ)

string
required

User email

string
required

User password or API key

integer
1 to 100
Defaults to 5

Minimum number of peer companies required for valid analysis. Higher values mean more statistical confidence but may require broader search criteria.

number

Override the company's revenue for peer matching. If not provided, the API fetches the most recent revenue from the database. Revenue range will be ±30% of this value.

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json