Jump to content

Unofficial REST API for XR500 (And possibly others)


skhaalr

Recommended Posts

So I've been setting up SPLUNK-like server and noticed  that my XR500 doesn't have any "official" API. So after some digging, I landed upon: 

http://<Router-IP>/apps/com.netdumasoftware.systeminfo/rpc/ 

This essentially is used to pull most of the information via POST requests as shown below:

image.thumb.png.2591d30fbcac1ead095368193ac9ca5e.png

When making these requests you'll need to generate the Authorization header and the json  containing: 
 

{
	"jsonrpc":"2.0",
    "method":"get_ram_info",
    "id":49,
    "params":[]
}

You can get the "method" and "id" using your browser dev console. There are over 130+ IDs and methods. 

 

Postman Example:

image.thumb.png.376590817f5b1a92b071362e89592247.png

Content-Type must be application/json-rpc

image.thumb.png.26034e1df9733d653385b99e61cfedbe.png

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...