How to GET information from a web page using Scripted REST Api ?

Sai Pavan1
Tera Contributor

Hello community,

I have a simple requirement where I have to get information from a web page using scripted rest API. The webpage contains random state names with state id's and I have to GET only particular state names of some id's. 

SaiPavan1_0-1676523995574.png

So, from the above webpage which is having state id's and names I have to GET only some state names of particular state id's. Is this possible using scripted rest api or using integration hub ? 

Please guide me to any related links or video that gives solution. 

 

6 REPLIES 6

Vallabh Baradk2
Giga Guru

Hi Sai,

 

You can try out this using postman. you have to call outbound integration. If the postman works, you can use outbound rest in servicenow and put the endpoint of the rest api to collect the GET response.

 

Thank you,

Vallabh Baradkar

Sai Kumar B
Mega Sage
Mega Sage

@Sai Pavan1 

If I could help you with my response you can mark it as helpful and correct as it benefits future viewers
Thanks,
Sai Kumar B
Community Rising Star 2023 & 2022