Documentation
API DOCUMENTATION

/api/findcompanies/metadata

This endpoint returns the count of companies matching the filter payload. It does not return company rows; it returns a JSON object containing count.

Free Count Version 2

Version and Endpoint

Request

POST https://convert-ixbrl.co.uk/api/findcompanies/metadata

Use this endpoint to get the count of companies matching your filter criteria before making a request to the main findcompanies endpoint.

https://convert-ixbrl.co.uk/api/findcompanies/metadata

Method Type

HTTP POST

Authentication

This endpoint requires authentication headers. See the Authentication documentation.

HTTP Response Codes

Status Code Description
200 Successful request with count result
400 Invalid request, invalid/missing authentication headers, or invalid financialFilters.
410 /api/findcompanies/count and /api/searchresultscount are removed; use this endpoint.
500 Unexpected server error

Request Body

Same payload model as POST /api/findcompanies (FindCompaniesCriteria).

SIC lookup for the industries field: /Documentation/v2/SicCodes.

Request JSON Example

{
  "apiVersion": "2",
  "industries": [62020, 70229],
  "location": "Leeds",
  "locationMaxDistance": 30,
  "status": "Active",
  "directorAgeMin": 40,
  "directorAgeMax": 50,
  "directorAgeFilterType": "any",
  "financialFilters": [
    {
      "filterName": "TurnoverRevenue",
      "description": "TurnoverRevenue",
      "minValue": 5000000,
      "maxValue": 500000000
    }
  ]
}

Response Example

{
  "success": true,
  "count": 10535,
  "error": null,
  "errorMessage": null
}

If invalid financial filters are provided, this endpoint returns 400 with details and closest-match suggestions.

Error Response Example

{
  "success": false,
  "count": 0,
  "error": "InvalidFinancialFilters",
  "errorMessage": "One or more financial filters are invalid.",
  "validationErrors": [
    {
      "index": 0,
      "message": "Unknown filterName. Provide a valid filterName from the documentation.",
      "providedDescription": null,
      "providedFilterName": "TurnoverRevenuee",
      "suggestions": ["TurnoverRevenue", "NetAssetsLiabilities", "CashBankOnHand"]
    }
  ]
}
{
  "success": false,
  "count": 0,
  "error": "InvalidRequest",
  "errorMessage": "One or more request fields are invalid.",
  "validationErrors": [
    {
      "field": "locationMaxDistance",
      "message": "locationMaxDistance must be between 0 and 30."
    }
  ]
}

Validation Rules

  • searchTerm: minimum 3 characters (when provided) and only allowed characters used by portal validation.
  • locationMaxDistance: must be between 0 and 30.
  • directorAgeMin: must be at least 18 (if provided).
  • directorAgeMax: must be 98 or less (if provided).
  • Date ranges: invalid dates are rejected; for each pair, from cannot be later than to.
  • financialFilters: unknown filters and minValue > maxValue are rejected.

Response

Field Type Description
successbooleantrue on success, false on error.
countintegerTotal number of matching companies for the supplied filters.
errorstring?Machine-readable error code when success=false.
errorMessagestring?Safe human-readable error message.
validationErrorsarray?Present for invalid financial filter requests.

Filter Definitions

The current filter definitions (labels/categories/filter keys) are listed below.

Note: financialFilters[].filterName is case-insensitive.

All Searchable Financial Filters

The filter keys shown below already remove the taxonomy prefixes (e.g. core_, direp_, aurep_). Use the values listed here when supplying financialFilters[].filterName in search or metadata requests.

The full list below represents the filters currently searchable via financialFilters payloads.

