You can use fetch. FiveM Server has api with player list and server data.
URL’s:
http://ip:port/dynamic.json - this json returning minimal data (server name, players, max players etc.)
http://ip:port/players.json - this json returning players with info (nick, ping, identifiers etc.)
http://ip:port/info.json - this json returning server data from fivem list (tags, logo etc.)