Yes thetvdb has a api. But like i said before: You can't use the APIKEY with the current magic script engine (missing functions). That was more a suggestion for the future.
And with thetvdb.com the Application Programmer must register/request the APIKEY not the user.
That site has many rules to request and use a APIKEY. Too many rules and too restrictive rules if you ask me.