# Read dynamic data from web page

**URL:** <https://forum.inductiveautomation.com/t/read-dynamic-data-from-web-page/95324>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [August 29, 2024, 2:26pm UTC](https://forum.inductiveautomation.com/t/read-dynamic-data-from-web-page/95324 "2024-08-29T14:26:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Timothy\_Bullard](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@Timothy\_Bullard](https://forum.inductiveautomation.com/u/Timothy_Bullard)\
**Post date:** [August 29, 2024, 2:26pm UTC](https://forum.inductiveautomation.com/t/read-dynamic-data-from-web-page/95324/1 "2024-08-29T14:26:52Z")

</div>

Greetings  
I am new to Ignition and need what should be a simple thing  
I have a Webpage output from a compressor that has some dynamic components  
system.net.httpGet gets the base webpage but the data I am looking for is not there yet.  
If I examine the element of the data I am looking for it appears there is a Javascript running that updates the data  
I have tried setting up an http client and then using the Get asynch command to grab the data .  
I get a return but the JSON is  
ValueError: Unable to parse response body as JSON: com.inductiveautomation.ignition.common.gson.stream.MalformedJsonException: Use JsonReader.setLenient(true) to accept malformed JSON at line 2 column 2 path $  
I am not sure if this would even work if I could read the output.  
the real question is  
How can I get this dynamic data into ignition and display it?  
Thanks  
Tim

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [August 29, 2024, 2:35pm UTC](https://forum.inductiveautomation.com/t/read-dynamic-data-from-web-page/95324/2 "2024-08-29T14:35:57Z")

</div>

If the webpage is using JavaScript, you _might_ be out of luck; nothing built in to Ignition will load a webpage and execute JavaScript.

However, try looking in the browser dev tools, specifically the network tab. See if you can identify the data fetching the JS is executing, and if it's going to a clean internal API. You might still have authentication issues to deal with, but it's very possible you can issue a request to the same internal API from Ignition _as if_ you were the JS on the regular webpage.

---

<div class="post-metadata">

**Author:** ![Timothy\_Bullard](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@Timothy\_Bullard](https://forum.inductiveautomation.com/u/Timothy_Bullard)\
**Post date:** [August 29, 2024, 7:48pm UTC](https://forum.inductiveautomation.com/t/read-dynamic-data-from-web-page/95324/3 "2024-08-29T19:48:43Z")

</div>

Thanks for the help  
I took a look and the page is sending a post request that runs a .cgi on the host. This CGI generates the entire page including the data.  
I have been trying to do a system.net.httpPost request in the ignition console.  
Best I can get back if I just send the url like this [http://address/cgi-bin/runme.cgi](http://address/cgi-bin/runme.cgi)  
is invalid path  
How do I tell what the post request is sending to the server to get back the webpage ?  
Thanks  
Tim
