Calculator Tools Calculator Tools
Create

Trending YouTube Niches

Oct 5, 2023

About this app

Discover the trending YouTube niches in real-time. Find the most popular topics that are currently gaining traction on YouTube.

Trending YouTube Niches Trending YouTube Niches

Related apps

Put this on your site

Source

                    <html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1">

<title>Trending YouTube Niches</title>
<meta name="description" content="Discover the trending YouTube niches in real-time. Find the most popular topics that are currently gaining traction on YouTube.">
<meta name="keywords" content="trending niches, popular niches, YouTube niches, real-time, popular topics, YouTube trends">

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700" rel="stylesheet">

<script type="text/javascript">
try {
// App Javascript Goes Here. Place your entire script content inside the try block for error handling.

// This will run when the DOM is ready.
document.addEventListener("DOMContentLoaded", function() {
// Function to fetch trending YouTube niches in real-time
function fetchTrendingNiches() {
// API endpoint to fetch trending niches
const apiUrl = 'https://api.trendingniches.com/trending';

// Make an AJAX request to the API
$.ajax({
url: apiUrl,
type: 'GET',
dataType: 'json',
success: function(response) {
// Check if the response is successful
if (response && response.data) {
const trendingNiches = response.data;

// Display the trending niches on the page
const nichesContainer = $('#trending-niches');
nichesContainer.empty();

trendingNiches.forEach(function(niche) {
const nicheElement = $('<div>').addClass('niche-item');
const nicheName = $('<span>').addClass('niche-name').text(niche.name);
const nicheCount = $('<span>').addClass('niche-count').text(niche.count);

nicheElement.append(nicheName);
nicheElement.append(nicheCount);

nichesContainer.append(nicheElement);
});
} else {
// Handle error response
console.error('Failed to fetch trending niches.');
}
},
error: function() {
// Handle error response
console.error('Failed to fetch trending niches.');
}
});
}

// Call the function to fetch trending niches
fetchTrendingNiches();

});

} catch (error) {
// This will throw the error to the parent window.
throw error;
}
</script>

<style>
/* App CSS Goes Here */
body {
font-family: 'Roboto', sans-serif;
background-color: #f5f5f5;
}

.container {
max-width: 600px;
margin: 0 auto;
padding: 20px;
}

h1 {
text-align: center;
margin-bottom: 30px;
color: #333;
}

.niche-item {
display: flex;
align-items: center;
justify-content: space-between;
padding: 10px;
background-color: #fff;
border-radius: 6px;
margin-bottom: 10px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.niche-name {
font-weight: 700;
}

.niche-count {
color: #888;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Trending YouTube Niches</h1>

<div id="trending-niches">
<!-- Trending niches will be dynamically added here -->
</div>
</div>
</body>
</html>