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

Structure sticker page

GET /v1/structure/{code}

https://verify.tanba-ooh.kz/v1/structure/{code}

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

What a printed sticker opens (/s/{code} on the verify host). The structure, its operator and the approvals in force on it now; no personal data. Send Accept of application/json for JSON.

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

Қажет емес. Шақыру ашық.

Параметрлер

АтауыОрныТүріМіндеттіСипаттамаМысал
codeжолstringиәStructure code printed on the sticker.ALM-0012

Жауаптар

200 The structure and its approvals in force.

application/json

PublicStructure

АтауыТүріМіндеттіСипаттамаМысал
structureobjectиәThe structure the sticker belongs to.
structure.codestringиәStructure code printed on the sticker."ALM-0012"
structure.formatobjectиәName of the structure format in each language.
structure.format.kkstringиәThe text in Kazakh."Ситиборд"
structure.format.rustringиәThe text in Russian."Ситиборд 3,7x2,7"
structure.format.enstringиәThe text in English."City board 3.7x2.7"
structure.districtobjectиәName of the district in each language.
structure.district.kkstringиәThe text in Kazakh."Ситиборд"
structure.district.rustringиәThe text in Russian."Ситиборд 3,7x2,7"
structure.district.enstringиәThe text in English."City board 3.7x2.7"
structure.operatorstringиәName of the operating organisation."Alma Outdoor LLP"
approvalsarray of objectиәApprovals in force on the structure now.
approvals[].numberstringиәApproval number."TNB-2026-000123"
approvals[].statusstringиәState of the approval. active, expiring
approvals[].valid_fromstring (date)иәFirst day the approval is in force."2026-10-01"
approvals[].valid_untilstring (date)иәLast day the approval is in force."2026-12-31"
approvals[].regulationobjectиәThe regulation the approval was issued under.

Мысал

{
  "structure": {
    "code": "ALM-0012",
    "format": {
      "kk": "Ситиборд",
      "ru": "Ситиборд 3,7x2,7",
      "en": "City board 3.7x2.7"
    },
    "district": {
      "kk": "Ситиборд",
      "ru": "Ситиборд 3,7x2,7",
      "en": "City board 3.7x2.7"
    },
    "operator": "Alma Outdoor LLP"
  },
  "approvals": [
    {
      "number": "TNB-2026-000123",
      "status": "active",
      "valid_from": "2026-10-01",
      "valid_until": "2026-12-31",
      "regulation": {}
    }
  ]
}

text/html

Қателер

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

МәртебесіМағынасы
404Not a known structure code (the same answer as an unknown approval number).
429Rate limit; see Retry-After.

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

curl

curl 'https://verify.tanba-ooh.kz/v1/structure/ALM-0012' \
  -H 'Accept: application/json'
Python
import requests

response = requests.get(
    "https://verify.tanba-ooh.kz/v1/structure/ALM-0012",
    headers={
        "Accept": "application/json",
    },
)
print(response.status_code, response.text)
Go
package main

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

func main() {
	req, err := http.NewRequest("GET", "https://verify.tanba-ooh.kz/v1/structure/ALM-0012", nil)
	if err != nil {
		panic(err)
	}
	req.Header.Set("Accept", "application/json")
	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))
}