looking for faucet API so i could use it for tests - Automated faucet
Use regtest, the regression testing network, not testnet. Results using it are reliable and repeatable,  most importantly don’t rely on the will of others.