Need an API to convert Pinyin to Simplified Chinese characters I need a tool that is like Google's transliterate that will convert Pinyin to Chinese Character. It works like this:

http://shawnwow.com/chineseCharacterHelpr/transliterateTest.htm

But since it is discontinued there isn't much of an API.

An alternative I found early on was this:

http://yuhanz.github.io/chinese-ime.html

But that also didn't have much flexibility to its layout. It was made by a guy over the weekend while he was super kind he doesn't provide support.

Basically what I am looking for is the ability to grab the characters and display them how I want instead of in the box they provide. If you delete transliterateTest.htm from the URL of the first (limited to 2 URLs) and you type a Chinese character and click hint you will have a stronger idea of what I am looking for. What I need is to click a character and have the IME reset and do it all again. I tried to hack at this one but the functionality of the IME is acting funky.

What I would love is one that just goes out and grabs a Character array based on the JSON and gives me complete control on how I want to parse through the array. So far this site is entirely in JavaScript and while we will be getting Python later on I am only helping with the JavaScript phase.

I was asking on the stackoverflow (tech site) but I saw someone asking about Chinese to pinyin translation and having moderate luck.

Disclaimer: I do not speak Chinese. This is for my University's Masters project.
Based on Google  transliteration API:
https://www.google.com/intl/en/inputtools/services/features/transliteration.html

You can use http request "https://www.google.com/inputtools/request?ime=pinyin&amp;ie=utf-8&amp;oe=utf-8&amp;app=translate&amp;num=10&amp;text=wozaixuezhongwen" to convert text "wozaixuezhongwen" to "我在学中文" (I am learning Chinese)

so you can use any language (Python, JavaScript, Java, ...) to send the http request and read the response, and build you own application flexibility.