The link from @FredrikE applies if you want to use SAS to provide data in a web service. If you want to fetch data from an existing web service (REST APIs, for example), then PROC HTTP is the tool. It's part of Base SAS and works from EG, SAS Studio, batch, etc.
... View more