API: Rewrite ApiQueryTags to fix continuation