UZBEKBOR yangiliklar API si haqida to'liq ma'lumot
https://teleneo.ru/api.php
Bu API Kun.uz saytidan so'nggi yangiliklarni olib keladi.
Method: GET
Format: JSON
{
"status": true,
"count": 15,
"news": [
{
"title": "Yangilik sarlavhasi",
"time": "22:14 / 20.04.2026",
"image": "https://storage.kun.uz/...",
"url": "https://kun.uz/news/...",
"dev": "t.me/UZBEKBOR"
}
],
"dev": "t.me/UZBEKBOR"
}
| Maydon | Tavsif | Tur |
|---|---|---|
status |
So'rov holati (true - muvaffaqiyatli) | Boolean |
count |
Yangiliklar soni | Integer |
news |
Yangiliklar massivi | Array |
title |
Yangilik sarlavhasi | String |
time |
Yangilik vaqti (soat / sana) | String |
image |
Rasm URL manzili | String |
url |
Kun.uz dagi to'liq sahifa manzili | String |
dev |
Telegram kanal manzili | String |
<?php
$apiUrl = 'https://teleneo.ru/api.php';
$response = file_get_contents($apiUrl);
$data = json_decode($response, true);
if ($data['status'] === true) {
foreach ($data['news'] as $news) {
echo $news['title'] . "\n";
}
}
?>
fetch('https://teleneo.ru/api.php')
.then(response => response.json())
.then(data => {
if (data.status) {
data.news.forEach(news => {
console.log(news.title);
});
}
});