You realize this is basically the same as the NP-Hard Knapsack problem?
I think it would be very useful if these shipping API's accepted package specifications and helped optimize final packaging while in the process of providing a quote. If you want to talk about differentiating a solution, this, most definitely, would.
I'm not aware of any public APIs for this at present.