BizKitHub
getBranchPubliczne API v1

/api/v1/branch/list

Returns a paginated list of active branches (pobočky) of the organisation. Each item carries only the publicly displayable subset of branch information (name, description, GPS, public URL, main photo, summary address, branch type). Use /branch/detail?slug=… to fetch the full public detail of a specific branch.

When the latitude and longitude query parameters are both supplied, the result is sorted by great-circle (haversine) distance from that reference point ascending and each item carries an additional distanceKm field. Branches whose GPS coordinates are missing are placed at the end of the list.

branchgetApiV1BranchList

Parametry

4 w query

Parametry query

· 4
apiKeystringWymagane

Your BizKitHub API key (passed as GET parameter).

Key format: A 32-character string matching: ^(PROD|DEV_|ROOT)[A-Za-z0-9]{28}$
Prefixes: PROD (production key), DEV_ (individual developer), ROOT (system key with no limits). Learn more

PrzykładPRODPGrFxpGEtrOZfuWhnoJohUYBXuOE
pagestringOpcjonalne

Page number (starting from 1).

Domyślnie: 1
Przykład1
latitudenumberOpcjonalne

Reference GPS latitude. When provided together with longitude, branches are ordered by great-circle distance from this point (ascending) and each item carries a distanceKm field. Branches without GPS coordinates are placed last.

Zakres: -90–90
Przykład50.0755
longitudenumberOpcjonalne

Reference GPS longitude. Must be passed together with latitude — providing just one of the two is rejected.

Zakres: -180–180
Przykład14.4378

Schemat odpowiedzi

1 udokumentowany kod statusu

200Sukces
itemsobject[]Wymagane
Każdy element tablicy:
idstringWymagane

Branch slug (used as identifier in /detail).

Przykładprague-central
slugstringWymagane

URL-safe unique branch slug.

Przykładprague-central
namestringWymagane

Branch display name.

PrzykładPrague Central
descriptionstringOpcjonalne

Short branch description.

urlstringOpcjonalne

Public branch URL.

latitudenumberOpcjonalne

Branch GPS latitude.

Przykład50.0755
longitudenumberOpcjonalne

Branch GPS longitude.

Przykład14.4378
mainPhotoUrlstringOpcjonalne

URL of the main public photo.

addressSummarystringOpcjonalne

Short rendered address (street, ZIP, city).

PrzykładHlavní 1, 110 00, Praha
branchType"own" | "franchise" | "partner"Wymagane

Branch kind. Defaults to "own" for historical rows.

Przykładown
distanceKmnumberOpcjonalne

Great-circle distance from the reference GPS point in kilometres. Present only when both latitude and longitude query parameters are provided and the branch has GPS coordinates filled in.

Przykład3.42
itemCountnumberWymagane

Total number of active branches.

Przykład12

Przykład odpowiedzi

application/json
{
  "items": [
    {
      "id": "prague-central",
      "slug": "prague-central",
      "name": "Prague Central",
      "description": "example_description",
      "url": "example_url",
      "latitude": 50.0755,
      "longitude": 14.4378,
      "mainPhotoUrl": "example_mainPhotoUrl",
      "addressSummary": "Hlavní 1, 110 00, Praha",
      "branchType": "own",
      "distanceKm": 3.42
    }
  ],
  "itemCount": 12
}

Przykład żądania

GET /api/v1/branch/list

get
curl -X GET "https://api.bizkithub.com/api/v1/branch/list?apiKey=PRODPGrFxpGEtrOZfuWhnoJohUYBXuOE&page=1&latitude=50.0755&longitude=14.4378" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY"

Potrzebujesz klucza API?

Wszystkie publiczne endpointy BizKitHub API uwierzytelniają się kluczem API.

Uzyskaj klucz API