Filter LabelCategoryFilter Key (financialFilters[].filterName)
Cash at Bank/On HandAssetsCashBankOnHand
Total InventoriesAssetsTotalInventories,OtherInventories
Total AssetsAssetsTotalAssets
Current AssetsAssetsCurrentAssets
Fixed AssetsAssetsFixedAssets
Net Current Assets LiabilitiesAssetsNetCurrentAssetsLiabilities
Total Assets Less Current LiabilitiesAssetsTotalAssetsLessCurrentLiabilities
Intangible Assets - AllAssetsIntangibleAssets
Intangible Assets, Gross / At CostAssetsIntangibleAssetsGrossCost
Intangible Assets - Accumulated Amortisation and ImpairmentAssetsAccumulatedAmortisationImpairmentIntangibleAssets
Total LiabilitiesLiabilitiesTotalLiabilities
Accrued LiabilitiesLiabilitiesAccruedLiabilities
DebtorsDebtorsDebtors,OtherDebtors
Trade Debtors/ Trade ReceivablesDebtorsTradeDebtorsTradeReceivables
CreditorsCreditorsCreditors,OtherCreditors,AccruedLiabilitiesNotExpressedWithinCreditorsSubtotal
Trade Creditors/ Trade PayablesCreditorsTradeCreditorsTradePayables
TurnoverRevenueTurnoverRevenue and Profit/LossTurnoverRevenue
Profit/LossTurnoverRevenue and Profit/LossProfitLoss
Net Cash Generated from OperationsTurnoverRevenue and Profit/LossNetCashGeneratedFromOperations
Interest Income on Bank depositsTurnoverRevenue and Profit/LossInterestIncomeOnBankDeposits
Pension and other post-employment benefit costs / other pension costsTax, Pension and BenefitsPensionOtherPost-employmentBenefitCostsOtherPensionCosts
Pension costs - Defined Contribution PlanTax, Pension and BenefitsPensionCosts
Pension - Unpaid contributions to Pension SchemesTax, Pension and BenefitsUnpaidContributionsToPensionSchemes
Social Security, Taxation and other related costsTax, Pension and BenefitsSocialSecurityCosts,OtherTaxationSocialSecurityPayable,TaxationSocialSecurityPayable,TaxationSocialSecurityPayable
Corporation Tax PayableTax, Pension and BenefitsCorporationTaxPayable
Government Grant IncomeGrantsGovernmentGrantIncome
Government Grants PayableGrantsGovernmentGrantsPayable
Employee Wages & SalariesEmployees and SalariesWagesSalaries
Director Salaries and FeesEmployees and SalariesSalariesFeesDirectors
Average Number of EmployeesEmployees and SalariesAverageNumberEmployeesDuringPeriod
Amount of Specific Advance or Credit Made in Period to DirectorsUncategorisedAmountSpecificAdvanceOrCreditMadeInPeriodDirectors
Amount of Specific Advance or Credit Made to DirectorsUncategorisedAmountSpecificAdvanceOrCreditDirectors
Total BorrowingsLiabilitiesTotalBorrowings
Bank OverdraftsLiabilitiesBankOverdrafts
Bank BorrowingsLiabilitiesBankBorrowingsOverdrafts
Other Remaining BorrowingsLiabilitiesOtherRemainingBorrowings
Loans From DirectorsLiabilitiesLoansFromDirectors
Amounts Owed to DirectorsLiabilitiesAmountsOwedToDirectors
Advances and Credits Repaid in Period to DirectorsLiabilitiesAdvancesCreditsRepaidInPeriodDirectors
Finance Lease Liabilities - Present Value TotalLiabilitiesFinanceLeaseLiabilitiesPresentValueTotal
InvestmentsInvestmentsInvestments
Investments - Fixed AssetsInvestmentsInvestmentsFixedAssets
Investments - PropertyInvestmentsInvestmentProperty
Investments - Property Fair Value ModelInvestmentsInvestmentPropertyFairValueModel
Investments - Current AssetInvestmentsCurrentAssetInvestments
Investments - Other (excluding loans)InvestmentsOtherInvestmentsOtherThanLoans
Investments - Group UndertakingsInvestmentsInvestmentsInGroupUndertakings,InvestmentsInGroupUndertakingsParticipatingInterests
Investments - In SubsidiariesInvestmentsInvestmentsInSubsidiaries,InvestmentsInSubsidiariesMeasuredFairValue
Investments - In AssociatesInvestmentsInvestmentsInAssociates
Investments - In Joint VenturesInvestmentsInvestmentsInJointVentures
Investments - Disposals(Property, Fair Value ModelInvestmentsDisposalsInvestmentPropertyFairValueModel
Net Assets/LiabilitiesEquityNetAssetsLiabilities
Equity - AllEquityEquity
Number of Shares Fully PaidEquityNumberSharesIssuedFullyPaid
Dividends PaidEquityDividendsPaidOnShares,DividendsPaid
Called Up Share Capital Not Paid EquityCalledUpShareCapitalNotPaidNotExpressedAsCurrentAsset
Called Up Share Capital Not Paid EquityCalledUpShareCapitalNotPaid
Property, Plant & EquipmentProperty, Plant & EquipmentPropertyPlantEquipment
Property, Plant & Equipment Gross CostProperty, Plant & EquipmentPropertyPlantEquipmentGrossCost
Audit - Fee/ExpensesAudit Related FeesAuditFeesExpenses
Audit - Fee for Non Audit ServicesAudit Related FeesFeesForNonauditServices,OtherNonauditServicesFees