# Why won't my json url work?

**URL:** <https://discourse.processing.org/t/why-wont-my-json-url-work/17425>\
**Category:** Coding Questions\
**Created:** [January 29, 2020, 7:14pm UTC](https://discourse.processing.org/t/why-wont-my-json-url-work/17425 "2020-01-29T19:14:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JennyMcCreadie](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Post date:** [January 29, 2020, 7:14pm UTC](https://discourse.processing.org/t/why-wont-my-json-url-work/17425/1 "2020-01-29T19:14:04Z")

</div>

Nothing I am doing seems to be working, I even used the same json url as used in this tutorial and it still keeps coming up with the error:

"\> p5.js says: It looks like there was a problem loading your json. Try checking if the file path [[http://api.open-notify.org/astros.json]](https://www.youtube.com/redirect?q=http%3A%2F%2Fapi.open-notify.org%2Fastros.json%5D&stzid=Ugy_ei3d6GjsX8c-WbB4AaABAg&redir_token=_M2O9X8fkSw2OURRYPXPneD-ryZ8MTU4MDQxMTA0NUAxNTgwMzI0NjQ1&event=comments) is correct, or running a local server.[[https://github.com/processing/p5.js/wiki/Local-server]](https://www.youtube.com/redirect?q=https%3A%2F%2Fgithub.com%2Fprocessing%2Fp5.js%2Fwiki%2FLocal-server%5D&stzid=Ugy_ei3d6GjsX8c-WbB4AaABAg&redir_token=_M2O9X8fkSw2OURRYPXPneD-ryZ8MTU4MDQxMTA0NUAxNTgwMzI0NjQ1&event=comments) "

Anyone have any idea what I can do to fix this? I’m using the online application, I don’t know if that makes a difference. Thanks for any help!

---

<div class="post-metadata">

**Author:** ![JennyMcCreadie](https://avatars.discourse-cdn.com/v4/letter/j/cdc98d/32.png) [@JennyMcCreadie](https://discourse.processing.org/u/JennyMcCreadie)\
**Post date:** [January 29, 2020, 7:21pm UTC](https://discourse.processing.org/t/why-wont-my-json-url-work/17425/2 "2020-01-29T19:21:11Z")

</div>

I’m following Daniel Shiffman’s tutorial exactly, but nothing is working:

```auto
function setup() {
  
  loadJSON("http://api.open-notify.org/astros.json", gotData,'jsonp');
  
}

function gotData(data) {
  println(data);
  for (var i = 0; i < data.number; i++) {
    fill(255);
    ellipse(random(width), random(height), 16, 16);
  }
}

```

---

<div class="post-metadata">

**Author:** ![GoToLoop](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/gotoloop/32/86_2.png) [@GoToLoop](https://discourse.processing.org/u/GoToLoop)\
**Post date:** [January 29, 2020, 7:21pm UTC](https://discourse.processing.org/t/why-wont-my-json-url-work/17425/3 "2020-01-29T19:21:43Z")

</div>

> **[JSON Open-Notify ISS](http://bl.ocks.org/GoSubRoutine/7a567f0510b338b6d0fc1ef53f24f10e)**
>
> GoSubRoutine’s Block 7a567f0510b338b6d0fc1ef53f24f10e

  

> <https://gist.github.com/GoSubRoutine/7a567f0510b338b6d0fc1ef53f24f10e>
>
> There are more than three files. show original
