Troubleshooting REST API Template Parsing Issues

Hey everyone, I’m currently working on integrating some RESTful API calls into my smart home setup, but I’m running into a bit of trouble. Specifically, I’m trying to parse data from this endpoint: http://transport.opendata.ch/v1/locations?query=8500010. My goal is to extract train departure information, but I keep getting an UndefinedError: 'value_json' is undefined error. I’ve tried various value_template configurations, such as {{ value_json.stations.name}} and {{ value_json[0].stations}}, but nothing seems to work. I’m a bit stuck here and would appreciate any advice on how to properly structure the template to extract the desired data. Additionally, once I get the data parsing correctly, I’d like to format the departure times in a European style (DD-MM-YYYY) and remove the timezone offset. If anyone has experience with this or similar API integrations, I’d love to hear your tips and tricks! Thanks in advance for your help! :pray: