API for KDD