Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Info Akun Videro</title>
- </head>
- <body>
- <h1>Data Akun Videro</h1>
- <pre id="data-json" style="background: #f4f4f4; padding: 15px; border-radius: 5px;"></pre>
- <script>
- // URL API dengan key
- const apiUrl = 'https://videro.my/api/v1/account/info?key=ccee541b-7a8e-4ab8-9c77-9a9d1f79cc68';
- // Ambil data dari API
- fetch(apiUrl)
- .then(response => response.json()) // Ubah response ke JSON
- .then(data => {
- // Tampilkan JSON yang diformat di elemen <pre>
- document.getElementById('data-json').textContent = JSON.stringify(data, null, 2);
- })
- .catch(error => {
- // Tampilkan error jika ada
- document.getElementById('data-json').textContent = 'failed load API memuat data: ' + error;
- });
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment