SOQL Query on Organization entity can be used to find the Salesforce Instance.
Sample SOQL:
SELECT Id, InstanceName
FROM Organization
REST API SOQL Call:
SOQL Query on Organization entity can be used to find the Salesforce Instance.
Sample SOQL:
SELECT Id, InstanceName
FROM Organization
REST API SOQL Call: