API 2.0 and example script for response printing