diff --git a/index.html b/index.html
index f7d1dc1..4bbba0b 100644
--- a/index.html
+++ b/index.html
@@ -7,5 +7,8 @@
-
+
+
+
+
\ No newline at end of file
diff --git a/js/main.js b/js/main.js
index 81f5993..cc1fb4d 100644
--- a/js/main.js
+++ b/js/main.js
@@ -25,10 +25,39 @@ function createAgent(faction, symbol){
$(document).ready(function() {
-let agent = createAgent("COSMIC","Fewsgereb55");
+//Let agent = createAgent("COSMIC","agent_bryte");
})
// ------------------- Get Agent -------------------
+// ------------------- List Agent (Leaderboard) -------------------
+
+
+
+
+function listAgent(page, limit){
+ const settings = {
+ async: true,
+ crossDomain: true,
+ url: 'https://api.spacetraders.io/v2/agents',
+ method: 'GET',
+ headers: {
+ Accept: 'application/json'
+ },
+ data : {
+ page: page,
+ limit: limit
+ }
+ };
+
+ $.ajax(settings).done(function (response) {
+ console.log(response);
+ });
+}
+
+$(document).ready(function() {
+ let leaderboard = listAgent("374", "1");
+})
+
\ No newline at end of file