API for web applications