normalizing api urls