split up get_by_tag API