Does anyone convert this code to API? I am trying to do it, but I am not getting anywhere. It would be helpful if anyone did that.