How can I Change Weather Icons in JSON Response

  • 1
  • Question
  • Updated 1 year ago
Hi, I'm using the api to pull back info from a call like this:

The default icon set is "k". Is there a way to change it so it's "i"? Thanks.
Photo of mark


  • 1 Post
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
Use the "icon" field instead of "icon_url" and string the path together with the "icon" for the icon set you want
Photo of srdesign


  • 1 Post
  • 0 Reply Likes
But what about when it's night time?
Photo of John Baldwin

John Baldwin

  • 3 Posts
  • 0 Reply Likes
Couldn't you just take the icon_url and substitute the /k/ with an /i/ using some type of replace command?.