What is the difference between an SPV wallet and an API wallet?
SPV wallet: only download block headers from blockchain network, it's kind of lightweight node, SPV wallet is able to verify the TX with Merkel branch that from full node.

There are lots of SPV wallet implementation at Github with different coding language, you can go and check it.