cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Evorage
Beginner
292 Views
Message 1 of 1

Querying smart hub router API for public IP help

I've been trying to get my networks public IP without the use of a third party service. The "basicStatus" status page of the BT smart hub displays all the information I need. I can't scrape the page since the content is loaded in dynamically by the JavaScript behind the page. The JavaScript requests the content via POST request to: "http://192.168.1.254/cgi/json-req" and I'm trying to replicate this API request in my own program.

Is this allowed first of all? 🙂

And if it is then are there any resources or documentation since it's not particularly clear on how to do this (passing in the generated session id as the POST body)

0 Ratings
Reply