API for Dig queries