Querying functionality for all endpoints