Change to using API url. Pull request #112