Originally Posted by
Garimi
does anyone manage to use wheretocredit api
I have excel whit all my future flights and I want to develop VBA function to get count of miles which I can have on booking....
but api doc on wheretocredit is very poor and I don't have clue what to do
I think what for 12 api request/sec I don't need api key....
but any idea how to get miles for routing like this:
https://www.wheretocredit.com/calcul...K/SFO-SYD-UA-K
I can just make app to get this page and extract data from response but this is hard way to get data

Hi, thanks for taking an interest. Please check out
https://www.wheretocredit.com/api/docs for API documentation. We also provide a swagger/OpenAPI spec if that's easier to understand
For your particular routing, you're looking for:
- Select API version: V2
- /api/2.0/calculate
- "Try it out"
- Paste the following into the body:
[{
"segments": [{
"origin": "LHR",
"destination": "SFO",
"carrier": "UA",
"bookingClass": "K",
"isValid": "K"
}, {
"origin": "SFO",
"destination": "SYD",
"carrier": "UA",
"bookingClass": "K",
"isValid": "K"
}]}]
- Then click Execute
Hope this helps