List the company's industries
Returns the industry branches that the company's published references belong to,
with a reference count per branch. lft/rgt are nested-set bounds: branch B is
a descendant of branch A when A.lft < B.lft and B.rgt < A.rgt — use them to
rebuild the tree client-side.
curl -X GET "https://referenzen.com/api/v1/branches/branches?lang_ID=2" \
-H "Content-Type: application/json"
import requests
import json
url = "https://referenzen.com/api/v1/branches/branches?lang_ID=2"
headers = {
"Content-Type": "application/json"
}
response = requests.get(url, headers=headers)
print(response.json())
const response = await fetch("https://referenzen.com/api/v1/branches/branches?lang_ID=2", {
method: "GET",
headers: {
"Content-Type": "application/json"
}
});
const data = await response.json();
console.log(data);
package main
import (
"fmt"
"net/http"
)
func main() {
req, err := http.NewRequest("GET", "https://referenzen.com/api/v1/branches/branches?lang_ID=2", nil)
if err != nil {
panic(err)
}
req.Header.Set("Content-Type", "application/json")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
fmt.Println("Response Status:", resp.Status)
}
require 'net/http'
require 'json'
uri = URI('https://referenzen.com/api/v1/branches/branches?lang_ID=2')
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
request = Net::HTTP::Get.new(uri)
request['Content-Type'] = 'application/json'
response = http.request(request)
puts response.body
[
{
"branch_ID": 123,
"branchname": "John Doe",
"lft": 42,
"rgt": 42,
"referencecount": 10
}
]
{}
{
"error": "Unauthorized",
"message": "Authentication required. Please provide a valid API token",
"code": 401
}
/branches/branches
Target server for requests. Edit to use your own host.
Your API key (workspace → avatar menu → Settings → API). Scopes all requests to your company.
Content language: 1 = English, 2 = German. Invalid values fall back to the key owner's default language.
Request Preview
Response
Response will appear here after sending the request
Authentication
API Key for authentication. Your API key (workspace → avatar menu → Settings → API). Scopes all requests to your company.
Query Parameters
Content language: 1 = English, 2 = German. Invalid values fall back to the key owner's default language.
12Responses
Nested-set left bound.
Nested-set right bound.