fixed inconsistent naming convention and incorrect API url