It already is. There is a public API available to pull server data. I used to have a stats page on my website showing active player counts before they disabled the old API due to bandwidth issues.

You can use the new method found here I think: FiveM Web API Rate Limit - #2 by vanadium