link api fucntions.