Fixed API

Ugh. API could be used without an apikey, but if an apikey was supplied it
was checked.