Example URIs
6/1/2011
This section contains examples of the various URI queries you can use with Microsoft URS.
Example URI Query for the UtilityByPostalCodes Resource
To query the utilities operating in the 98052 postal code, use a URI similar to the following:
https://api.datamarket.azure.com/Microsoft/UtilityRateService/UtilityByPostalCodes?$filter=PostalCode eq '98052' and CountryCode eq 'US' and IntendedUse eq 'Production'
Example URI Query for the CustomerPlanByPostalCodes Resource
To query the customer plans offered by a specific utility in the 98052 postal code, use a URI similar to the following (after replacing the GUID with a utility GUID returned by the UtilityByPostalCodes resource):
https://api.datamarket.azure.com/Microsoft/UtilityRateService/CustomerPlanByPostalCodes?$filter=UtilityId eq guid'9bb6b32b-ca99-4106-998b-174be7f50da2' and PostalCode eq '98052' and CountryCode eq 'US' and IntendedUse eq 'Production'
Example URI Query for the Prices Resource
To query the prices associated with a customer plan, use a URI similar to the following (after replacing the GUID with a GUID returned by the CustomerPlans resource):
https://api.datamarket.azure.com/Microsoft/UtilityRateService/Prices?$filter=CustomerPlanId eq guid’aabc4641-4c14-4a6e-bb47-20c8db7a3333’ and IntendedUse eq 'Production'