Add a latest replay URL

0

Currently you can get replays from FAF with a URL as such:

https://replay.faforever.com/18645999

It would be good if a URL that downloaded the highest number avalable replay like

https://replay.faforever.com/latest

was implemented

This should not be a hard feature to add

Something with some more utility and harder to add would be the ability to download all replays based on a date played example

https://replay.faforever.com/2022/12/05

3

No it would not be good to add logic to this endpoint. Nobody is supposed to filter on the replay.faforever.com domain.
Just (learn to) use our api instead.

https://api.faforever.com/data/game?filter=replayAvailable==true&sort=-id&page[limit]=1 gives you the latest present replay in the replayUrl field.

"Nerds have a really complicated relationship with change: Change is awesome when WE'RE the ones doing it. As soon as change is coming from outside of us it becomes untrustworthy and it threatens what we think of is the familiar."
ā€“ Benno Rice

0

I am getting service unavalable for the API. Is the API down or have I been too much "API learning" to be IP banned?

0

API was down

"Nerds have a really complicated relationship with change: Change is awesome when WE'RE the ones doing it. As soon as change is coming from outside of us it becomes untrustworthy and it threatens what we think of is the familiar."
ā€“ Benno Rice

0

Lmao

My github repo with UI Mods