Spoke too soon, found it. I’ll add it to this post, but you can query the query itself and it returns a JSON document with the latest result ID number.
Start with a query like this:
And grab this attribute from the data returned.
So you’ll need two queries to make this happen but you’ll have the latest ID so you can get the most accurate query.