Api functionality

Let me know your comments!