Template for querying another endpoint