That's not something available through the published API
Endpoint for last years rating.
Assuming games are kept that long, you could potentially pull a game from last year and see what the players' ratings were. The PGN headers have both the White/Black player names but their ELO ratings as well.

Assuming games are kept that long, you could potentially pull a game from last year and see what the players' ratings were. The PGN headers have both the White/Black player names but their ELO ratings as well.
All games are kept forever so, yes, you can get a players ELO from the PGN's. See https://hyper-dragon.github.io/ChessStats/ for an example of ELO scores by month.
In the API is there an end point that shows the user's last years rating? For example in chess.com it shows this how can i get last years rating or even just rating gain over the last year.