Using node.pp as API

Hello,

when i run node.pp from master or capsule, it generate some yaml with all
the key=value, i want to use this node.pp in my other other scripts as API
for getting values for host, is there any option i can use it as API ? or
run in my own scripts ?

Regards,
DJ