cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1,496 Views
Message 1 of 2

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
1 REPLY 1
1,193 Views
Message 2 of 2

Re: Querying smart hub router API for public IP help

Bit off a late response, but with the Smart Hub 2 you can get these details from http://192.168.1.254/cgi/cgi_basicStatus.js

Further more here are some additional pages for each section That doesn't require AUTH:

basic Stats: http://192.168.1.254/cgi/cgi_basicStatus.js

My Network: http://192.168.1.254/cgi/cgi_basicMyDevice.js

Basic Wifi: http://192.168.1.254/cgi/cgi_basicwifi.js

 

 

0 Ratings