Programmatic access to Azure usage data and resource retail rates
You can get programmatic access to Azure usage and pricing data. You can call the Azure Usage API (in public preview since June 10, 2015) to get hourly and daily aggregations of your Azure consumption data. The Azure RateCard API is also in public preview and offers an exhaustive list of available resources with their retail prices. For better insights into your Azure subscription and usage, you can delegate access to partners who are already building these integrations. For more information, please visit the Usage API or RateCard API documentation pages. Be sure to also read the New Azure Billing APIs Available blog post on ScottGu’s Blog. For code samples, please visit the Microsoft Azure Billing API Code Samples page. If you have any questions, please post them on the MSDN forums or Stack Overflow.