I tried this thread but it answered only with Pinyin suggestions, and not IPA.
You are unlikely to find such a resource. For languages that already have an unambiguous standard notation for pronunciation (which pinyin is), it's uncommon to find dictionaries that indicate pronunciation in IPA. Heck, it's even hard to find dictionaries with IPA for languages with incredibly complex orthography/pronunciation mappings!
Instead, as the comments on your question suggest, you should find a resource that provides pinyin to IPA mappings, and then you can mechanically derive IPA from pinyin if you so desire.
Edit: Thanks for @StumpyJoePete's pointing out.
IPA could be applied to all languages, including Chinese. But it's hard to replace Pinyin.
And the Pinyin is originally designed to replace Chinese Hanzi.(Obviously, it failed.) And I found a Quora- like post (in Chinese) to comparing IPA with Pinyin. Very helpful to clarify IPA vs Pinyin.
But the conclusion is same: It's hard to find a Chinese dictionary supply IPA.
Another helpful post(also in Chinese) to compare Pinyin and Wade–Giles system(also known as Wade's pinyin in China)
Assume IPA stand for International Phonetic Alphabet.
It's less likely that you could find a Chinese dictionary supply IPA. Because the system is not the same.
IPA is an alphabetic system of phonetic notation based on Latin alphabet. It works perfectly for Latin-like languages.
However, Chinese is not one of Latin language family. So IPA might not work in the Chinese system. That's why we invented pinyin system.
Here's a IPA for Mandarin for helping.
But it note: "See Standard Chinese phonology for more detail on the sounds of the language." And "English equivalents given in this page may represent only loose approximations to the original pronunciations."
No. And there should not be.
IPA is used to study languages, including Chinese languages. Linguists use it in intensive study of regional differences in pronunciation in China, and for detailed study of exactly how each standard Hanyu pinyin syllable is meant to sound and how it is to be produced in the mouth (tongue and jaw positions etc). These are complex questions and linguists do not entirely agree about any of them. The best comprehensive source I know for that is Lin Sounds of Chinese.
IPA is far too elaborate to use in a practical dictionary. And there is too little consensus about the exact details of either the descriptive or prescriptive phonology of Chinese to make any IPA dictionary widely acceptable to linguists.
The right tool for the job of teaching practical modern Mandarin pronunciation to students, is precisely Hanyu Pinyin.
Wiktionary supplies IPA pronunciation for a wide variety of dialects, both ancient and modern, including tone numbers. It’s automatically generated from the pinyin.
Yes, I answered in another answer: What kind of resources should a beginner look for to help with similarly pronounced words?
https://github.com/open-dict-data/ipa-dict You may download the .dz file to be used in the open sourced program GoldenDict