Uber has an API, but I looked into Uber's TOU a week a two ago and they explicitly disallowed this sort of thing (comparison shopping). Maybe it's just an estimate?
This is probably just violating the TOU. As a consumer, I think lack of comparison shopping is absolutely the worst thing about lyft/uber, and that they should be required to publish pricing data in a manner accessible to this sort of thing, just like taxis are required to use certified meters and post rates on their doors.