List municipalities and current officials
curl --request GET \
--url https://www.firmium.de/api/v1/municipalities/ \
--cookie sessionid=import requests
url = "https://www.firmium.de/api/v1/municipalities/"
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/', 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/",
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/"
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/")
.header("cookie", "sessionid=")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.firmium.de/api/v1/municipalities/")
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{
"count": 123,
"results": [
{
"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"
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}v1
List municipalities and current officials
Current municipalities with current officials and CSV export.
GET
/
api
/
v1
/
municipalities
/
List municipalities and current officials
curl --request GET \
--url https://www.firmium.de/api/v1/municipalities/ \
--cookie sessionid=import requests
url = "https://www.firmium.de/api/v1/municipalities/"
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/', 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/",
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/"
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/")
.header("cookie", "sessionid=")
.asString();require 'uri'
require 'net/http'
url = URI("https://www.firmium.de/api/v1/municipalities/")
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{
"count": 123,
"results": [
{
"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"
}
],
"next": "http://api.example.org/accounts/?page=4",
"previous": "http://api.example.org/accounts/?page=2"
}Autorisierungen
cookieAuthSessionAuthTokenAuth
Abfrageparameter
ISO 3166-1 alpha-2 country codes
Excluded ISO country codes
District code or name
One or more official municipality codes
Current municipal role
mayor- Mayorvice_mayor- Vice Mayormunicipal_office_director- Municipal Office Directormunicipal_councillor- Municipal Councillormunicipal_official- Municipal Official
Verfügbare Optionen:
mayor, municipal_councillor, municipal_office_director, municipal_official, vice_mayor A page number within the paginated result set.
Search by official code, municipality, district, region or official
State or region code or name
National municipality type code
Municipality UUIDs
War diese Seite hilfreich?

