Get max y tick on the y axis of a graph

Screenshot 2020-11-03 145437

I basically want to get the max tick of this graph (900) that plotly automatically generates. I tried fig.layout.yaxis but all it returned was the nticks I have set. Is there a way to get a list of the ticks to obtain a max value?