API actions in HTML content