# FCC weather api doesnt work

**URL:** <https://forum.freecodecamp.org/t/fcc-weather-api-doesnt-work/142951>\
**Category:** General\
**Created:** [August 21, 2017, 8:21am UTC](https://forum.freecodecamp.org/t/fcc-weather-api-doesnt-work/142951 "2017-08-21T08:21:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vickersx](https://avatars.discourse-cdn.com/v4/letter/v/ecd19e/32.png) [@vickersx](https://forum.freecodecamp.org/u/vickersx)\
**Post date:** [August 21, 2017, 8:21am UTC](https://forum.freecodecamp.org/t/fcc-weather-api-doesnt-work/142951/1 "2017-08-21T08:21:45Z")

</div>

i noticed that FCC weather api stopped working.

[https://fcc-weather-api.glitch.me/api/current?lat=51.509865&lon=-0.118092](https://fcc-weather-api.glitch.me/api/current?lat=51.509865&lon=-0.118092)

those are lat and long for london, but whatever you will pass, it always will show this:

{“coord”:{“lon”:139,“lat”:35},“weather”:[{“id”:803,“main”:“Clouds”,“description”:“broken clouds”}],“base”:“stations”,“main”:{“temp”:28.23,“pressure”:1011,“humidity”:74,“temp\_min”:26,“temp\_max”:31},“visibility”:10000,“wind”:{“speed”:3.6,“deg”:230},“clouds”:{“all”:75},“dt”:1499396400,“sys”:{“type”:1,“id”:7616,“message”:0.0043,“country”:“JP”,“sunrise”:1499369792,“sunset”:1499421666},“id”:1851632,“name”:“Shuzenji”,“cod”:200}

---

<div class="post-metadata">

**Author:** ![vickersx](https://avatars.discourse-cdn.com/v4/letter/v/ecd19e/32.png) [@vickersx](https://forum.freecodecamp.org/u/vickersx)\
**Post date:** [August 21, 2017, 9:27am UTC](https://forum.freecodecamp.org/t/fcc-weather-api-doesnt-work/142951/2 "2017-08-21T09:27:40Z")

</div>

never mind, it works again…

---

<div class="post-metadata">

**Author:** ![jgBayo](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jgBayo](https://forum.freecodecamp.org/u/jgBayo)\
**Post date:** [April 29, 2018, 5:47pm UTC](https://forum.freecodecamp.org/t/fcc-weather-api-doesnt-work/142951/3 "2018-04-29T17:47:38Z")

</div>

Hi! I just completed the challenge, but had the same problem. I used this workaround:

```auto
if (result.name !="Shuzenji"){//Weather API has a bug that shows this location sometimes
              //Code to insert API data into HTML
            }

```

I’m based in Barcelona but still got Shuzenji as location sometimes. The example project also has that problem, it’s probably an API bug.

---

<div class="post-metadata">

**Author:** ![petercr](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/petercr/32/52343_2.png) [@petercr](https://forum.freecodecamp.org/u/petercr)\
**Post date:** [April 29, 2018, 5:57pm UTC](https://forum.freecodecamp.org/t/fcc-weather-api-doesnt-work/142951/4 "2018-04-29T17:57:38Z")

</div>

**YES** I found the Free Code Camp **Weather API** to be very buggy 🐛🐛💢😢  
What I did is just use the [OpenWeather.org](https://openweathermap.org) API and that worked great for me You have to open an account and get an **API key** but it’s totally free and good practice for what you normally do on a project 😄👍

---

<div class="post-metadata">

**Author:** ![jgBayo](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jgBayo](https://forum.freecodecamp.org/u/jgBayo)\
**Post date:** [April 29, 2018, 6:22pm UTC](https://forum.freecodecamp.org/t/fcc-weather-api-doesnt-work/142951/5 "2018-04-29T18:22:06Z")

</div>

That’s probably a better option, since if you were to be in Shuzenji my app would never work 😅

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [January 17, 2021, 8:22pm UTC](https://forum.freecodecamp.org/t/fcc-weather-api-doesnt-work/142951/6 "2021-01-17T20:22:39Z")

</div>

Closed on January 17, 2021, 8:22pm UTC


