I'm not super keen of API paths being in the code they're being used. I would prefer either this kind of thing is grouped into a separate class, or at the very least the format strings are put into constants, so when they change they can all be changed in one place without having to search the code.