# Distance matrix api not working

**URL:** <https://community.thunkable.com/t/distance-matrix-api-not-working/2125372>\
**Category:** Questions about Thunkable X\
**Tags:** webapi\
**Created:** [November 10, 2022, 5:32pm UTC](https://community.thunkable.com/t/distance-matrix-api-not-working/2125372 "2022-11-10T17:32:08Z")\
**Posts on this page:** 1\
**Showing post:** 6

<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:** [November 10, 2022, 6:49pm UTC](https://community.thunkable.com/t/distance-matrix-api-not-working/2125372/6 "2022-11-10T18:49:26Z")

</div>

Have you gotten this working in a browser yet? If not, then you shouldn’t be working in Thunkable yet. The first step is to make sure you can get a valid JSON response in a browser.

Because this doesn’t look like it’s going to work to me:

[image removed]

The user’s input will contain spaces and I think that will break the url.

But even if that works – and it may – **you’re using zero for the list index and that isn’t valid in Thunkable**. Try 1 instead. See the last part of this post:

> [@API JSON Tutorial (Video)](https://community.thunkable.com/t/api-json-tutorial-video/1140575/15):
>
> Interesting… I just got an email from Thunkable about a new feature available within text boxes, related to APIs and JSON parsing: [https://docs.thunkable.com/objects#nested-values-and-values-from-arrays](https://docs.thunkable.com/objects#nested-values-and-values-from-arrays) So, if you wanted to replace the blocks I show at the 21:52 mark in the video above: You could do that with these blocks: warning This could easily confuse some people if they’ve been following along in my video so please only use this new…

---

_[View the full topic](https://community.thunkable.com/t/distance-matrix-api-not-working/2125372)._
