curl --request POST \
--url https://global-api.thedatacity.com/v1/de/classification \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"WZs": [
"<string>"
],
"Name": "<string>",
"Country": "<string>",
"EmployeeRange": "<string>",
"LegalForm": "<string>",
"LegalForms": [
"<string>"
],
"HQPostcode": "<string>",
"HQAddress": "<string>",
"DateOfIncorporation": "2023-12-25",
"IncorporationDateFrom": "2023-12-25",
"IncorporationDateTo": "2023-12-25",
"HasWebsite": true,
"OperatingLocationAddresses": [
"<string>"
],
"MinTurnover": 4611686018427388000,
"MaxTurnover": 4611686018427388000,
"MinEBIT": 0,
"MaxEBIT": 0,
"MinNetIncome": 0,
"MaxNetIncome": 0,
"FinancialYearEnding": 123,
"MinFinancialYearEnding": 123,
"MaxFinancialYearEnding": 123,
"AccountsType": "<string>",
"RTICs": [
"<string>"
],
"RWZs": [
"<string>"
],
"State": [
"<string>"
],
"Zipcode": [
"<string>"
],
"Town": [
"<string>"
],
"Director": {
"LocalPnr": "<string>",
"FirstName": "<string>",
"LastName": "<string>",
"DateOfBirth": "2023-12-25",
"FullName": "<string>"
},
"LowerLatitude": 0,
"UpperLatitude": 0,
"LowerLongitude": 0,
"UpperLongitude": 0,
"HasWebText": true,
"Includes": [
"<string>"
],
"Excludes": [
"<string>"
],
"WebTextPositiveKeywords": [
"<string>"
],
"WebTextPositiveKeywordsOperator": "<string>",
"WebTextPositiveKeywordsMode": "<string>",
"WebTextNegativeKeywords": [
"<string>"
],
"WebTextNegativeKeywordsOperator": "<string>",
"WebTextNegativeKeywordsMode": "<string>",
"IncludeInsights": true,
"IncludeTotalCount": true,
"IncludesLocations": true,
"Limit": 500,
"Offset": 1073741823,
"SortBy": [
{
"Field": "<string>",
"Direction": "<string>"
}
],
"Cutoff": 123,
"Yes": [
"<string>"
],
"No": [
"<string>"
],
"VerticalSeed": "<string>",
"UseTranslatedWebTextForYesNo": true,
"VerticalSeedNativeLanguageOnly": true,
"ManuallyInclude": [
"<string>"
],
"ManuallyExclude": [
"<string>"
]
}
'import requests
url = "https://global-api.thedatacity.com/v1/de/classification"
payload = {
"WZs": ["<string>"],
"Name": "<string>",
"Country": "<string>",
"EmployeeRange": "<string>",
"LegalForm": "<string>",
"LegalForms": ["<string>"],
"HQPostcode": "<string>",
"HQAddress": "<string>",
"DateOfIncorporation": "2023-12-25",
"IncorporationDateFrom": "2023-12-25",
"IncorporationDateTo": "2023-12-25",
"HasWebsite": True,
"OperatingLocationAddresses": ["<string>"],
"MinTurnover": 4611686018427388000,
"MaxTurnover": 4611686018427388000,
"MinEBIT": 0,
"MaxEBIT": 0,
"MinNetIncome": 0,
"MaxNetIncome": 0,
"FinancialYearEnding": 123,
"MinFinancialYearEnding": 123,
"MaxFinancialYearEnding": 123,
"AccountsType": "<string>",
"RTICs": ["<string>"],
"RWZs": ["<string>"],
"State": ["<string>"],
"Zipcode": ["<string>"],
"Town": ["<string>"],
"Director": {
"LocalPnr": "<string>",
"FirstName": "<string>",
"LastName": "<string>",
"DateOfBirth": "2023-12-25",
"FullName": "<string>"
},
"LowerLatitude": 0,
"UpperLatitude": 0,
"LowerLongitude": 0,
"UpperLongitude": 0,
"HasWebText": True,
"Includes": ["<string>"],
"Excludes": ["<string>"],
"WebTextPositiveKeywords": ["<string>"],
"WebTextPositiveKeywordsOperator": "<string>",
"WebTextPositiveKeywordsMode": "<string>",
"WebTextNegativeKeywords": ["<string>"],
"WebTextNegativeKeywordsOperator": "<string>",
"WebTextNegativeKeywordsMode": "<string>",
"IncludeInsights": True,
"IncludeTotalCount": True,
"IncludesLocations": True,
"Limit": 500,
"Offset": 1073741823,
"SortBy": [
{
"Field": "<string>",
"Direction": "<string>"
}
],
"Cutoff": 123,
"Yes": ["<string>"],
"No": ["<string>"],
"VerticalSeed": "<string>",
"UseTranslatedWebTextForYesNo": True,
"VerticalSeedNativeLanguageOnly": True,
"ManuallyInclude": ["<string>"],
"ManuallyExclude": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
WZs: ['<string>'],
Name: '<string>',
Country: '<string>',
EmployeeRange: '<string>',
LegalForm: '<string>',
LegalForms: ['<string>'],
HQPostcode: '<string>',
HQAddress: '<string>',
DateOfIncorporation: '2023-12-25',
IncorporationDateFrom: '2023-12-25',
IncorporationDateTo: '2023-12-25',
HasWebsite: true,
OperatingLocationAddresses: ['<string>'],
MinTurnover: 4611686018427388000,
MaxTurnover: 4611686018427388000,
MinEBIT: 0,
MaxEBIT: 0,
MinNetIncome: 0,
MaxNetIncome: 0,
FinancialYearEnding: 123,
MinFinancialYearEnding: 123,
MaxFinancialYearEnding: 123,
AccountsType: '<string>',
RTICs: ['<string>'],
RWZs: ['<string>'],
State: ['<string>'],
Zipcode: ['<string>'],
Town: ['<string>'],
Director: {
LocalPnr: '<string>',
FirstName: '<string>',
LastName: '<string>',
DateOfBirth: '2023-12-25',
FullName: '<string>'
},
LowerLatitude: 0,
UpperLatitude: 0,
LowerLongitude: 0,
UpperLongitude: 0,
HasWebText: true,
Includes: ['<string>'],
Excludes: ['<string>'],
WebTextPositiveKeywords: ['<string>'],
WebTextPositiveKeywordsOperator: '<string>',
WebTextPositiveKeywordsMode: '<string>',
WebTextNegativeKeywords: ['<string>'],
WebTextNegativeKeywordsOperator: '<string>',
WebTextNegativeKeywordsMode: '<string>',
IncludeInsights: true,
IncludeTotalCount: true,
IncludesLocations: true,
Limit: 500,
Offset: 1073741823,
SortBy: [{Field: '<string>', Direction: '<string>'}],
Cutoff: 123,
Yes: ['<string>'],
No: ['<string>'],
VerticalSeed: '<string>',
UseTranslatedWebTextForYesNo: true,
VerticalSeedNativeLanguageOnly: true,
ManuallyInclude: ['<string>'],
ManuallyExclude: ['<string>']
})
};
fetch('https://global-api.thedatacity.com/v1/de/classification', 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://global-api.thedatacity.com/v1/de/classification",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'WZs' => [
'<string>'
],
'Name' => '<string>',
'Country' => '<string>',
'EmployeeRange' => '<string>',
'LegalForm' => '<string>',
'LegalForms' => [
'<string>'
],
'HQPostcode' => '<string>',
'HQAddress' => '<string>',
'DateOfIncorporation' => '2023-12-25',
'IncorporationDateFrom' => '2023-12-25',
'IncorporationDateTo' => '2023-12-25',
'HasWebsite' => true,
'OperatingLocationAddresses' => [
'<string>'
],
'MinTurnover' => 4611686018427388000,
'MaxTurnover' => 4611686018427388000,
'MinEBIT' => 0,
'MaxEBIT' => 0,
'MinNetIncome' => 0,
'MaxNetIncome' => 0,
'FinancialYearEnding' => 123,
'MinFinancialYearEnding' => 123,
'MaxFinancialYearEnding' => 123,
'AccountsType' => '<string>',
'RTICs' => [
'<string>'
],
'RWZs' => [
'<string>'
],
'State' => [
'<string>'
],
'Zipcode' => [
'<string>'
],
'Town' => [
'<string>'
],
'Director' => [
'LocalPnr' => '<string>',
'FirstName' => '<string>',
'LastName' => '<string>',
'DateOfBirth' => '2023-12-25',
'FullName' => '<string>'
],
'LowerLatitude' => 0,
'UpperLatitude' => 0,
'LowerLongitude' => 0,
'UpperLongitude' => 0,
'HasWebText' => true,
'Includes' => [
'<string>'
],
'Excludes' => [
'<string>'
],
'WebTextPositiveKeywords' => [
'<string>'
],
'WebTextPositiveKeywordsOperator' => '<string>',
'WebTextPositiveKeywordsMode' => '<string>',
'WebTextNegativeKeywords' => [
'<string>'
],
'WebTextNegativeKeywordsOperator' => '<string>',
'WebTextNegativeKeywordsMode' => '<string>',
'IncludeInsights' => true,
'IncludeTotalCount' => true,
'IncludesLocations' => true,
'Limit' => 500,
'Offset' => 1073741823,
'SortBy' => [
[
'Field' => '<string>',
'Direction' => '<string>'
]
],
'Cutoff' => 123,
'Yes' => [
'<string>'
],
'No' => [
'<string>'
],
'VerticalSeed' => '<string>',
'UseTranslatedWebTextForYesNo' => true,
'VerticalSeedNativeLanguageOnly' => true,
'ManuallyInclude' => [
'<string>'
],
'ManuallyExclude' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://global-api.thedatacity.com/v1/de/classification"
payload := strings.NewReader("{\n \"WZs\": [\n \"<string>\"\n ],\n \"Name\": \"<string>\",\n \"Country\": \"<string>\",\n \"EmployeeRange\": \"<string>\",\n \"LegalForm\": \"<string>\",\n \"LegalForms\": [\n \"<string>\"\n ],\n \"HQPostcode\": \"<string>\",\n \"HQAddress\": \"<string>\",\n \"DateOfIncorporation\": \"2023-12-25\",\n \"IncorporationDateFrom\": \"2023-12-25\",\n \"IncorporationDateTo\": \"2023-12-25\",\n \"HasWebsite\": true,\n \"OperatingLocationAddresses\": [\n \"<string>\"\n ],\n \"MinTurnover\": 4611686018427388000,\n \"MaxTurnover\": 4611686018427388000,\n \"MinEBIT\": 0,\n \"MaxEBIT\": 0,\n \"MinNetIncome\": 0,\n \"MaxNetIncome\": 0,\n \"FinancialYearEnding\": 123,\n \"MinFinancialYearEnding\": 123,\n \"MaxFinancialYearEnding\": 123,\n \"AccountsType\": \"<string>\",\n \"RTICs\": [\n \"<string>\"\n ],\n \"RWZs\": [\n \"<string>\"\n ],\n \"State\": [\n \"<string>\"\n ],\n \"Zipcode\": [\n \"<string>\"\n ],\n \"Town\": [\n \"<string>\"\n ],\n \"Director\": {\n \"LocalPnr\": \"<string>\",\n \"FirstName\": \"<string>\",\n \"LastName\": \"<string>\",\n \"DateOfBirth\": \"2023-12-25\",\n \"FullName\": \"<string>\"\n },\n \"LowerLatitude\": 0,\n \"UpperLatitude\": 0,\n \"LowerLongitude\": 0,\n \"UpperLongitude\": 0,\n \"HasWebText\": true,\n \"Includes\": [\n \"<string>\"\n ],\n \"Excludes\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywords\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywordsOperator\": \"<string>\",\n \"WebTextPositiveKeywordsMode\": \"<string>\",\n \"WebTextNegativeKeywords\": [\n \"<string>\"\n ],\n \"WebTextNegativeKeywordsOperator\": \"<string>\",\n \"WebTextNegativeKeywordsMode\": \"<string>\",\n \"IncludeInsights\": true,\n \"IncludeTotalCount\": true,\n \"IncludesLocations\": true,\n \"Limit\": 500,\n \"Offset\": 1073741823,\n \"SortBy\": [\n {\n \"Field\": \"<string>\",\n \"Direction\": \"<string>\"\n }\n ],\n \"Cutoff\": 123,\n \"Yes\": [\n \"<string>\"\n ],\n \"No\": [\n \"<string>\"\n ],\n \"VerticalSeed\": \"<string>\",\n \"UseTranslatedWebTextForYesNo\": true,\n \"VerticalSeedNativeLanguageOnly\": true,\n \"ManuallyInclude\": [\n \"<string>\"\n ],\n \"ManuallyExclude\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://global-api.thedatacity.com/v1/de/classification")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"WZs\": [\n \"<string>\"\n ],\n \"Name\": \"<string>\",\n \"Country\": \"<string>\",\n \"EmployeeRange\": \"<string>\",\n \"LegalForm\": \"<string>\",\n \"LegalForms\": [\n \"<string>\"\n ],\n \"HQPostcode\": \"<string>\",\n \"HQAddress\": \"<string>\",\n \"DateOfIncorporation\": \"2023-12-25\",\n \"IncorporationDateFrom\": \"2023-12-25\",\n \"IncorporationDateTo\": \"2023-12-25\",\n \"HasWebsite\": true,\n \"OperatingLocationAddresses\": [\n \"<string>\"\n ],\n \"MinTurnover\": 4611686018427388000,\n \"MaxTurnover\": 4611686018427388000,\n \"MinEBIT\": 0,\n \"MaxEBIT\": 0,\n \"MinNetIncome\": 0,\n \"MaxNetIncome\": 0,\n \"FinancialYearEnding\": 123,\n \"MinFinancialYearEnding\": 123,\n \"MaxFinancialYearEnding\": 123,\n \"AccountsType\": \"<string>\",\n \"RTICs\": [\n \"<string>\"\n ],\n \"RWZs\": [\n \"<string>\"\n ],\n \"State\": [\n \"<string>\"\n ],\n \"Zipcode\": [\n \"<string>\"\n ],\n \"Town\": [\n \"<string>\"\n ],\n \"Director\": {\n \"LocalPnr\": \"<string>\",\n \"FirstName\": \"<string>\",\n \"LastName\": \"<string>\",\n \"DateOfBirth\": \"2023-12-25\",\n \"FullName\": \"<string>\"\n },\n \"LowerLatitude\": 0,\n \"UpperLatitude\": 0,\n \"LowerLongitude\": 0,\n \"UpperLongitude\": 0,\n \"HasWebText\": true,\n \"Includes\": [\n \"<string>\"\n ],\n \"Excludes\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywords\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywordsOperator\": \"<string>\",\n \"WebTextPositiveKeywordsMode\": \"<string>\",\n \"WebTextNegativeKeywords\": [\n \"<string>\"\n ],\n \"WebTextNegativeKeywordsOperator\": \"<string>\",\n \"WebTextNegativeKeywordsMode\": \"<string>\",\n \"IncludeInsights\": true,\n \"IncludeTotalCount\": true,\n \"IncludesLocations\": true,\n \"Limit\": 500,\n \"Offset\": 1073741823,\n \"SortBy\": [\n {\n \"Field\": \"<string>\",\n \"Direction\": \"<string>\"\n }\n ],\n \"Cutoff\": 123,\n \"Yes\": [\n \"<string>\"\n ],\n \"No\": [\n \"<string>\"\n ],\n \"VerticalSeed\": \"<string>\",\n \"UseTranslatedWebTextForYesNo\": true,\n \"VerticalSeedNativeLanguageOnly\": true,\n \"ManuallyInclude\": [\n \"<string>\"\n ],\n \"ManuallyExclude\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://global-api.thedatacity.com/v1/de/classification")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"WZs\": [\n \"<string>\"\n ],\n \"Name\": \"<string>\",\n \"Country\": \"<string>\",\n \"EmployeeRange\": \"<string>\",\n \"LegalForm\": \"<string>\",\n \"LegalForms\": [\n \"<string>\"\n ],\n \"HQPostcode\": \"<string>\",\n \"HQAddress\": \"<string>\",\n \"DateOfIncorporation\": \"2023-12-25\",\n \"IncorporationDateFrom\": \"2023-12-25\",\n \"IncorporationDateTo\": \"2023-12-25\",\n \"HasWebsite\": true,\n \"OperatingLocationAddresses\": [\n \"<string>\"\n ],\n \"MinTurnover\": 4611686018427388000,\n \"MaxTurnover\": 4611686018427388000,\n \"MinEBIT\": 0,\n \"MaxEBIT\": 0,\n \"MinNetIncome\": 0,\n \"MaxNetIncome\": 0,\n \"FinancialYearEnding\": 123,\n \"MinFinancialYearEnding\": 123,\n \"MaxFinancialYearEnding\": 123,\n \"AccountsType\": \"<string>\",\n \"RTICs\": [\n \"<string>\"\n ],\n \"RWZs\": [\n \"<string>\"\n ],\n \"State\": [\n \"<string>\"\n ],\n \"Zipcode\": [\n \"<string>\"\n ],\n \"Town\": [\n \"<string>\"\n ],\n \"Director\": {\n \"LocalPnr\": \"<string>\",\n \"FirstName\": \"<string>\",\n \"LastName\": \"<string>\",\n \"DateOfBirth\": \"2023-12-25\",\n \"FullName\": \"<string>\"\n },\n \"LowerLatitude\": 0,\n \"UpperLatitude\": 0,\n \"LowerLongitude\": 0,\n \"UpperLongitude\": 0,\n \"HasWebText\": true,\n \"Includes\": [\n \"<string>\"\n ],\n \"Excludes\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywords\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywordsOperator\": \"<string>\",\n \"WebTextPositiveKeywordsMode\": \"<string>\",\n \"WebTextNegativeKeywords\": [\n \"<string>\"\n ],\n \"WebTextNegativeKeywordsOperator\": \"<string>\",\n \"WebTextNegativeKeywordsMode\": \"<string>\",\n \"IncludeInsights\": true,\n \"IncludeTotalCount\": true,\n \"IncludesLocations\": true,\n \"Limit\": 500,\n \"Offset\": 1073741823,\n \"SortBy\": [\n {\n \"Field\": \"<string>\",\n \"Direction\": \"<string>\"\n }\n ],\n \"Cutoff\": 123,\n \"Yes\": [\n \"<string>\"\n ],\n \"No\": [\n \"<string>\"\n ],\n \"VerticalSeed\": \"<string>\",\n \"UseTranslatedWebTextForYesNo\": true,\n \"VerticalSeedNativeLanguageOnly\": true,\n \"ManuallyInclude\": [\n \"<string>\"\n ],\n \"ManuallyExclude\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"Message": "<string>",
"ModelCode": "<string>",
"WordsWithNonZeroWeightsInClassifier": 123,
"SecondsSpentGettingTrainingData": 123,
"SecondsSpentTranslatingYesNoWebText": 123,
"SecondsSpentTrainingClassifier": 123,
"SecondsSpentClassifying": 123,
"SecondsSpentSavingClassificationResults": 123,
"SecondsSpentGettingCompanyDetails": 123,
"TotalCompaniesNowClassifiedForThisClassifier": 123,
"TotalCompaniesForClassification": 123
},
"CompaniesAboveCutoff": 123,
"CompaniesAboveCutoffMatchingFilters": 123,
"ModelCode": "<string>",
"WordScores": [
{
"Word": "<string>",
"Score": 123
}
],
"ScoreDistribution": [
{
"ID": "<string>",
"Name": "<string>",
"Count": 123,
"Children": "<array>"
}
],
"Results": [
{
"Name": "<string>",
"CompanyNumber": "<string>",
"Score": 123,
"Confidence": 123,
"WordsMatched": 123,
"CompanyURL": "<string>",
"WordScores": [
{
"Word": "<string>",
"Score": 123
}
],
"CompanyDetails": {
"CompanyNumber": "<string>",
"Description": "<string>",
"LegalForm": "<string>",
"EmployeeRange": "<string>",
"RTICs": [
{
"CompanyNumber": "<string>",
"SectorCode": "<string>",
"SectorName": "<string>",
"VerticalCode": "<string>",
"VerticalName": "<string>",
"Score": 123,
"WordsMatched": 123,
"Name": "<string>"
}
],
"LogoURL": "<string>",
"ScreenshotURL": "<string>",
"OperatingLocationsCount": 123,
"Name": "<string>",
"Website": "<string>",
"Country": "<string>",
"OrgNumber": "<string>",
"RegistrationNumber": "<string>",
"VATNumber": "<string>",
"HQAddress": "<string>",
"HQPostcode": "<string>",
"HQPostcodeDetails": {
"DepartmentName": "<string>",
"OrganisationName": "<string>",
"SubBuildingName": "<string>",
"BuildingName": "<string>",
"POBoxNumber": "<string>",
"BuildingNumber": "<string>",
"BuildingGroup": "<string>",
"DependentStreet": "<string>",
"MainStreet": "<string>",
"DoubleDependentLocality": "<string>",
"DependentLocality": "<string>",
"PostTown": "<string>",
"County": "<string>",
"Postcode": "<string>",
"Latitude": 123,
"Longitude": 123
},
"Address": "<string>",
"Town": "<string>",
"State": "<string>",
"Phone": "<string>",
"Zipcode": "<string>",
"Latitude": 123,
"Longitude": 123,
"DateOfIncorporation": "2023-12-25",
"BestEstimateCurrentEmployees": 123,
"BestEstimateCurrentTurnover": 123,
"Turnover": 123,
"TurnoverBand": "<string>",
"BestEstimateGrowthPercentagePerYear": 123,
"FinancesByYear": [
{
"CompanyRegistrationNumber": "<string>",
"FinancialYear": "2023-12-25",
"ProfitBeforeTax": 123,
"ProfitAfterTax": 123,
"NetWorth": 123,
"WorkingCapital": 123,
"Revenue": 123,
"TotalFixedAssets": 123,
"TotalCurrentAssets": 123,
"TotalCurrentLiabilities": 123,
"TotalLongTermLiabilities": 123,
"TotalLiabilities": 123,
"TotalShareholdersEquity": 123,
"ConsolidatedAccounts": true,
"Employees": 123,
"Turnover": 123,
"TotalAssets": 123
}
],
"Directors": [
{
"FirstName": "<string>",
"LastName": "<string>",
"FullName": "<string>",
"LocalPnr": "<string>",
"DateOfBirth": "2023-12-25",
"DateOfChange": "2023-12-25",
"Active": true,
"Position": "<string>",
"Gender": "<string>",
"Language": "<string>",
"EntityCountryCode": "<string>",
"CountryCode": "<string>",
"City": "<string>",
"Zip": "<string>",
"StreetHouseNumber": "<string>",
"Address2": "<string>"
}
],
"CompanyGrowthTrends": "<string>",
"WZs": [
"<string>"
],
"RWZs": [
{
"CompanyNumber": "<string>",
"Code": "<string>",
"Name": "<string>",
"Score": 123
}
],
"OECDScaleup": true,
"SimilarCompanies": [
{
"CompanyNumber": "<string>",
"SimilarityScore": 123
}
]
}
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Classify companies
Runs the classification pipeline for the posted filter and training payload.
curl --request POST \
--url https://global-api.thedatacity.com/v1/de/classification \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"WZs": [
"<string>"
],
"Name": "<string>",
"Country": "<string>",
"EmployeeRange": "<string>",
"LegalForm": "<string>",
"LegalForms": [
"<string>"
],
"HQPostcode": "<string>",
"HQAddress": "<string>",
"DateOfIncorporation": "2023-12-25",
"IncorporationDateFrom": "2023-12-25",
"IncorporationDateTo": "2023-12-25",
"HasWebsite": true,
"OperatingLocationAddresses": [
"<string>"
],
"MinTurnover": 4611686018427388000,
"MaxTurnover": 4611686018427388000,
"MinEBIT": 0,
"MaxEBIT": 0,
"MinNetIncome": 0,
"MaxNetIncome": 0,
"FinancialYearEnding": 123,
"MinFinancialYearEnding": 123,
"MaxFinancialYearEnding": 123,
"AccountsType": "<string>",
"RTICs": [
"<string>"
],
"RWZs": [
"<string>"
],
"State": [
"<string>"
],
"Zipcode": [
"<string>"
],
"Town": [
"<string>"
],
"Director": {
"LocalPnr": "<string>",
"FirstName": "<string>",
"LastName": "<string>",
"DateOfBirth": "2023-12-25",
"FullName": "<string>"
},
"LowerLatitude": 0,
"UpperLatitude": 0,
"LowerLongitude": 0,
"UpperLongitude": 0,
"HasWebText": true,
"Includes": [
"<string>"
],
"Excludes": [
"<string>"
],
"WebTextPositiveKeywords": [
"<string>"
],
"WebTextPositiveKeywordsOperator": "<string>",
"WebTextPositiveKeywordsMode": "<string>",
"WebTextNegativeKeywords": [
"<string>"
],
"WebTextNegativeKeywordsOperator": "<string>",
"WebTextNegativeKeywordsMode": "<string>",
"IncludeInsights": true,
"IncludeTotalCount": true,
"IncludesLocations": true,
"Limit": 500,
"Offset": 1073741823,
"SortBy": [
{
"Field": "<string>",
"Direction": "<string>"
}
],
"Cutoff": 123,
"Yes": [
"<string>"
],
"No": [
"<string>"
],
"VerticalSeed": "<string>",
"UseTranslatedWebTextForYesNo": true,
"VerticalSeedNativeLanguageOnly": true,
"ManuallyInclude": [
"<string>"
],
"ManuallyExclude": [
"<string>"
]
}
'import requests
url = "https://global-api.thedatacity.com/v1/de/classification"
payload = {
"WZs": ["<string>"],
"Name": "<string>",
"Country": "<string>",
"EmployeeRange": "<string>",
"LegalForm": "<string>",
"LegalForms": ["<string>"],
"HQPostcode": "<string>",
"HQAddress": "<string>",
"DateOfIncorporation": "2023-12-25",
"IncorporationDateFrom": "2023-12-25",
"IncorporationDateTo": "2023-12-25",
"HasWebsite": True,
"OperatingLocationAddresses": ["<string>"],
"MinTurnover": 4611686018427388000,
"MaxTurnover": 4611686018427388000,
"MinEBIT": 0,
"MaxEBIT": 0,
"MinNetIncome": 0,
"MaxNetIncome": 0,
"FinancialYearEnding": 123,
"MinFinancialYearEnding": 123,
"MaxFinancialYearEnding": 123,
"AccountsType": "<string>",
"RTICs": ["<string>"],
"RWZs": ["<string>"],
"State": ["<string>"],
"Zipcode": ["<string>"],
"Town": ["<string>"],
"Director": {
"LocalPnr": "<string>",
"FirstName": "<string>",
"LastName": "<string>",
"DateOfBirth": "2023-12-25",
"FullName": "<string>"
},
"LowerLatitude": 0,
"UpperLatitude": 0,
"LowerLongitude": 0,
"UpperLongitude": 0,
"HasWebText": True,
"Includes": ["<string>"],
"Excludes": ["<string>"],
"WebTextPositiveKeywords": ["<string>"],
"WebTextPositiveKeywordsOperator": "<string>",
"WebTextPositiveKeywordsMode": "<string>",
"WebTextNegativeKeywords": ["<string>"],
"WebTextNegativeKeywordsOperator": "<string>",
"WebTextNegativeKeywordsMode": "<string>",
"IncludeInsights": True,
"IncludeTotalCount": True,
"IncludesLocations": True,
"Limit": 500,
"Offset": 1073741823,
"SortBy": [
{
"Field": "<string>",
"Direction": "<string>"
}
],
"Cutoff": 123,
"Yes": ["<string>"],
"No": ["<string>"],
"VerticalSeed": "<string>",
"UseTranslatedWebTextForYesNo": True,
"VerticalSeedNativeLanguageOnly": True,
"ManuallyInclude": ["<string>"],
"ManuallyExclude": ["<string>"]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
WZs: ['<string>'],
Name: '<string>',
Country: '<string>',
EmployeeRange: '<string>',
LegalForm: '<string>',
LegalForms: ['<string>'],
HQPostcode: '<string>',
HQAddress: '<string>',
DateOfIncorporation: '2023-12-25',
IncorporationDateFrom: '2023-12-25',
IncorporationDateTo: '2023-12-25',
HasWebsite: true,
OperatingLocationAddresses: ['<string>'],
MinTurnover: 4611686018427388000,
MaxTurnover: 4611686018427388000,
MinEBIT: 0,
MaxEBIT: 0,
MinNetIncome: 0,
MaxNetIncome: 0,
FinancialYearEnding: 123,
MinFinancialYearEnding: 123,
MaxFinancialYearEnding: 123,
AccountsType: '<string>',
RTICs: ['<string>'],
RWZs: ['<string>'],
State: ['<string>'],
Zipcode: ['<string>'],
Town: ['<string>'],
Director: {
LocalPnr: '<string>',
FirstName: '<string>',
LastName: '<string>',
DateOfBirth: '2023-12-25',
FullName: '<string>'
},
LowerLatitude: 0,
UpperLatitude: 0,
LowerLongitude: 0,
UpperLongitude: 0,
HasWebText: true,
Includes: ['<string>'],
Excludes: ['<string>'],
WebTextPositiveKeywords: ['<string>'],
WebTextPositiveKeywordsOperator: '<string>',
WebTextPositiveKeywordsMode: '<string>',
WebTextNegativeKeywords: ['<string>'],
WebTextNegativeKeywordsOperator: '<string>',
WebTextNegativeKeywordsMode: '<string>',
IncludeInsights: true,
IncludeTotalCount: true,
IncludesLocations: true,
Limit: 500,
Offset: 1073741823,
SortBy: [{Field: '<string>', Direction: '<string>'}],
Cutoff: 123,
Yes: ['<string>'],
No: ['<string>'],
VerticalSeed: '<string>',
UseTranslatedWebTextForYesNo: true,
VerticalSeedNativeLanguageOnly: true,
ManuallyInclude: ['<string>'],
ManuallyExclude: ['<string>']
})
};
fetch('https://global-api.thedatacity.com/v1/de/classification', 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://global-api.thedatacity.com/v1/de/classification",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'WZs' => [
'<string>'
],
'Name' => '<string>',
'Country' => '<string>',
'EmployeeRange' => '<string>',
'LegalForm' => '<string>',
'LegalForms' => [
'<string>'
],
'HQPostcode' => '<string>',
'HQAddress' => '<string>',
'DateOfIncorporation' => '2023-12-25',
'IncorporationDateFrom' => '2023-12-25',
'IncorporationDateTo' => '2023-12-25',
'HasWebsite' => true,
'OperatingLocationAddresses' => [
'<string>'
],
'MinTurnover' => 4611686018427388000,
'MaxTurnover' => 4611686018427388000,
'MinEBIT' => 0,
'MaxEBIT' => 0,
'MinNetIncome' => 0,
'MaxNetIncome' => 0,
'FinancialYearEnding' => 123,
'MinFinancialYearEnding' => 123,
'MaxFinancialYearEnding' => 123,
'AccountsType' => '<string>',
'RTICs' => [
'<string>'
],
'RWZs' => [
'<string>'
],
'State' => [
'<string>'
],
'Zipcode' => [
'<string>'
],
'Town' => [
'<string>'
],
'Director' => [
'LocalPnr' => '<string>',
'FirstName' => '<string>',
'LastName' => '<string>',
'DateOfBirth' => '2023-12-25',
'FullName' => '<string>'
],
'LowerLatitude' => 0,
'UpperLatitude' => 0,
'LowerLongitude' => 0,
'UpperLongitude' => 0,
'HasWebText' => true,
'Includes' => [
'<string>'
],
'Excludes' => [
'<string>'
],
'WebTextPositiveKeywords' => [
'<string>'
],
'WebTextPositiveKeywordsOperator' => '<string>',
'WebTextPositiveKeywordsMode' => '<string>',
'WebTextNegativeKeywords' => [
'<string>'
],
'WebTextNegativeKeywordsOperator' => '<string>',
'WebTextNegativeKeywordsMode' => '<string>',
'IncludeInsights' => true,
'IncludeTotalCount' => true,
'IncludesLocations' => true,
'Limit' => 500,
'Offset' => 1073741823,
'SortBy' => [
[
'Field' => '<string>',
'Direction' => '<string>'
]
],
'Cutoff' => 123,
'Yes' => [
'<string>'
],
'No' => [
'<string>'
],
'VerticalSeed' => '<string>',
'UseTranslatedWebTextForYesNo' => true,
'VerticalSeedNativeLanguageOnly' => true,
'ManuallyInclude' => [
'<string>'
],
'ManuallyExclude' => [
'<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://global-api.thedatacity.com/v1/de/classification"
payload := strings.NewReader("{\n \"WZs\": [\n \"<string>\"\n ],\n \"Name\": \"<string>\",\n \"Country\": \"<string>\",\n \"EmployeeRange\": \"<string>\",\n \"LegalForm\": \"<string>\",\n \"LegalForms\": [\n \"<string>\"\n ],\n \"HQPostcode\": \"<string>\",\n \"HQAddress\": \"<string>\",\n \"DateOfIncorporation\": \"2023-12-25\",\n \"IncorporationDateFrom\": \"2023-12-25\",\n \"IncorporationDateTo\": \"2023-12-25\",\n \"HasWebsite\": true,\n \"OperatingLocationAddresses\": [\n \"<string>\"\n ],\n \"MinTurnover\": 4611686018427388000,\n \"MaxTurnover\": 4611686018427388000,\n \"MinEBIT\": 0,\n \"MaxEBIT\": 0,\n \"MinNetIncome\": 0,\n \"MaxNetIncome\": 0,\n \"FinancialYearEnding\": 123,\n \"MinFinancialYearEnding\": 123,\n \"MaxFinancialYearEnding\": 123,\n \"AccountsType\": \"<string>\",\n \"RTICs\": [\n \"<string>\"\n ],\n \"RWZs\": [\n \"<string>\"\n ],\n \"State\": [\n \"<string>\"\n ],\n \"Zipcode\": [\n \"<string>\"\n ],\n \"Town\": [\n \"<string>\"\n ],\n \"Director\": {\n \"LocalPnr\": \"<string>\",\n \"FirstName\": \"<string>\",\n \"LastName\": \"<string>\",\n \"DateOfBirth\": \"2023-12-25\",\n \"FullName\": \"<string>\"\n },\n \"LowerLatitude\": 0,\n \"UpperLatitude\": 0,\n \"LowerLongitude\": 0,\n \"UpperLongitude\": 0,\n \"HasWebText\": true,\n \"Includes\": [\n \"<string>\"\n ],\n \"Excludes\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywords\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywordsOperator\": \"<string>\",\n \"WebTextPositiveKeywordsMode\": \"<string>\",\n \"WebTextNegativeKeywords\": [\n \"<string>\"\n ],\n \"WebTextNegativeKeywordsOperator\": \"<string>\",\n \"WebTextNegativeKeywordsMode\": \"<string>\",\n \"IncludeInsights\": true,\n \"IncludeTotalCount\": true,\n \"IncludesLocations\": true,\n \"Limit\": 500,\n \"Offset\": 1073741823,\n \"SortBy\": [\n {\n \"Field\": \"<string>\",\n \"Direction\": \"<string>\"\n }\n ],\n \"Cutoff\": 123,\n \"Yes\": [\n \"<string>\"\n ],\n \"No\": [\n \"<string>\"\n ],\n \"VerticalSeed\": \"<string>\",\n \"UseTranslatedWebTextForYesNo\": true,\n \"VerticalSeedNativeLanguageOnly\": true,\n \"ManuallyInclude\": [\n \"<string>\"\n ],\n \"ManuallyExclude\": [\n \"<string>\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://global-api.thedatacity.com/v1/de/classification")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"WZs\": [\n \"<string>\"\n ],\n \"Name\": \"<string>\",\n \"Country\": \"<string>\",\n \"EmployeeRange\": \"<string>\",\n \"LegalForm\": \"<string>\",\n \"LegalForms\": [\n \"<string>\"\n ],\n \"HQPostcode\": \"<string>\",\n \"HQAddress\": \"<string>\",\n \"DateOfIncorporation\": \"2023-12-25\",\n \"IncorporationDateFrom\": \"2023-12-25\",\n \"IncorporationDateTo\": \"2023-12-25\",\n \"HasWebsite\": true,\n \"OperatingLocationAddresses\": [\n \"<string>\"\n ],\n \"MinTurnover\": 4611686018427388000,\n \"MaxTurnover\": 4611686018427388000,\n \"MinEBIT\": 0,\n \"MaxEBIT\": 0,\n \"MinNetIncome\": 0,\n \"MaxNetIncome\": 0,\n \"FinancialYearEnding\": 123,\n \"MinFinancialYearEnding\": 123,\n \"MaxFinancialYearEnding\": 123,\n \"AccountsType\": \"<string>\",\n \"RTICs\": [\n \"<string>\"\n ],\n \"RWZs\": [\n \"<string>\"\n ],\n \"State\": [\n \"<string>\"\n ],\n \"Zipcode\": [\n \"<string>\"\n ],\n \"Town\": [\n \"<string>\"\n ],\n \"Director\": {\n \"LocalPnr\": \"<string>\",\n \"FirstName\": \"<string>\",\n \"LastName\": \"<string>\",\n \"DateOfBirth\": \"2023-12-25\",\n \"FullName\": \"<string>\"\n },\n \"LowerLatitude\": 0,\n \"UpperLatitude\": 0,\n \"LowerLongitude\": 0,\n \"UpperLongitude\": 0,\n \"HasWebText\": true,\n \"Includes\": [\n \"<string>\"\n ],\n \"Excludes\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywords\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywordsOperator\": \"<string>\",\n \"WebTextPositiveKeywordsMode\": \"<string>\",\n \"WebTextNegativeKeywords\": [\n \"<string>\"\n ],\n \"WebTextNegativeKeywordsOperator\": \"<string>\",\n \"WebTextNegativeKeywordsMode\": \"<string>\",\n \"IncludeInsights\": true,\n \"IncludeTotalCount\": true,\n \"IncludesLocations\": true,\n \"Limit\": 500,\n \"Offset\": 1073741823,\n \"SortBy\": [\n {\n \"Field\": \"<string>\",\n \"Direction\": \"<string>\"\n }\n ],\n \"Cutoff\": 123,\n \"Yes\": [\n \"<string>\"\n ],\n \"No\": [\n \"<string>\"\n ],\n \"VerticalSeed\": \"<string>\",\n \"UseTranslatedWebTextForYesNo\": true,\n \"VerticalSeedNativeLanguageOnly\": true,\n \"ManuallyInclude\": [\n \"<string>\"\n ],\n \"ManuallyExclude\": [\n \"<string>\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://global-api.thedatacity.com/v1/de/classification")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"WZs\": [\n \"<string>\"\n ],\n \"Name\": \"<string>\",\n \"Country\": \"<string>\",\n \"EmployeeRange\": \"<string>\",\n \"LegalForm\": \"<string>\",\n \"LegalForms\": [\n \"<string>\"\n ],\n \"HQPostcode\": \"<string>\",\n \"HQAddress\": \"<string>\",\n \"DateOfIncorporation\": \"2023-12-25\",\n \"IncorporationDateFrom\": \"2023-12-25\",\n \"IncorporationDateTo\": \"2023-12-25\",\n \"HasWebsite\": true,\n \"OperatingLocationAddresses\": [\n \"<string>\"\n ],\n \"MinTurnover\": 4611686018427388000,\n \"MaxTurnover\": 4611686018427388000,\n \"MinEBIT\": 0,\n \"MaxEBIT\": 0,\n \"MinNetIncome\": 0,\n \"MaxNetIncome\": 0,\n \"FinancialYearEnding\": 123,\n \"MinFinancialYearEnding\": 123,\n \"MaxFinancialYearEnding\": 123,\n \"AccountsType\": \"<string>\",\n \"RTICs\": [\n \"<string>\"\n ],\n \"RWZs\": [\n \"<string>\"\n ],\n \"State\": [\n \"<string>\"\n ],\n \"Zipcode\": [\n \"<string>\"\n ],\n \"Town\": [\n \"<string>\"\n ],\n \"Director\": {\n \"LocalPnr\": \"<string>\",\n \"FirstName\": \"<string>\",\n \"LastName\": \"<string>\",\n \"DateOfBirth\": \"2023-12-25\",\n \"FullName\": \"<string>\"\n },\n \"LowerLatitude\": 0,\n \"UpperLatitude\": 0,\n \"LowerLongitude\": 0,\n \"UpperLongitude\": 0,\n \"HasWebText\": true,\n \"Includes\": [\n \"<string>\"\n ],\n \"Excludes\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywords\": [\n \"<string>\"\n ],\n \"WebTextPositiveKeywordsOperator\": \"<string>\",\n \"WebTextPositiveKeywordsMode\": \"<string>\",\n \"WebTextNegativeKeywords\": [\n \"<string>\"\n ],\n \"WebTextNegativeKeywordsOperator\": \"<string>\",\n \"WebTextNegativeKeywordsMode\": \"<string>\",\n \"IncludeInsights\": true,\n \"IncludeTotalCount\": true,\n \"IncludesLocations\": true,\n \"Limit\": 500,\n \"Offset\": 1073741823,\n \"SortBy\": [\n {\n \"Field\": \"<string>\",\n \"Direction\": \"<string>\"\n }\n ],\n \"Cutoff\": 123,\n \"Yes\": [\n \"<string>\"\n ],\n \"No\": [\n \"<string>\"\n ],\n \"VerticalSeed\": \"<string>\",\n \"UseTranslatedWebTextForYesNo\": true,\n \"VerticalSeedNativeLanguageOnly\": true,\n \"ManuallyInclude\": [\n \"<string>\"\n ],\n \"ManuallyExclude\": [\n \"<string>\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"Status": {
"Message": "<string>",
"ModelCode": "<string>",
"WordsWithNonZeroWeightsInClassifier": 123,
"SecondsSpentGettingTrainingData": 123,
"SecondsSpentTranslatingYesNoWebText": 123,
"SecondsSpentTrainingClassifier": 123,
"SecondsSpentClassifying": 123,
"SecondsSpentSavingClassificationResults": 123,
"SecondsSpentGettingCompanyDetails": 123,
"TotalCompaniesNowClassifiedForThisClassifier": 123,
"TotalCompaniesForClassification": 123
},
"CompaniesAboveCutoff": 123,
"CompaniesAboveCutoffMatchingFilters": 123,
"ModelCode": "<string>",
"WordScores": [
{
"Word": "<string>",
"Score": 123
}
],
"ScoreDistribution": [
{
"ID": "<string>",
"Name": "<string>",
"Count": 123,
"Children": "<array>"
}
],
"Results": [
{
"Name": "<string>",
"CompanyNumber": "<string>",
"Score": 123,
"Confidence": 123,
"WordsMatched": 123,
"CompanyURL": "<string>",
"WordScores": [
{
"Word": "<string>",
"Score": 123
}
],
"CompanyDetails": {
"CompanyNumber": "<string>",
"Description": "<string>",
"LegalForm": "<string>",
"EmployeeRange": "<string>",
"RTICs": [
{
"CompanyNumber": "<string>",
"SectorCode": "<string>",
"SectorName": "<string>",
"VerticalCode": "<string>",
"VerticalName": "<string>",
"Score": 123,
"WordsMatched": 123,
"Name": "<string>"
}
],
"LogoURL": "<string>",
"ScreenshotURL": "<string>",
"OperatingLocationsCount": 123,
"Name": "<string>",
"Website": "<string>",
"Country": "<string>",
"OrgNumber": "<string>",
"RegistrationNumber": "<string>",
"VATNumber": "<string>",
"HQAddress": "<string>",
"HQPostcode": "<string>",
"HQPostcodeDetails": {
"DepartmentName": "<string>",
"OrganisationName": "<string>",
"SubBuildingName": "<string>",
"BuildingName": "<string>",
"POBoxNumber": "<string>",
"BuildingNumber": "<string>",
"BuildingGroup": "<string>",
"DependentStreet": "<string>",
"MainStreet": "<string>",
"DoubleDependentLocality": "<string>",
"DependentLocality": "<string>",
"PostTown": "<string>",
"County": "<string>",
"Postcode": "<string>",
"Latitude": 123,
"Longitude": 123
},
"Address": "<string>",
"Town": "<string>",
"State": "<string>",
"Phone": "<string>",
"Zipcode": "<string>",
"Latitude": 123,
"Longitude": 123,
"DateOfIncorporation": "2023-12-25",
"BestEstimateCurrentEmployees": 123,
"BestEstimateCurrentTurnover": 123,
"Turnover": 123,
"TurnoverBand": "<string>",
"BestEstimateGrowthPercentagePerYear": 123,
"FinancesByYear": [
{
"CompanyRegistrationNumber": "<string>",
"FinancialYear": "2023-12-25",
"ProfitBeforeTax": 123,
"ProfitAfterTax": 123,
"NetWorth": 123,
"WorkingCapital": 123,
"Revenue": 123,
"TotalFixedAssets": 123,
"TotalCurrentAssets": 123,
"TotalCurrentLiabilities": 123,
"TotalLongTermLiabilities": 123,
"TotalLiabilities": 123,
"TotalShareholdersEquity": 123,
"ConsolidatedAccounts": true,
"Employees": 123,
"Turnover": 123,
"TotalAssets": 123
}
],
"Directors": [
{
"FirstName": "<string>",
"LastName": "<string>",
"FullName": "<string>",
"LocalPnr": "<string>",
"DateOfBirth": "2023-12-25",
"DateOfChange": "2023-12-25",
"Active": true,
"Position": "<string>",
"Gender": "<string>",
"Language": "<string>",
"EntityCountryCode": "<string>",
"CountryCode": "<string>",
"City": "<string>",
"Zip": "<string>",
"StreetHouseNumber": "<string>",
"Address2": "<string>"
}
],
"CompanyGrowthTrends": "<string>",
"WZs": [
"<string>"
],
"RWZs": [
{
"CompanyNumber": "<string>",
"Code": "<string>",
"Name": "<string>",
"Score": 123
}
],
"OECDScaleup": true,
"SimilarCompanies": [
{
"CompanyNumber": "<string>",
"SimilarityScore": 123
}
]
}
}
]
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>",
"instance": "<string>"
}Authorizations
An API key issued by The Data City, sent as: Authorization: Bearer YOUR_KEY
Body
Request model for filtering companies with comprehensive search criteria
Filter by primary industry scheme codes (wire name set at scaffold time).
Filter by company name prefix, company number, Handelsregister number (OrgNumber / RegistrationNumber), VAT number (VATNumber), or website. Domain-style needles (keep dots) match
Website exactly or as a subdomain suffix; other needles still substring-match website via contains.
500Filter by country
100Filter by employee-range slug from GET /api/filters (employeeRanges[].id).
Matches DuckDB EmployeesBand via URL-safe slug (API key EmployeeRange).
20Filter by legal form slug from GET /api/filters (legalForms[].id).
150Filter by one or more legal form slugs from GET /api/filters (legalForms[].id). Matches any listed form (OR).
100Filter by headquarters postal code
10^[0-9]{5}$Filter by headquarters address substring (case-insensitive).
500Filter by date of incorporation (exact match)
Filter by minimum date of incorporation (inclusive)
Filter by maximum date of incorporation (inclusive)
Filter companies that have a website
Filter by operating location addresses (partial match)
20Minimum annual turnover value
0 <= x <= 9223372036854776000Maximum annual turnover value
0 <= x <= 9223372036854776000Minimum EBIT (Earnings Before Interest and Taxes) value
-9223372036854776000 <= x <= 9223372036854776000Maximum EBIT (Earnings Before Interest and Taxes) value
-9223372036854776000 <= x <= 9223372036854776000Minimum net income value
-9223372036854776000 <= x <= 9223372036854776000Maximum net income value
-9223372036854776000 <= x <= 9223372036854776000Filter by specific financial year ending
Minimum financial year ending
Maximum financial year ending
Filter by accounts type (e.g., "Full", "Abbreviated", "Small")
50Filter by RTIC codes. Matches companies that have any of the specified RTIC codes.
Filter by secondary industry scheme codes (wire name set at scaffold time).
Filter by Bundesland slug or name from GET /api/filters (states[].id / states[].name).
Matches HQPostcodeDetails.County.
100Filter by headquarters postal code(s) (5-digit German PLZ). Same column as TDC_Global_Server_API_DE.Models.Filtering.Filters.HQPostcode.
100Filter by town / PostTown from HQPostcodeDetails.PostTown (case-insensitive).
1000Optional director filter values for POST /api/companies (Director) and M:TDC_Global_Server_API_Core.Classes.Configuration.DirectorFilterSql.Build(TDC_Global_Server_API_Core.Classes.Configuration.DirectorFilterCriteria,TDC_Global_Server_API_Core.Classes.Configuration.DirectorFilterProfile,System.String,System.String).
Show child attributes
Show child attributes
South edge of a geographic bounding box (minimum latitude), inclusive. WGS-84 decimal degrees.
-90 <= x <= 90North edge of a geographic bounding box (maximum latitude), inclusive. WGS-84 decimal degrees.
-90 <= x <= 90West edge of a geographic bounding box (minimum longitude), inclusive. WGS-84 decimal degrees.
-180 <= x <= 180East edge of a geographic bounding box (maximum longitude), inclusive. WGS-84 decimal degrees.
-180 <= x <= 180Filter by companies that have web text
Restrict results to these company numbers (CompanyNumber IN (...)).
5000Exclude these company numbers (CompanyNumber NOT IN (...)).
5000Positive keywords matched against web text (BM25 when FTS index exists; otherwise ILIKE).
25Combines positive keywords: AND (all) or OR (any).
^(AND|OR)$Backward-compatible alias for TDC_Global_Server_API_DE.Models.Filtering.Filters.WebTextPositiveKeywordsOperator.
^(AND|OR)$Negative keywords: rows matching these are excluded.
25Combines negative keyword checks inside NOT (...).
^(AND|OR)$Backward-compatible alias for TDC_Global_Server_API_DE.Models.Filtering.Filters.WebTextNegativeKeywordsOperator.
^(AND|OR)$When false, skips insight bucket aggregation. Omit or null for default (include insights).
When false, skips total-count queries and omits TotalCount from the response. Omit or null for default (include total count).
When true, nested location lists are loaded on each company. Omit or null for default (omit lists).
Maximum number of results to return (uses QueryConstants.MaxQueryLimit)
1 <= x <= 1000Number of results to skip for pagination (default: 0)
0 <= x <= 2147483647Sort options for the results
10Show child attributes
Show child attributes
Minimum raw classifier score (bias + weighted terms), not a percentage.
List of company numbers to include in the classification
List of company numbers to exclude from the classification
Optional RTIC vertical code whose training rows are loaded from the vertical seed parquet.
When true, adds translated web-text training rows for TDC_Global_Server_API_DE.Models.Filtering.ClassificationFilters.Yes and TDC_Global_Server_API_DE.Models.Filtering.ClassificationFilters.No companies via Mistral. When omitted or false, Yes/No use primary web text only.
When true, vertical seed uses only the host native language (for example German on DE), not English.
List of company numbers to manually include in the classification
List of company numbers to manually exclude from the classification
Response
OK
Complete classification API payload (host chooses for JSON shape, e.g. Siren vs company number).
Status and timing metrics for a classification operation.
Show child attributes
Show child attributes
Count of companies scoring strictly above the cutoff.
Count of those companies that also match active filters.
Classifier model identifier.
Trained classifier vocabulary weights (linear model coefficients).
Show child attributes
Show child attributes
Histogram of scores across the candidate set.
Show child attributes
Show child attributes
Per-company classification results.
Show child attributes
Show child attributes