I want to get value of remote site url in salesforce (Ex: I want to get http://abc.com like image below). How can I use query SOQL in APEX to get it? enter image description here

1 Answer 1


You can use ToolingAPI to access the RemoteSiteSettings. In developer you can try to query like below.

select id, SiteName, EndpointUrl from RemoteProxy

In the above query EndpointUrl is field which you are looking for.

You need to check the "Use Tooling API" check box to true else you will not get result.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .