My 2 cents on this…
As per Feature Explorer, Feature Family: Junos OS XML API and Scripting is supported in,
EX4300 Junos OS 17.4R1 EX4300-VC Junos OS 17.4R1 EX4600 Junos OS 17.4R1 EX4600-VC Junos OS 17.4R1 EX9200 Junos OS 17.4R1 EX9200-VC Junos OS 17.4R1
https://apps.juniper.net/feature-explorer/feature-family-info.html?familyName=Junos+OS+XML+API+and+Scrip
I love to automate Lab devices with curl+API …
POSTMAN Client:
http://lab:password@<ip-address>:8080/rpc/get-system-information
http://lab:password@<ip-address>:8080/rpc/get-configuration
http://lab:password@<ip-address>:8080/rpc/get-interface-information
Curl Client: Working
curl http://lab:password@<ip-address>:8080/rpc -D curl.out --header "Accept: text/plain" -d "<get-interface-information><detail/><interface-name>lo0</interface-name></get-interface-information>"
curl http://lab:password@<ip-address>:8080/rpc -D curl.out --header "Accept: text/plain" -d "<get-interface-information><terse/><interface-name>lo0</interface-name></get-interface-information>"
curl http://lab:password@<ip-address>:8080/rpc -D curl.out --header "Accept: text/plain" -d "<get-configuration><configuration><interfaces><interface><name>lo0</name></interface></interfaces></configuration></get-configuration>"