TAŇBA-OOH Әзірлеушілерге

One structure

GET /api/v1/structures/{id}

https://app.tanba-ooh.kz/api/v1/structures/{id}

Анықтамалықтың техникалық мәтіні ағылшын тілінде жазылған.

Scope read:structures.

Аутентификация

Authorization тақырыбындағы API кілті немесе консоль сеансы.

Рұқсат: read:structures

Параметрлер

АтауыОрныТүріМіндеттіСипаттамаМысал
idжолstring (uuid)иәIdentifier of the structure.b7e4a2c9-0d1f-4a68-8e35-91c7f2d40b16

Жауаптар

200 The structure.

application/json

Structure

АтауыТүріМіндеттіСипаттамаМысал
idstring (uuid)иәIdentifier of the structure."b7e4a2c9-0d1f-4a68-8e35-91c7f2d40b16"
org_idstring (uuid)иәIdentifier of the operating organisation."3a9d5e71-c4b2-4f08-b6d3-e8a1070c5f92"
org_namestringName of the operating organisation."Alma Outdoor LLP"
codestringиәStructure code printed on the sticker."ALM-0012"
unos_idstring | nullIdentifier of the structure in the external register; null if it has none."A-004711"
addressstringиәStreet address."Al-Farabi Ave 77/7"
district_idstringиәCode of the district."bostandyk"
format_idstringиәCode of the format."cityboard"
latnumberиәLatitude in degrees.43.2186
lngnumberиәLongitude in degrees.76.9279
classstringиәClass of the structure. A, B, C
statusstringиәWhether the structure is in use. active, decommissioned
screen_width_pxinteger | nullNative screen width. Set together with the height; the media check compares uploads with it.1920
screen_height_pxinteger | nullNative screen height.1080
slot_secondsinteger | nullLongest video the structure plays in one slot. Longer videos fail the slot check.10
venue_type_idinteger | nullVenue type of the structure in the OpenOOH venue taxonomy 1.2 (for example 302 for an urban panel). Null while the operator has not set one; market figures then use the default venue type of the format.302
loop_secondsinteger | nullLength in seconds of one full loop of the screen, as set by the operator. Null while unknown.60
face_area_m2number | nullArea of the advertising face in square metres. Null while unknown.22.5
screen_countintegerNumber of screens on the structure.2
height_mnumber | nullHeight of the face above the ground in metres. Null while unknown.6.5
azimuth_deginteger | nullCompass direction the face looks to, in degrees from north. Null while unknown.270
operating_fromstring | nullTime the screen starts each day (Asia/Almaty). Null while unknown."06:00"
operating_tostring | nullTime the screen stops; it may be earlier than the start when the hours cross midnight."01:00"
created_atstringиәWhen the structure was registered."2026-03-12T10:15:00+05:00"
updated_atstringWhen the structure was last changed."2026-09-30T16:40:12+05:00"

Мысал

{
  "id": "b7e4a2c9-0d1f-4a68-8e35-91c7f2d40b16",
  "org_id": "3a9d5e71-c4b2-4f08-b6d3-e8a1070c5f92",
  "org_name": "Alma Outdoor LLP",
  "code": "ALM-0012",
  "unos_id": "A-004711",
  "address": "Al-Farabi Ave 77/7",
  "district_id": "bostandyk",
  "format_id": "cityboard",
  "lat": 43.2186,
  "lng": 76.9279,
  "class": "A",
  "status": "active",
  "screen_width_px": 1920,
  "screen_height_px": 1080,
  "slot_seconds": 10,
  "venue_type_id": 302,
  "loop_seconds": 60,
  "face_area_m2": 22.5,
  "screen_count": 2,
  "height_m": 6.5,
  "azimuth_deg": 270,
  "operating_from": "06:00",
  "operating_to": "01:00",
  "created_at": "2026-03-12T10:15:00+05:00",
  "updated_at": "2026-09-30T16:40:12+05:00"
}

Қателер

Қателер problem құжаты (application/problem+json) түрінде, тұрақты code өрісімен келеді.

МәртебесіМағынасы
401No valid session or API key (unauthenticated, session_expired, invalid_api_key).
403The role or the key's scope does not allow this (forbidden, key_scope_denied, key_route_denied).
404Nothing there, or not visible to the caller.
defaultAn error as a problem document.

Код мысалдары

curl

curl 'https://app.tanba-ooh.kz/api/v1/structures/b7e4a2c9-0d1f-4a68-8e35-91c7f2d40b16' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Python
import requests

response = requests.get(
    "https://app.tanba-ooh.kz/api/v1/structures/b7e4a2c9-0d1f-4a68-8e35-91c7f2d40b16",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
    },
)
print(response.status_code, response.text)
Go
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	req, err := http.NewRequest("GET", "https://app.tanba-ooh.kz/api/v1/structures/b7e4a2c9-0d1f-4a68-8e35-91c7f2d40b16", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Authorization", "Bearer YOUR_API_KEY")
	resp, err := http.DefaultClient.Do(req)
	if err != nil {
		panic(err)
	}
	defer resp.Body.Close()
	data, _ := io.ReadAll(resp.Body)
	fmt.Println(resp.Status, string(data))
}