smarter apikey detection from URL.