Can I send a request to the API for stats on multiple nodes at once?

AFAIK, the stats API (https://stats.allstarlink.org/api/stats/{node}) currently only allows to query for a single node at a time. In an effort to be respectful of the rate limits (30 requests per minute... which is very generous :heart:), I would like to be able to query a list of nodes at once.

Example request:
https:// stats.allstarlink.org/api/stats/499601,65017,508064

Example response:
An array of the stats object, one item per requested node.

[
  {
    "stats": {
      "id": 2854,
      "node": 499601,
      ...
  },
  {
    "stats": {
      "id": 2854,
      "node": 65017,
      ...
  },
  {
    "stats": {
      "id": 2854,
      "node": 508064,
      ...
  },
]

Does such a thing exist? If not, could I help to add that feature?

There's a stack of stuff on the list to fix on the server-side. We're in the middle of a huge upgrade to the server infrastructure and then we're going to start looking at back-end features. I'll add this to the list and let you know when we're ready to look into stuff like this.

1 Like

Sounds good. If I can be of any help, please let me know.

Credentials: Github, LinkedIn

1 Like

Any deep PHP + Laravel experience?

Lots of PHP experience, though I haven't used Laravel. I've been primarily .Net (dotnet core, .Net Framework, C#, VB.Net, etc) through my career. Although I'm comfortable saying I'm an expert in all things client-side: JavaScript, HTML, CSS, etc.