# Google translation api

**URL:** <https://community.thunkable.com/t/google-translation-api/1289445>\
**Category:** Questions about Thunkable X\
**Tags:** share\
**Created:** [May 17, 2021, 4:30pm UTC](https://community.thunkable.com/t/google-translation-api/1289445 "2021-05-17T16:30:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tony.ycy.program](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tony.ycy.program/32/100153_2.png) [@tony.ycy.program](https://community.thunkable.com/u/tony.ycy.program)\
**Post date:** [May 17, 2021, 4:30pm UTC](https://community.thunkable.com/t/google-translation-api/1289445/1 "2021-05-17T16:30:40Z")

</div>

[http://translate.google.cn/translate\_a/single?client=gtx&dt=t&dj=1&ie=UTF-8&sl=auto&tl=en\_US&q=你好嗎](http://translate.google.cn/translate_a/single?client=gtx&dt=t&dj=1&ie=UTF-8&sl=auto&tl=en_US&q=%E4%BD%A0%E5%A5%BD%E5%97%8E)  
你好嗎 to How are you  
sl= original Language  
tl= Translated language  
Get JSON

 ![圖片](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/4/6439b270571446981ffef762b64e5119f187f5e6.jpeg)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [May 17, 2021, 6:02pm UTC](https://community.thunkable.com/t/google-translation-api/1289445/2 "2021-05-17T18:02:13Z")

</div>

Hi @tony.ycy.program, are you just sharing how to do something or do you have a question?

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/b/1be2259feadce549acba8a2dbedf90f129653167.png)

Your blocks aren’t going to work because the “sentences” property is a list (known as a JSON array). You need to get the first list item of “sentences” and then get the “trans” property from that.

When you see [1], that means there is a single array item. That item doesn’t have a property name “0”… that’s just a list index. It counts up from 0… 1… 2… etc.

A shortcut is to get the property name “sentences[1].trans” from the JSON object. [See this](https://community.thunkable.com/t/api-json-tutorial-video/1140575/15).

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 1:22pm UTC](https://community.thunkable.com/t/google-translation-api/1289445/3 "2024-11-08T13:22:28Z")

</div>


