REST Api for server?

Got a Glitch? Always Lagging? Need help with anything technical? Want to move off Windows XP?
Post Reply
macintoxicated
Posts: 53
Joined: Sun Nov 14, 2021 7:46 pm

REST Api for server?

Post by macintoxicated »

I'm interested in creating a simple REST API with a basic endpoint like `/currentmatch` which returns a JSON object of the current map, number of players, minutes played, and ISO time started.

Basically, the most recent row on this table on the stats page

Code: Select all

| Date & Time                  | Match Type | Map                                 | Players | Duration  |
|-----------------------------|------------|-------------------------------------|---------|-----------|
| Tue, Jun 03 2025, 9:14:25 PM| Onslaught  | ONS-Tyrant-)o(-Renovation-V2        | 19      | 20m 02s   |
Is there a recommended way to query the server directly for these values? or should I scrape this page for that row's values?
https://www.omnipotents.com/utstats2/se ... p?server=1

I would host the API using AWS free tier, and then it to do things like send a push notification to myself when the map name contains Torlan, etc.
macintoxicated
Posts: 53
Joined: Sun Nov 14, 2021 7:46 pm

Re: REST Api for server?

Post by macintoxicated »

Maybe I would use Gamedig?
https://github.com/gamedig/node-gamedig
macintoxicated
Posts: 53
Joined: Sun Nov 14, 2021 7:46 pm

Re: REST Api for server?

Post by macintoxicated »

Post Reply