Add getDuration to API node.