api get intervalle