entry query api