Update api.php

Fixes issue with incorrect number of linkshell members being parsed, discovered in issue #21