API populates the index