query api

add query api