One structure
GET /api/v1/structures/{id}
https://app.tanba-ooh.kz/api/v1/structures/{id}
Технический текст справочника написан на английском.
Scope read:structures.
Аутентификация
Ключ API в заголовке Authorization или сессия консоли.
Право доступа: read:structures
Параметры
| Имя | Где | Тип | Обязательный | Описание | Пример |
|---|---|---|---|---|---|
id | путь | string (uuid) | да | Identifier of the structure. | b7e4a2c9-0d1f-4a68-8e35-91c7f2d40b16 |
Ответы
200 The structure.
application/json
Structure
| Имя | Тип | Обязательный | Описание | Пример |
|---|---|---|---|---|
id | string (uuid) | да | Identifier of the structure. | "b7e4a2c9-0d1f-4a68-8e35-91c7f2d40b16" |
org_id | string (uuid) | да | Identifier of the operating organisation. | "3a9d5e71-c4b2-4f08-b6d3-e8a1070c5f92" |
org_name | string | Name of the operating organisation. | "Alma Outdoor LLP" | |
code | string | да | Код конструкции, напечатанный на наклейке. | "ALM-0012" |
unos_id | string | null | Identifier of the structure in the external register; null if it has none. | "A-004711" | |
address | string | да | Street address. | "Al-Farabi Ave 77/7" |
district_id | string | да | Code of the district. | "bostandyk" |
format_id | string | да | Code of the format. | "cityboard" |
lat | number | да | Latitude in degrees. | 43.2186 |
lng | number | да | Longitude in degrees. | 76.9279 |
class | string | да | Class of the structure. A, B, C | |
status | string | да | Whether the structure is in use. active, decommissioned | |
screen_width_px | integer | null | Native screen width. Set together with the height; the media check compares uploads with it. | 1920 | |
screen_height_px | integer | null | Native screen height. | 1080 | |
slot_seconds | integer | null | Longest video the structure plays in one slot. Longer videos fail the slot check. | 10 | |
venue_type_id | integer | null | Venue 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_seconds | integer | null | Length in seconds of one full loop of the screen, as set by the operator. Null while unknown. | 60 | |
face_area_m2 | number | null | Area of the advertising face in square metres. Null while unknown. | 22.5 | |
screen_count | integer | Number of screens on the structure. | 2 | |
height_m | number | null | Height of the face above the ground in metres. Null while unknown. | 6.5 | |
azimuth_deg | integer | null | Compass direction the face looks to, in degrees from north. Null while unknown. | 270 | |
operating_from | string | null | Time the screen starts each day (Asia/Almaty). Null while unknown. | "06:00" | |
operating_to | string | null | Time the screen stops; it may be earlier than the start when the hours cross midnight. | "01:00" | |
created_at | string | да | When the structure was registered. | "2026-03-12T10:15:00+05:00" |
updated_at | string | When 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.
| Статус | Значение |
|---|---|
| 401 | Нет действительной сессии или ключа API (unauthenticated, session_expired, invalid_api_key). |
| 403 | Роль или право ключа этого не допускает (forbidden, key_scope_denied, key_route_denied). |
| 404 | Ничего нет или вызывающему это не видно. |
| default | Ошибка в виде документа problem. |
Примеры кода
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))
}