Skip to main content
GET
/
datasets
/
companies
/
{companyId}
/
workplaces
Workplace summary
curl --request GET \
  --url https://api.tic.io/datasets/companies/{companyId}/workplaces \
  --header 'x-api-key: <api-key>'
import requests

url = "https://api.tic.io/datasets/companies/{companyId}/workplaces"

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://api.tic.io/datasets/companies/{companyId}/workplaces', 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://api.tic.io/datasets/companies/{companyId}/workplaces",
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://api.tic.io/datasets/companies/{companyId}/workplaces"

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://api.tic.io/datasets/companies/{companyId}/workplaces")
.header("x-api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.tic.io/datasets/companies/{companyId}/workplaces")

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
{
  "id": "<string>",
  "companyWorkplaceId": 123,
  "workplaceCode": 123,
  "firstSeenAt": 123,
  "workplaceCompanies": [
    {
      "companyId": 123,
      "fromDate": 123,
      "toDate": 123,
      "registrationNumber": "<string>",
      "mostRecentName": "<string>",
      "legalEntityType": "<string>",
      "localCompanyCode": "<string>",
      "elfCode": "<string>",
      "registrationDate": 123,
      "ceasedDate": 123,
      "isCeased": true
    }
  ],
  "workplaceUnits": [
    {
      "companyId": 123,
      "unitIdentifier": 123,
      "firstSeenAt": 123,
      "lastSeenAt": 123
    }
  ],
  "workplaceName": [
    {
      "nameOrIdentifier": "<string>",
      "firstSeenAt": 123,
      "lastSeenAt": 123
    }
  ],
  "workplaceType": 123,
  "workplaceTypeDescriptionSv": "<string>",
  "employeesRangeType": 123,
  "employeesRangeTypeDescriptionSv": "<string>",
  "mostRecentVisitingAddress": {
    "co": "<string>",
    "streetAddress": "<string>",
    "postalCode": "<string>",
    "city": "<string>",
    "countryCodeAlpha3": "<string>",
    "location": [
      123
    ],
    "firstSeenAt": 123,
    "lantmaterietLocationalAddressId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "lantmaterietLocatedOnPropertyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "lantmaterietLocationalSupplementalNumber": "<string>",
    "municipalityCode": "<string>",
    "countyCode": "<string>",
    "nyko": "<string>",
    "nykoYear": 123,
    "addressId": 123
  },
  "mostRecentMailingAddress": {
    "co": "<string>",
    "streetAddress": "<string>",
    "postalCode": "<string>",
    "city": "<string>",
    "countryCodeAlpha3": "<string>",
    "location": [
      123
    ],
    "firstSeenAt": 123,
    "lantmaterietLocationalAddressId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "lantmaterietLocatedOnPropertyId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "lantmaterietLocationalSupplementalNumber": "<string>",
    "municipalityCode": "<string>",
    "countyCode": "<string>",
    "nyko": "<string>",
    "nykoYear": 123,
    "addressId": 123
  },
  "sniCodes": [
    {
      "sni_2007Code": "<string>",
      "sni_2007Name": "<string>",
      "sni_2007Section": "<string>",
      "sni_2025Code": "<string>",
      "sni_2025Name": "<string>",
      "sni_2025Section": "<string>",
      "rank": 123
    }
  ],
  "status": [
    {
      "statusDate": 123,
      "statusDescription": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

Path Parameters

companyId
integer<int32>
required

The id of the company

Query Parameters

lastItemId
integer<int32>
default:0

Take records after the id

pageSize
integer<int32>
default:100

Page size

Response

200 - application/json

The search response

id
string | null
companyWorkplaceId
integer<int32>
workplaceCode
integer<int32> | null
firstSeenAt
integer<int64> | null
workplaceCompanies
object[] | null
workplaceUnits
object[] | null
workplaceName
object[] | null
workplaceType
integer<int32> | null
workplaceTypeDescriptionSv
string | null
employeesRangeType
integer<int32> | null
employeesRangeTypeDescriptionSv
string | null
mostRecentVisitingAddress
object
mostRecentMailingAddress
object
sniCodes
object[] | null
status
object[] | null