There is a pretty nice plugin here that might be able to do what you are looking for: http://miohtama.github.io/bitcoin-prices/index.html
The prices are actually being pulled from https://bitcoinaverage.com/
I think the MTGot API could work as well (as mentioned above) - but the price could be a bit off when the customer goes to checkout.