API archive website

Hi ,
i need to make simple api .
i will send site to be archived and i need webrecorder to archive it so is it possible and how ?