parameterized api port