just left one api for query