fixed URL and indentation

V0 of the API is deprecated but apparently still works, provided you use the correct url: I've fixed that in the first commit.

Second commit fixed indentation, which mixed tabs with spaces (tabs are correct).