Skip to main content
Docs

Documentation

Everything you need to integrate CompanyLens into your application or AI agent.

Data model

The CompanyLens unified schema normalises data from every supported registry into a consistent data model. This is the core product — the reason a single API call returns UK and French companies in the same format.

Core tables

entities

Companies and legal persons from all jurisdictions.

ColumnTypeDescription
entity_idbigintPrimary key
source_registryvarchar(50)e.g. 'companies_house', 'inpi', 'usr'
source_idvarchar(100)Registry-specific ID (company number, CIK)
entity_namevarchar(500)Company name
entity_name_normalisedvarchar(500)Lowercase, trimmed — for search
entity_typevarchar(100)Normalised: 'private_limited', 'public_limited', etc.
jurisdictionvarchar(10)ISO 3166: 'GB', 'IE', 'US', 'DK', 'EE', etc.
statusvarchar(50)Normalised: 'active', 'dissolved', 'liquidation'
incorporation_datedateDate of incorporation
dissolution_datedateDate of dissolution (if applicable)
registered_addressvarchar(1000)Registered office address
industry_codesvarchar(500)SIC/NACE codes
tickervarchar(20)Stock ticker (SEC companies)

officers

Directors, secretaries, and board members.

ColumnTypeDescription
officer_idbigintPrimary key
entity_idbigintFK to entities
officer_namevarchar(500)Full name
officer_name_normalisedvarchar(500)Normalised for cross-jurisdiction matching
rolevarchar(100)Normalised: 'director', 'secretary', 'board_member'
appointed_datedateDate appointed
resigned_datedateDate resigned (if applicable)
is_activebitCurrently serving
nationalityvarchar(100)Nationality
country_of_residencevarchar(10)ISO country code

financial_statements

Parsed financial data extracted from iXBRL accounts submitted to Companies House. UK coverage from 2021.

ColumnTypeDescription
statement_idbigintPrimary key
entity_idbigintFK to entities
period_startdateReporting period start (null for instant-context facts)
period_enddateReporting period end
metric_namevarchar(200)Raw XBRL concept name
metric_name_normalisedvarchar(200)Normalised: revenue, gross_profit, net_profit, fixed_assets, etc.
valuedecimal(28,4)Metric value
currencyvarchar(3)Currency code (e.g. GBP)

beneficial_owners

Persons with Significant Control (PSC) and beneficial ownership data.

ColumnTypeDescription
owner_idbigintPrimary key
entity_idbigintFK to entities
owner_namevarchar(500)Owner name
owner_typevarchar(50)'individual', 'corporate', 'government', 'trust'
shares_percentage_mindecimal(5,2)Minimum shareholding %
shares_percentage_maxdecimal(5,2)Maximum shareholding %
is_activebitCurrently active