# Unix Timestamp Converter REST API v1

**URL:** <https://community.thunkable.com/t/unix-timestamp-converter-rest-api-v1/1832330>\
**Category:** Questions about Thunkable X\
**Tags:** webapi\
**Created:** [April 14, 2022, 2:06am UTC](https://community.thunkable.com/t/unix-timestamp-converter-rest-api-v1/1832330 "2022-04-14T02:06:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![danielavelino](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@danielavelino](https://community.thunkable.com/u/danielavelino)\
**Post date:** [April 14, 2022, 2:06am UTC](https://community.thunkable.com/t/unix-timestamp-converter-rest-api-v1/1832330/1 "2022-04-14T02:06:42Z")

</div>

# Unix Timestamp Converter REST API v1

[https://showcase.api.linx.twenty57.net/UnixTime/fromunixtimestamp?unixtimestamp=1549892280](https://showcase.api.linx.twenty57.net/UnixTime/fromunixtimestamp?unixtimestamp=1549892280)

Currently I am working on a Weather app and I am able to get data from Open weather API. My ideas is to convert the Open weather API UNIX time to the actual datetime. Webviewer with UNIX time converter JavaScript works amazing on my Web Live preview but not on my iPhone. Then I found a UNIX TIME CONVERTER API ([http://unixtime.co.za/](http://unixtime.co.za/)), I used the same way as Open weather API to connect this API to my app. It doesnt work… Please teach me how to get data from this API.

Many Thanks.

---

<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:** [April 14, 2022, 4:55am UTC](https://community.thunkable.com/t/unix-timestamp-converter-rest-api-v1/1832330/2 "2022-04-14T04:55:57Z")

</div>

“It doesn’t work” is not enough detail to help you. Post a screenshot of what you tried and explain what did/did not work. Then someone can help you fix any issues with your blocks.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 14, 2022, 7:32am UTC](https://community.thunkable.com/t/unix-timestamp-converter-rest-api-v1/1832330/3 "2022-04-14T07:32:42Z")

</div>

I tested it with this code and I see it working.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/d/eddeeb181959d86c812352577828d78c7da7f74d.png)

I needed to round the `seconds since 1970` as it seems this API does not like decimal places.

---

<div class="post-metadata">

**Author:** ![danielavelino](https://avatars.discourse-cdn.com/v4/letter/d/b77776/32.png) [@danielavelino](https://community.thunkable.com/u/danielavelino)\
**Post date:** [April 18, 2022, 3:16pm UTC](https://community.thunkable.com/t/unix-timestamp-converter-rest-api-v1/1832330/4 "2022-04-18T15:16:44Z")

</div>

thank you so much. It works on my iphone now. But is it normal that the web preview shows  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3ca4bfa0dd8c599ac2ca9ff18f1b9186a517ca2d.png)

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [April 18, 2022, 5:32pm UTC](https://community.thunkable.com/t/unix-timestamp-converter-rest-api-v1/1832330/5 "2022-04-18T17:32:36Z")

</div>

Yes, this is normal. It just says that this API will not work from the web test and need to work from the mobile.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 17, 2022, 5:32pm UTC](https://community.thunkable.com/t/unix-timestamp-converter-rest-api-v1/1832330/6 "2022-07-17T17:32:38Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
