You can reimplement a compatible API in a different language that would share no code. This would be a clone, not a copy, as no work from the original author was used. The real issue here is if an API is just an interface, or could be considered code itself.
(IMHO, it's an interface, like a power socket or a light switch. You make it fit, and then it works.)