dynamic API query conditions finished