changes www to api