Retrieve a municipality by UUID
curl --request GET \
--url https://www.firmium.de/api/v1/municipalities/{uuid}/ \
--cookie sessionid=import requests
url = "https://www.firmium.de/api/v1/municipalities/{uuid}/"
headers = {"cookie": "sessionid="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sessionid='}};
fetch('https://www.firmium.de/api/v1/municipalities/{uuid}/', 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.firmium.de/api/v1/municipalities/{uuid}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "sessionid=",
]);
$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.firmium.de/api/v1/municipalities/{uuid}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "sessionid=")
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.firmium.de/api/v1/municipalities/{uuid}/")
.header("cookie", "sessionid=")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.firmium.de/api/v1/municipalities/{uuid}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'sessionid='
response = http.request(request)
puts response.read_body{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "<string>",
"official_code": "<string>",
"name": "<string>",
"status": "<string>",
"status_display": "<string>",
"company_count": 123,
"officials": [
{
"relationship_type": "shareholder",
"role": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"person_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"person_url": "<string>",
"source_label": "<string>",
"source_as_of": "<string>",
"source_role": "<string>",
"work_email": "jsmith@example.com",
"work_phone": "<string>",
"start_date": "2023-12-25",
"source_url": "<string>",
"verification_status": "unverified"
}
],
"profile_url": "<string>",
"budget_url": "<string>",
"district_code": "<string>",
"district_name": "<string>",
"state_code": "<string>",
"state_name": "<string>",
"nuts3_code": "<string>",
"lau_code": "<string>",
"population": 1073741823,
"population_as_of": "2023-12-25",
"reference_date": "2023-12-25"
}v1
Retrieve a municipality by UUID
Current municipalities with current officials and CSV export.
GET
/
api
/
v1
/
municipalities
/
{uuid}
/
Retrieve a municipality by UUID
curl --request GET \
--url https://www.firmium.de/api/v1/municipalities/{uuid}/ \
--cookie sessionid=import requests
url = "https://www.firmium.de/api/v1/municipalities/{uuid}/"
headers = {"cookie": "sessionid="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'sessionid='}};
fetch('https://www.firmium.de/api/v1/municipalities/{uuid}/', 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.firmium.de/api/v1/municipalities/{uuid}/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_COOKIE => "sessionid=",
]);
$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.firmium.de/api/v1/municipalities/{uuid}/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("cookie", "sessionid=")
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.firmium.de/api/v1/municipalities/{uuid}/")
.header("cookie", "sessionid=")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.firmium.de/api/v1/municipalities/{uuid}/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["cookie"] = 'sessionid='
response = http.request(request)
puts response.read_body{
"uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"country_code": "<string>",
"official_code": "<string>",
"name": "<string>",
"status": "<string>",
"status_display": "<string>",
"company_count": 123,
"officials": [
{
"relationship_type": "shareholder",
"role": "<string>",
"first_name": "<string>",
"last_name": "<string>",
"full_name": "<string>",
"person_uuid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"person_url": "<string>",
"source_label": "<string>",
"source_as_of": "<string>",
"source_role": "<string>",
"work_email": "jsmith@example.com",
"work_phone": "<string>",
"start_date": "2023-12-25",
"source_url": "<string>",
"verification_status": "unverified"
}
],
"profile_url": "<string>",
"budget_url": "<string>",
"district_code": "<string>",
"district_name": "<string>",
"state_code": "<string>",
"state_name": "<string>",
"nuts3_code": "<string>",
"lau_code": "<string>",
"population": 1073741823,
"population_as_of": "2023-12-25",
"reference_date": "2023-12-25"
}Autorisierungen
cookieAuthSessionAuthTokenAuth
Pfadparameter
Pattern:
^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$Antwort
200 - application/json
Maximum string length:
2Maximum string length:
64Maximum string length:
255Show child attributes
Show child attributes
Maximum string length:
64Maximum string length:
255Maximum string length:
64Maximum string length:
255Maximum string length:
10Maximum string length:
20Erforderlicher Bereich:
0 <= x <= 2147483647Reference date of the latest imported population figure.
Reference date of the official source data.
War diese Seite hilfreich?

