curl --request GET \
--url https://lens-api.tic.io/companies/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://lens-api.tic.io/companies/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://lens-api.tic.io/companies/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lens-api.tic.io/companies/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lens-api.tic.io/companies/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://lens-api.tic.io/companies/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lens-api.tic.io/companies/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"companyId": 123,
"mostRecentName": "<string>",
"priorName": "<string>",
"registrationNumber": "<string>",
"registrationDate": "2023-11-07T05:31:56Z",
"isCeased": true,
"ceasedDate": "2023-11-07T05:31:56Z",
"legalEntityType": "<string>",
"localCompanyCode": "<string>",
"isParentCompany": true,
"parentCompanyName": "<string>",
"parentCompanyRegistrationNumber": "<string>",
"parentCompanyId": 123,
"closestParentCompanyName": "<string>",
"closestParentCompanyRegistrationNumber": "<string>",
"closestParentCompanyId": 123,
"closestParentSeenAtUtc": "2023-11-07T05:31:56Z",
"currentPurpose": {
"companyPurposeId": 123,
"companyId": 123,
"purpose": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123
},
"otherNames": [
{
"companyNamingId": 123,
"companyId": 123,
"companyNamingTypeDescription": "<string>",
"nameOrIdentifier": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"specialPurpose": "<string>",
"companyNameDecidedAt": "2023-11-07T05:31:56Z"
}
],
"lastStatus": {
"companyStatusId": 123,
"companyId": 123,
"companyStatusDescription": {
"name_EN": "<string>",
"name_SE": "<string>",
"bolagsverketCode": "<string>",
"isCeased": true
},
"statusDate": "2023-11-07T05:31:56Z",
"statusDescription": "<string>",
"externalId1": "<string>",
"statusData": "<string>",
"statusDataDescription": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"statusData2": "<string>",
"caseNumber": 123,
"caseYear": 123
},
"lastActivityStatus": {
"companyStatusId": 123,
"companyId": 123,
"companyStatusDescription": {
"name_EN": "<string>",
"name_SE": "<string>",
"bolagsverketCode": "<string>",
"isCeased": true
},
"statusDate": "2023-11-07T05:31:56Z",
"statusDescription": "<string>",
"externalId1": "<string>",
"statusData": "<string>",
"statusDataDescription": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"statusData2": "<string>",
"caseNumber": 123,
"caseYear": 123
},
"lastTaxAuthorityStatus": {
"companyStatusId": 123,
"companyId": 123,
"companyStatusDescription": {
"name_EN": "<string>",
"name_SE": "<string>",
"bolagsverketCode": "<string>",
"isCeased": true
},
"statusDate": "2023-11-07T05:31:56Z",
"statusDescription": "<string>",
"externalId1": "<string>",
"statusData": "<string>",
"statusDataDescription": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"statusData2": "<string>",
"caseNumber": 123,
"caseYear": 123
},
"status": [
{
"companyStatusId": 123,
"companyId": 123,
"companyStatusDescription": {
"name_EN": "<string>",
"name_SE": "<string>",
"bolagsverketCode": "<string>",
"isCeased": true
},
"statusDate": "2023-11-07T05:31:56Z",
"statusDescription": "<string>",
"externalId1": "<string>",
"statusData": "<string>",
"statusDataDescription": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"statusData2": "<string>",
"caseNumber": 123,
"caseYear": 123
}
],
"homepage": {
"companyLinkId": 123,
"companyId": 123,
"companyLinkTypeDescription": "<string>",
"hyperlink": "<string>",
"webpageTitle": "<string>",
"webpageDescription": "<string>",
"companyDataSourceTypeDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"crawlerLastAtUtc": "2023-11-07T05:31:56Z",
"crawlerHttpStatusCode": 123,
"crawlerErrorMessage": "<string>",
"fileId": 123,
"externalId1": "<string>",
"externalId2": "<string>"
},
"facebook": {
"companyLinkId": 123,
"companyId": 123,
"companyLinkTypeDescription": "<string>",
"hyperlink": "<string>",
"webpageTitle": "<string>",
"webpageDescription": "<string>",
"companyDataSourceTypeDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"crawlerLastAtUtc": "2023-11-07T05:31:56Z",
"crawlerHttpStatusCode": 123,
"crawlerErrorMessage": "<string>",
"fileId": 123,
"externalId1": "<string>",
"externalId2": "<string>"
},
"linkedIn": {
"companyLinkId": 123,
"companyId": 123,
"companyLinkTypeDescription": "<string>",
"hyperlink": "<string>",
"webpageTitle": "<string>",
"webpageDescription": "<string>",
"companyDataSourceTypeDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"crawlerLastAtUtc": "2023-11-07T05:31:56Z",
"crawlerHttpStatusCode": 123,
"crawlerErrorMessage": "<string>",
"fileId": 123,
"externalId1": "<string>",
"externalId2": "<string>"
},
"phoneNumber": {
"companyPhoneNumberId": 123,
"companyId": 123,
"e164PhoneNumber": "<string>",
"phoneNumberFormatted": "<string>",
"companyDataSourceTypeDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"numberPlanServiceType": "<string>",
"orginalOperator": "<string>",
"priorOperator": "<string>",
"currentOperator": "<string>",
"lastPortingDate": "2023-11-07T05:31:56Z",
"noMatchInNumberPlan": true,
"externalId": 123
},
"emailAddress": {
"companyEmailId": 123,
"companyId": 123,
"emailAddressTypeDescription": "<string>",
"emailAddress": "<string>",
"companyDataSourceTypeDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123
},
"currentRegisteredOffice": {
"companyRegisteredOfficeId": 123,
"registeredOfficeLocation": "<string>",
"municipality": "<string>",
"municipalityCode": "<string>",
"county": "<string>",
"countyCode": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"caseYear": 123,
"caseNumber": 123
},
"amlRegistration": {
"companyFranchiseOrLicenceId": 123,
"companyId": 123,
"linkedToName": "<string>",
"linkedToCompanyId": 123,
"actingUnderName": "<string>",
"description": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"externalOriginDescription": "<string>",
"companyFranchiseOrLicenceDescription": "<string>",
"revoked": true,
"revokedDate": "2023-11-07T05:31:56Z"
},
"currentFTaxRegistration": {
"companyRegistrationId": 123,
"companyId": 123,
"companyRegistrationDescription": "<string>",
"isRegistered": true,
"registeredFrom": "2023-11-07T05:31:56Z",
"registeredTo": "2023-11-07T05:31:56Z",
"terminationReasonIfAny": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"companyRegistrationSubType": "<string>",
"companyRegistrationSubDescription": "<string>",
"externalId": 123
},
"currentVATRegistration": {
"companyRegistrationId": 123,
"companyId": 123,
"companyRegistrationDescription": "<string>",
"isRegistered": true,
"registeredFrom": "2023-11-07T05:31:56Z",
"registeredTo": "2023-11-07T05:31:56Z",
"terminationReasonIfAny": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"companyRegistrationSubType": "<string>",
"companyRegistrationSubDescription": "<string>",
"externalId": 123
},
"currentPayrollRegistration": {
"companyRegistrationId": 123,
"companyId": 123,
"companyRegistrationDescription": "<string>",
"isRegistered": true,
"registeredFrom": "2023-11-07T05:31:56Z",
"registeredTo": "2023-11-07T05:31:56Z",
"terminationReasonIfAny": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"companyRegistrationSubType": "<string>",
"companyRegistrationSubDescription": "<string>",
"externalId": 123
},
"registeredAddress": {
"companyAddressId": 123,
"houseNumber": "<string>",
"co": "<string>",
"street": "<string>",
"postalCode": "<string>",
"supplemental1": "<string>",
"supplemental2": "<string>",
"city": "<string>",
"state": "<string>",
"county": "<string>",
"district": "<string>",
"countryName": "<string>",
"municipality": "<string>",
"countryCodeAlpha3": "<string>",
"locality": "<string>",
"localityType": "<string>",
"positionAddress": [
123
],
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"foundAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"countyCode": "<string>",
"municipalityCode": "<string>",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"houseLetter": "<string>",
"belagenhetsadressObjektIdentitet": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addressId": 123,
"intelligence": [
{
"addressIntelligenceId": 123,
"addressId": 123,
"addressIntelligenceTypeDescription": "<string>",
"addressIntelligenceSubType": "<string>",
"addressIntelligenceSubTypeDescription": "<string>",
"addressIntelligencePolicyId": 123,
"notes": "<string>",
"notesEn": "<string>",
"notesSv": "<string>",
"score": 123,
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"intelligenceNotesType": 123,
"notesValue1": "<string>",
"notesValue2": "<string>",
"notesValue3": "<string>",
"notesValue4": "<string>"
}
],
"addressDescription": "<string>",
"companyDataSourceDescription": "<string>",
"orginalStreet": "<string>",
"isAddressEmpty": true,
"isAddressMissing": true
},
"visitingAddress": {
"companyAddressId": 123,
"houseNumber": "<string>",
"co": "<string>",
"street": "<string>",
"postalCode": "<string>",
"supplemental1": "<string>",
"supplemental2": "<string>",
"city": "<string>",
"state": "<string>",
"county": "<string>",
"district": "<string>",
"countryName": "<string>",
"municipality": "<string>",
"countryCodeAlpha3": "<string>",
"locality": "<string>",
"localityType": "<string>",
"positionAddress": [
123
],
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"foundAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"countyCode": "<string>",
"municipalityCode": "<string>",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"houseLetter": "<string>",
"belagenhetsadressObjektIdentitet": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addressId": 123,
"intelligence": [
{
"addressIntelligenceId": 123,
"addressId": 123,
"addressIntelligenceTypeDescription": "<string>",
"addressIntelligenceSubType": "<string>",
"addressIntelligenceSubTypeDescription": "<string>",
"addressIntelligencePolicyId": 123,
"notes": "<string>",
"notesEn": "<string>",
"notesSv": "<string>",
"score": 123,
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"intelligenceNotesType": 123,
"notesValue1": "<string>",
"notesValue2": "<string>",
"notesValue3": "<string>",
"notesValue4": "<string>"
}
],
"addressDescription": "<string>",
"companyDataSourceDescription": "<string>",
"orginalStreet": "<string>",
"isAddressEmpty": true,
"isAddressMissing": true
},
"mailingAddress": {
"companyAddressId": 123,
"houseNumber": "<string>",
"co": "<string>",
"street": "<string>",
"postalCode": "<string>",
"supplemental1": "<string>",
"supplemental2": "<string>",
"city": "<string>",
"state": "<string>",
"county": "<string>",
"district": "<string>",
"countryName": "<string>",
"municipality": "<string>",
"countryCodeAlpha3": "<string>",
"locality": "<string>",
"localityType": "<string>",
"positionAddress": [
123
],
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"foundAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"countyCode": "<string>",
"municipalityCode": "<string>",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"houseLetter": "<string>",
"belagenhetsadressObjektIdentitet": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addressId": 123,
"intelligence": [
{
"addressIntelligenceId": 123,
"addressId": 123,
"addressIntelligenceTypeDescription": "<string>",
"addressIntelligenceSubType": "<string>",
"addressIntelligenceSubTypeDescription": "<string>",
"addressIntelligencePolicyId": 123,
"notes": "<string>",
"notesEn": "<string>",
"notesSv": "<string>",
"score": 123,
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"intelligenceNotesType": 123,
"notesValue1": "<string>",
"notesValue2": "<string>",
"notesValue3": "<string>",
"notesValue4": "<string>"
}
],
"addressDescription": "<string>",
"companyDataSourceDescription": "<string>",
"orginalStreet": "<string>",
"isAddressEmpty": true,
"isAddressMissing": true
},
"industryCodes": [
{
"companyIndustryCodeId": 123,
"companyId": 123,
"industryCode": "<string>",
"description": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"rank": 123
}
],
"fiscalYears": [
{
"companyFiscalYearId": 123,
"companyId": 123,
"startMonthDay": "<string>",
"endMonthDay": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"startEndDescription": "<string>"
}
],
"franchiseOrLicences": [
{
"companyFranchiseOrLicenceId": 123,
"companyId": 123,
"linkedToName": "<string>",
"linkedToCompanyId": 123,
"actingUnderName": "<string>",
"description": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"externalOriginDescription": "<string>",
"companyFranchiseOrLicenceDescription": "<string>",
"revoked": true,
"revokedDate": "2023-11-07T05:31:56Z"
}
],
"accountingPeriods": [
{
"companyAccountingPeriodId": 123,
"companyId": 123,
"endingDatePriorToChange": "2023-11-07T05:31:56Z",
"endingDateAfterChange": "2023-11-07T05:31:56Z",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123
}
],
"currentFlags": [
{
"companyFlagId": 123,
"companyId": 123,
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123
}
],
"currentCategories": [
{
"companyCategoryId": 123,
"companyId": 123,
"categoryCode": "<string>",
"categoryCodeDescription": "<string>",
"categoryCodeRange": {
"item1": 123,
"item2": 123
},
"categoryCode2": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123
}
],
"salaryContributions": [
{
"year": 123,
"period": "<string>",
"contributionType": "<string>",
"sumSEK": 123
}
],
"publicSales": [
{
"companyId": 123,
"municipalityRegistrationNumber": "<string>",
"name": "<string>",
"invoiced": 123
}
],
"financialSummary": [
{
"companyFinancialSummaryId": 123,
"companyId": 123,
"periodStart": "2023-11-07T05:31:56Z",
"periodStartDescription": "<string>",
"periodEndDescription": "<string>",
"periodEnd": "2023-11-07T05:31:56Z",
"rs_NetSalesK": 123,
"rs_OtherOperatingIncomeK": 123,
"rs_OperatingProfitOrLossK": 123,
"rs_SumFinancialItemsK": 123,
"rs_ProfitAfterFinancialItemsK": 123,
"bs_TotalAssetsK": 123,
"fn_NumberOfEmployees": 123,
"km_OperatingMargin": 123,
"km_NetProfitMargin": 123,
"km_EquityAssetsRatio": 123,
"km_GrossMargin": 123,
"km_NetSalesChange": 123,
"isAudited": true,
"software": "<string>",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z"
}
],
"categoryTurnoverChart": {
"rangeSeries": [
[
123
]
],
"incomeSeries": [
123
],
"labels": [
"<string>"
],
"hasCalenderYearIntelligence": true
},
"genderChart": [
{
"period": "<string>",
"male": 123,
"female": 123
}
],
"employeesChart": [
{
"period": "<string>",
"range": [
123
]
}
]
}Get core company details
Returns the main company record with its most important summary fields, keyed by internal company ID.
curl --request GET \
--url https://lens-api.tic.io/companies/{id} \
--header 'x-api-key: <api-key>'import requests
url = "https://lens-api.tic.io/companies/{id}"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://lens-api.tic.io/companies/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://lens-api.tic.io/companies/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://lens-api.tic.io/companies/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://lens-api.tic.io/companies/{id}")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://lens-api.tic.io/companies/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"companyId": 123,
"mostRecentName": "<string>",
"priorName": "<string>",
"registrationNumber": "<string>",
"registrationDate": "2023-11-07T05:31:56Z",
"isCeased": true,
"ceasedDate": "2023-11-07T05:31:56Z",
"legalEntityType": "<string>",
"localCompanyCode": "<string>",
"isParentCompany": true,
"parentCompanyName": "<string>",
"parentCompanyRegistrationNumber": "<string>",
"parentCompanyId": 123,
"closestParentCompanyName": "<string>",
"closestParentCompanyRegistrationNumber": "<string>",
"closestParentCompanyId": 123,
"closestParentSeenAtUtc": "2023-11-07T05:31:56Z",
"currentPurpose": {
"companyPurposeId": 123,
"companyId": 123,
"purpose": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123
},
"otherNames": [
{
"companyNamingId": 123,
"companyId": 123,
"companyNamingTypeDescription": "<string>",
"nameOrIdentifier": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"specialPurpose": "<string>",
"companyNameDecidedAt": "2023-11-07T05:31:56Z"
}
],
"lastStatus": {
"companyStatusId": 123,
"companyId": 123,
"companyStatusDescription": {
"name_EN": "<string>",
"name_SE": "<string>",
"bolagsverketCode": "<string>",
"isCeased": true
},
"statusDate": "2023-11-07T05:31:56Z",
"statusDescription": "<string>",
"externalId1": "<string>",
"statusData": "<string>",
"statusDataDescription": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"statusData2": "<string>",
"caseNumber": 123,
"caseYear": 123
},
"lastActivityStatus": {
"companyStatusId": 123,
"companyId": 123,
"companyStatusDescription": {
"name_EN": "<string>",
"name_SE": "<string>",
"bolagsverketCode": "<string>",
"isCeased": true
},
"statusDate": "2023-11-07T05:31:56Z",
"statusDescription": "<string>",
"externalId1": "<string>",
"statusData": "<string>",
"statusDataDescription": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"statusData2": "<string>",
"caseNumber": 123,
"caseYear": 123
},
"lastTaxAuthorityStatus": {
"companyStatusId": 123,
"companyId": 123,
"companyStatusDescription": {
"name_EN": "<string>",
"name_SE": "<string>",
"bolagsverketCode": "<string>",
"isCeased": true
},
"statusDate": "2023-11-07T05:31:56Z",
"statusDescription": "<string>",
"externalId1": "<string>",
"statusData": "<string>",
"statusDataDescription": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"statusData2": "<string>",
"caseNumber": 123,
"caseYear": 123
},
"status": [
{
"companyStatusId": 123,
"companyId": 123,
"companyStatusDescription": {
"name_EN": "<string>",
"name_SE": "<string>",
"bolagsverketCode": "<string>",
"isCeased": true
},
"statusDate": "2023-11-07T05:31:56Z",
"statusDescription": "<string>",
"externalId1": "<string>",
"statusData": "<string>",
"statusDataDescription": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"statusData2": "<string>",
"caseNumber": 123,
"caseYear": 123
}
],
"homepage": {
"companyLinkId": 123,
"companyId": 123,
"companyLinkTypeDescription": "<string>",
"hyperlink": "<string>",
"webpageTitle": "<string>",
"webpageDescription": "<string>",
"companyDataSourceTypeDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"crawlerLastAtUtc": "2023-11-07T05:31:56Z",
"crawlerHttpStatusCode": 123,
"crawlerErrorMessage": "<string>",
"fileId": 123,
"externalId1": "<string>",
"externalId2": "<string>"
},
"facebook": {
"companyLinkId": 123,
"companyId": 123,
"companyLinkTypeDescription": "<string>",
"hyperlink": "<string>",
"webpageTitle": "<string>",
"webpageDescription": "<string>",
"companyDataSourceTypeDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"crawlerLastAtUtc": "2023-11-07T05:31:56Z",
"crawlerHttpStatusCode": 123,
"crawlerErrorMessage": "<string>",
"fileId": 123,
"externalId1": "<string>",
"externalId2": "<string>"
},
"linkedIn": {
"companyLinkId": 123,
"companyId": 123,
"companyLinkTypeDescription": "<string>",
"hyperlink": "<string>",
"webpageTitle": "<string>",
"webpageDescription": "<string>",
"companyDataSourceTypeDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"crawlerLastAtUtc": "2023-11-07T05:31:56Z",
"crawlerHttpStatusCode": 123,
"crawlerErrorMessage": "<string>",
"fileId": 123,
"externalId1": "<string>",
"externalId2": "<string>"
},
"phoneNumber": {
"companyPhoneNumberId": 123,
"companyId": 123,
"e164PhoneNumber": "<string>",
"phoneNumberFormatted": "<string>",
"companyDataSourceTypeDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"numberPlanServiceType": "<string>",
"orginalOperator": "<string>",
"priorOperator": "<string>",
"currentOperator": "<string>",
"lastPortingDate": "2023-11-07T05:31:56Z",
"noMatchInNumberPlan": true,
"externalId": 123
},
"emailAddress": {
"companyEmailId": 123,
"companyId": 123,
"emailAddressTypeDescription": "<string>",
"emailAddress": "<string>",
"companyDataSourceTypeDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123
},
"currentRegisteredOffice": {
"companyRegisteredOfficeId": 123,
"registeredOfficeLocation": "<string>",
"municipality": "<string>",
"municipalityCode": "<string>",
"county": "<string>",
"countyCode": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"caseYear": 123,
"caseNumber": 123
},
"amlRegistration": {
"companyFranchiseOrLicenceId": 123,
"companyId": 123,
"linkedToName": "<string>",
"linkedToCompanyId": 123,
"actingUnderName": "<string>",
"description": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"externalOriginDescription": "<string>",
"companyFranchiseOrLicenceDescription": "<string>",
"revoked": true,
"revokedDate": "2023-11-07T05:31:56Z"
},
"currentFTaxRegistration": {
"companyRegistrationId": 123,
"companyId": 123,
"companyRegistrationDescription": "<string>",
"isRegistered": true,
"registeredFrom": "2023-11-07T05:31:56Z",
"registeredTo": "2023-11-07T05:31:56Z",
"terminationReasonIfAny": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"companyRegistrationSubType": "<string>",
"companyRegistrationSubDescription": "<string>",
"externalId": 123
},
"currentVATRegistration": {
"companyRegistrationId": 123,
"companyId": 123,
"companyRegistrationDescription": "<string>",
"isRegistered": true,
"registeredFrom": "2023-11-07T05:31:56Z",
"registeredTo": "2023-11-07T05:31:56Z",
"terminationReasonIfAny": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"companyRegistrationSubType": "<string>",
"companyRegistrationSubDescription": "<string>",
"externalId": 123
},
"currentPayrollRegistration": {
"companyRegistrationId": 123,
"companyId": 123,
"companyRegistrationDescription": "<string>",
"isRegistered": true,
"registeredFrom": "2023-11-07T05:31:56Z",
"registeredTo": "2023-11-07T05:31:56Z",
"terminationReasonIfAny": "<string>",
"companyDataSourceDescription": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"companyRegistrationSubType": "<string>",
"companyRegistrationSubDescription": "<string>",
"externalId": 123
},
"registeredAddress": {
"companyAddressId": 123,
"houseNumber": "<string>",
"co": "<string>",
"street": "<string>",
"postalCode": "<string>",
"supplemental1": "<string>",
"supplemental2": "<string>",
"city": "<string>",
"state": "<string>",
"county": "<string>",
"district": "<string>",
"countryName": "<string>",
"municipality": "<string>",
"countryCodeAlpha3": "<string>",
"locality": "<string>",
"localityType": "<string>",
"positionAddress": [
123
],
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"foundAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"countyCode": "<string>",
"municipalityCode": "<string>",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"houseLetter": "<string>",
"belagenhetsadressObjektIdentitet": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addressId": 123,
"intelligence": [
{
"addressIntelligenceId": 123,
"addressId": 123,
"addressIntelligenceTypeDescription": "<string>",
"addressIntelligenceSubType": "<string>",
"addressIntelligenceSubTypeDescription": "<string>",
"addressIntelligencePolicyId": 123,
"notes": "<string>",
"notesEn": "<string>",
"notesSv": "<string>",
"score": 123,
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"intelligenceNotesType": 123,
"notesValue1": "<string>",
"notesValue2": "<string>",
"notesValue3": "<string>",
"notesValue4": "<string>"
}
],
"addressDescription": "<string>",
"companyDataSourceDescription": "<string>",
"orginalStreet": "<string>",
"isAddressEmpty": true,
"isAddressMissing": true
},
"visitingAddress": {
"companyAddressId": 123,
"houseNumber": "<string>",
"co": "<string>",
"street": "<string>",
"postalCode": "<string>",
"supplemental1": "<string>",
"supplemental2": "<string>",
"city": "<string>",
"state": "<string>",
"county": "<string>",
"district": "<string>",
"countryName": "<string>",
"municipality": "<string>",
"countryCodeAlpha3": "<string>",
"locality": "<string>",
"localityType": "<string>",
"positionAddress": [
123
],
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"foundAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"countyCode": "<string>",
"municipalityCode": "<string>",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"houseLetter": "<string>",
"belagenhetsadressObjektIdentitet": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addressId": 123,
"intelligence": [
{
"addressIntelligenceId": 123,
"addressId": 123,
"addressIntelligenceTypeDescription": "<string>",
"addressIntelligenceSubType": "<string>",
"addressIntelligenceSubTypeDescription": "<string>",
"addressIntelligencePolicyId": 123,
"notes": "<string>",
"notesEn": "<string>",
"notesSv": "<string>",
"score": 123,
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"intelligenceNotesType": 123,
"notesValue1": "<string>",
"notesValue2": "<string>",
"notesValue3": "<string>",
"notesValue4": "<string>"
}
],
"addressDescription": "<string>",
"companyDataSourceDescription": "<string>",
"orginalStreet": "<string>",
"isAddressEmpty": true,
"isAddressMissing": true
},
"mailingAddress": {
"companyAddressId": 123,
"houseNumber": "<string>",
"co": "<string>",
"street": "<string>",
"postalCode": "<string>",
"supplemental1": "<string>",
"supplemental2": "<string>",
"city": "<string>",
"state": "<string>",
"county": "<string>",
"district": "<string>",
"countryName": "<string>",
"municipality": "<string>",
"countryCodeAlpha3": "<string>",
"locality": "<string>",
"localityType": "<string>",
"positionAddress": [
123
],
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"foundAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"countyCode": "<string>",
"municipalityCode": "<string>",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"houseLetter": "<string>",
"belagenhetsadressObjektIdentitet": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"addressId": 123,
"intelligence": [
{
"addressIntelligenceId": 123,
"addressId": 123,
"addressIntelligenceTypeDescription": "<string>",
"addressIntelligenceSubType": "<string>",
"addressIntelligenceSubTypeDescription": "<string>",
"addressIntelligencePolicyId": 123,
"notes": "<string>",
"notesEn": "<string>",
"notesSv": "<string>",
"score": 123,
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"intelligenceNotesType": 123,
"notesValue1": "<string>",
"notesValue2": "<string>",
"notesValue3": "<string>",
"notesValue4": "<string>"
}
],
"addressDescription": "<string>",
"companyDataSourceDescription": "<string>",
"orginalStreet": "<string>",
"isAddressEmpty": true,
"isAddressMissing": true
},
"industryCodes": [
{
"companyIndustryCodeId": 123,
"companyId": 123,
"industryCode": "<string>",
"description": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"rank": 123
}
],
"fiscalYears": [
{
"companyFiscalYearId": 123,
"companyId": 123,
"startMonthDay": "<string>",
"endMonthDay": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123,
"startEndDescription": "<string>"
}
],
"franchiseOrLicences": [
{
"companyFranchiseOrLicenceId": 123,
"companyId": 123,
"linkedToName": "<string>",
"linkedToCompanyId": 123,
"actingUnderName": "<string>",
"description": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123,
"externalOriginDescription": "<string>",
"companyFranchiseOrLicenceDescription": "<string>",
"revoked": true,
"revokedDate": "2023-11-07T05:31:56Z"
}
],
"accountingPeriods": [
{
"companyAccountingPeriodId": 123,
"companyId": 123,
"endingDatePriorToChange": "2023-11-07T05:31:56Z",
"endingDateAfterChange": "2023-11-07T05:31:56Z",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123
}
],
"currentFlags": [
{
"companyFlagId": 123,
"companyId": 123,
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"fileId": 123,
"externalId": 123
}
],
"currentCategories": [
{
"companyCategoryId": 123,
"companyId": 123,
"categoryCode": "<string>",
"categoryCodeDescription": "<string>",
"categoryCodeRange": {
"item1": 123,
"item2": 123
},
"categoryCode2": "<string>",
"firstSeenAtUtc": "2023-11-07T05:31:56Z",
"lastSeenAtUtc": "2023-11-07T05:31:56Z",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z",
"externalId": 123
}
],
"salaryContributions": [
{
"year": 123,
"period": "<string>",
"contributionType": "<string>",
"sumSEK": 123
}
],
"publicSales": [
{
"companyId": 123,
"municipalityRegistrationNumber": "<string>",
"name": "<string>",
"invoiced": 123
}
],
"financialSummary": [
{
"companyFinancialSummaryId": 123,
"companyId": 123,
"periodStart": "2023-11-07T05:31:56Z",
"periodStartDescription": "<string>",
"periodEndDescription": "<string>",
"periodEnd": "2023-11-07T05:31:56Z",
"rs_NetSalesK": 123,
"rs_OtherOperatingIncomeK": 123,
"rs_OperatingProfitOrLossK": 123,
"rs_SumFinancialItemsK": 123,
"rs_ProfitAfterFinancialItemsK": 123,
"bs_TotalAssetsK": 123,
"fn_NumberOfEmployees": 123,
"km_OperatingMargin": 123,
"km_NetProfitMargin": 123,
"km_EquityAssetsRatio": 123,
"km_GrossMargin": 123,
"km_NetSalesChange": 123,
"isAudited": true,
"software": "<string>",
"lastUpdatedAtUtc": "2023-11-07T05:31:56Z"
}
],
"categoryTurnoverChart": {
"rangeSeries": [
[
123
]
],
"incomeSeries": [
123
],
"labels": [
"<string>"
],
"hasCalenderYearIntelligence": true
},
"genderChart": [
{
"period": "<string>",
"male": 123,
"female": 123
}
],
"employeesChart": [
{
"period": "<string>",
"range": [
123
]
}
]
}Authorizations
Path Parameters
Internal company ID
Response
Company core details
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes