Name.com have a JSON API for resellers that you must apply to use: https://www.name.com/reseller
Gandi have an XML-RPC based API too (and has some decent code examples): http://doc.rpc.gandi.net/
Gandi have an XML-RPC based API too (and has some decent code examples): http://doc.rpc.gandi.net/