Currently I am importing it from a website, but when the website goes down it messes up everything for me. I need this for other coins than bitcoins so there really are not a lot of good stable sites to grab the difficulty level from.
If you weren't aware, from the Bitcoin-Qt/bitcoind client there is getdifficulty API call:
-
http://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list#Full_listOther clients might have similar capability.