The activity in question
To the extent that APIs are like languages, they get little to no protection as lists of words; the language/API distinction doesn't matter here. Devs can write parsers for languages and implement the behaviour of functions to provide compatibility without copying source code. This is common practice, but not the 'activity in question'.