Open data page (served at /open on the verify host)
GET /v1/open
https://verify.tanba-ooh.kz/v1/open
Анықтамалықтың техникалық мәтіні ағылшын тілінде жазылған.
The HTML page of the open data releases in Kazakh, Russian and English (?lang=) with links to the CSV and JSON files, the data dictionary, the licence note and the way to check the digest. While publication is switched off it answers 404 with the code not_published.
Аутентификация
Қажет емес. Шақыру ашық.
Жауаптар
200 The page.
text/html
Қателер
Қателер problem құжаты (application/problem+json) түрінде, тұрақты code өрісімен келеді.
| Мәртебесі | Мағынасы |
|---|---|
| 404 | Open data is switched off (not_published), or the month or file is not published or does not exist (not_found). |
| 429 | Rate limit; see Retry-After. |
Код мысалдары
curl
curl 'https://verify.tanba-ooh.kz/v1/open'
Python
import requests
response = requests.get(
"https://verify.tanba-ooh.kz/v1/open",
)
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/open", nil)
if err != nil {
panic(err)
}
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))
}