query api modified