Originally Posted by Wims
Join the channel in my signature if you want real time help, but helping you with this here... nah.
I tried the chan you meantioned, but unfortunately I can not idle there or any other chan for hours until someone may answer, so I will post my questions in here. wink



First of all, thank you for the feedback Wims. It helped me to get the first part of the script to work. That is getting data from $urlget blush

Here is the updated script snippet:
Code
; Usage: /tv <show_name>

alias tv {
  var %show_name = $replace($1-,$chr(32),+)
  noop $urlget(https://api.tvmaze.com/singlesearch/shows?q= $+ %show_name, gb, &tvdata, tvout)
}

alias tvout {
  echo -ag $bvar(&tvdata,1-).text

  ;
  ; TODO Parse and show selected informations only
  ;

}

Now I get the result of the query. The result is a JSON formatted text string and it looks something like:
{"id":215,"url":"https://www.tvmaze.com/shows/215/american-dad","name":"American Dad!","type":"Animation","language":"English","genres":["Comedy","Family"],"status":"Running","runtime":30,"averageRuntime":30,"premiered":"2005-02-06","ended":null,"officialSite":"http://www.tbs.com/shows/american-dad.html","schedule":{"time":"22:00","days":["Monday"]},"rating":{"average":7.4},"weight":98,"network":{"id":32,"name":"TBS","country":{"name":"United States","code":"US","timezone":"America/New_York"},"officialSite":"https://www.tbs.com/"},"webChannel":null,"dvdCountry":{"name":"United States","code":"US","timezone":"America/New_York"},"externals":{"tvrage":2594,"thetvdb":73141,"imdb":"tt0397306"},"image":{"medium":"https://static.tvmaze.com/uploads/images/medium_portrait/476/1191222.jpg","original":"https://static.tvmaze.com/uploads/images/original_untouched/476/1191222.jpg"},"summary":"<p>In <b>American Dad!</b>, Stan Smith leads the all-American family in this animated sitcom filled with wild and crazy extremes. Everyday life is taken to the limit as Stan applies the same drastic measures used in his job at the CIA to his home life. Driven by machismo and the American dream, he often is blind to how horribly he fails at his attempts. This father might not know best, but he never stops trying.</p>","updated":1705592851,"_links":{"self":{"href":"https://api.tvmaze.com/shows/215"},"previousepisode":{"href":"https://api.tvmaze.com/episodes/2674312"}}}

So the question that remains is how to parse selected data/nodes from a JSON formatted string in mirc please?
The goal would be to build an output string that might look something like the following:
Code
  ; Desired output example: 
  ; echo -ag Name: %json_name $chr(124) Type: %json_type $chr(124) Language: %json_language $chr(124) Genres: %json_genres $chr(124) Status: %json_status $chr(124) URL: %json_url 
  ; echo -ag Network: %json_network_name $chr(124) Country: %json_network_country_code %json_network_country_name

If someone could please tell me how to access the "network.name" and/or "network.country.code" information from there for example, I think I would be able to access the other nodes myself grin

Thanks smile