connect import to its api