List SK NACE codes
curl --request GET \
--url https://www.registeruz.sk/cruz-public/api/sk-naceimport requests
url = "https://www.registeruz.sk/cruz-public/api/sk-nace"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.registeruz.sk/cruz-public/api/sk-nace', 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://www.registeruz.sk/cruz-public/api/sk-nace",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://www.registeruz.sk/cruz-public/api/sk-nace"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.registeruz.sk/cruz-public/api/sk-nace")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.registeruz.sk/cruz-public/api/sk-nace")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"klasifikacie": [
{
"kod": "<string>",
"nazov": {
"sk": "<string>",
"en": "<string>"
}
}
]
}Codelists
List SK NACE codes
Returns all SK NACE economic activity codes and labels.
GET
/
api
/
sk-nace
List SK NACE codes
curl --request GET \
--url https://www.registeruz.sk/cruz-public/api/sk-naceimport requests
url = "https://www.registeruz.sk/cruz-public/api/sk-nace"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://www.registeruz.sk/cruz-public/api/sk-nace', 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://www.registeruz.sk/cruz-public/api/sk-nace",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://www.registeruz.sk/cruz-public/api/sk-nace"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://www.registeruz.sk/cruz-public/api/sk-nace")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.registeruz.sk/cruz-public/api/sk-nace")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"klasifikacie": [
{
"kod": "<string>",
"nazov": {
"sk": "<string>",
"en": "<string>"
}
}
]
}You can use this endpoint to resolve the
skNace field from the response on an Accounting unit into a human-readable label.
The source code for this endpoint is the ŠÚSR codelist
5205/SKNACE5.Common patterns
Resolve an SK NACE code
Resolve an SK NACE code
Fetch all SK NACE codes and find the matching label for a
skNace code on an accounting unit.Resolve an SK NACE code
// 1. Fetch all SK NACE codes
const { klasifikacie } = await fetch(`${BASE}/api/sk-nace`).then(r => r.json());
// 2. Resolve the activity label for an accounting unit
const activity = klasifikacie.find(a => a.kod === unit.skNace);
// 3. Log the SK NACE label
console.log(activity?.nazov?.sk);
Response
200 - application/json
SK NACE codes returned successfully.
Show child attributes
Show child attributes
⌘I