When do we go for request to web API?

Hi All

I want to understand at what scenarios we go for sending http request to any web API. Like we can also use ui automation for that web application.

API usage is always first choice. Its stable and ease to use. We only have things like UI automation because so many software dont offer an API.

  1. So if i want to fetch some data from any random website then how can i get the required end point and other input parameters for the HttpClient activity ?

Could you please reply on the above ?

Usually you can not. That’s why we have things like scraping.

That’s what my first question is.

Where and in which scenarios we should go for HttpRequest ?