Retrieving state from grid

Hello

I’m looking to retrieve the state of the grid with current filters, pagination, search terms, etc. Is this possible and how would I go about it.