# Azure Retail Prices Scraper (`kawsar/azure-retail-prices-scraper`) Actor

Collects official Azure service retail prices from the public pricing feed, exporting clean JSON, CSV, or Excel files with meter, SKU, region, and pricing details.

- **URL**: https://apify.com/kawsar/azure-retail-prices-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Azure Retail Prices Scraper

![Azure Retail Prices Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/azure-retail-prices-scraper-cover.png)

Collect Microsoft Azure retail pricing data across services, products, SKUs, and regions. Apply OData filters to find the pricing records you need and export structured results in JSON, CSV, or Excel for cost analysis, price monitoring, and cloud budgeting.

### What It Does

- **Service Pricing:** Retrieve retail prices for Azure services such as Virtual Machines.
- **SKU and Meter Details:** Collect product names, SKU identifiers, meter information, and pricing units.
- **Regional Pricing:** Compare prices across Azure regions and locations.
- **Pricing Records:** Capture currency, retail price, unit price, and effective start dates.

The actor stores each successful pricing record as a separate dataset item. The source field `type` is stored as `priceType` for dataset compatibility.

### Available Mode

| Mode | Description |
|---|---|
| `list` | Collect Azure retail pricing records using an optional OData filter. |

### Use Cases

- **Pricing Research:** Collect Azure service prices for products such as Virtual Machines.
- **Price Monitoring:** Schedule recurring runs to track changes in retail and unit prices.
- **Cost Dashboards:** Feed regional pricing records into BI tools and reporting systems.
- **Pricing Datasets:** Build reusable catalogs of Azure services, meters, and SKUs.
- **Cloud Cost Analysis:** Compare Azure pricing across products and regions.

### Input Parameters

The actor accepts the following input fields from the supplied example:

| Parameter | Type | Description |
|---|---|---|
| `mode` | string | Scraping mode. Use `list`. |
| `filter` | string | Optional OData filter expression for selecting pricing records. |
| `maxItems` | integer | Maximum number of pricing records to collect. |
| `requestDelayMs` | integer | Delay between requests in milliseconds. |

#### Example Input

```json
{
  "mode": "list",
  "filter": "serviceName eq 'Virtual Machines'",
  "maxItems": 5,
  "requestDelayMs": 1000
}
```

### Output Data

Each successful record contains pricing, product, SKU, meter, and regional information.

#### Example Output

```json
{
  "currencyCode": "USD",
  "tierMinimumUnits": 0.0,
  "retailPrice": 0.60386,
  "unitPrice": 0.60386,
  "armRegionName": "southindia",
  "location": "IN South",
  "effectiveStartDate": "2026-10-01T00:00:00Z",
  "meterId": "000009d0-057f-5f2b-b7e9-9e26add324a8",
  "meterName": "D14/DS14 Spot",
  "productId": "DZH318Z0BPVW",
  "skuId": "DZH318Z0BPVW/00QZ",
  "productName": "Virtual Machines D Series Windows",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

#### Output Fields

| Field | Type | Description |
|---|---|---|
| `currencyCode` | string | Currency used for the pricing record. |
| `tierMinimumUnits` | number | Minimum units associated with the pricing tier. |
| `retailPrice` | number | Retail price for the item. |
| `unitPrice` | number | Price per unit. |
| `armRegionName` | string | Azure region identifier. |
| `location` | string | Pricing location name. |
| `effectiveStartDate` | string | Date and time when the pricing record becomes effective. |
| `meterId` | string | Unique identifier for the pricing meter. |
| `meterName` | string | Name of the pricing meter. |
| `productId` | string | Azure product identifier. |
| `skuId` | string | Azure SKU identifier. |
| `productName` | string | Product name associated with the pricing record. |
| `priceType` | string | Pricing record type, stored under a schema-compatible field name. |
| `scrapedAt` | string | Timestamp when the record was collected. |

### Frequently Asked Questions

**Who can use this actor?**

Developers, cloud architects, FinOps teams, and analysts who need structured Azure retail pricing data.

**Can I filter prices for a specific Azure service?**

Yes. Use the `filter` parameter with an OData expression. For example, `serviceName eq 'Virtual Machines'` selects Virtual Machines pricing records.

**Can I compare prices across Azure regions?**

Yes. The output includes `armRegionName` and `location`, which can help you organize and compare regional pricing records.

**Can I schedule recurring price collection?**

Yes. Apify schedules can run the actor at your preferred intervals to help monitor pricing changes.

**What export formats are supported?**

You can export collected dataset records as JSON, CSV, Excel, and other available Apify dataset formats.

### Trademark Notice

Microsoft Azure and related trademarks belong to their respective owners. This actor is an independent tool and is not affiliated with or endorsed by Microsoft.

### Is Web Scraping Legal?

This actor collects publicly accessible Azure retail pricing information without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and Microsoft's policies.

- **Personal Data:** Azure pricing records are primarily commercial and technical information. If additional data contains personal information, applicable privacy laws, including GDPR and CCPA where relevant, may apply.
- **Copyright and Licensing:** Pricing data and related datasets may be subject to licensing or reuse conditions. Review Microsoft's applicable terms before redistributing collected information.
- **Platform Terms and Rate Limits:** Respect Microsoft's usage policies, applicable data terms, and reasonable request practices.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified legal professional about your specific use case.

For more information, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

## `mode` (type: `string`):

What to fetch. List reads the public Azure Retail Prices API (OData) and saves one row per price item.

## `filter` (type: `string`):

OData $filter passed to the Azure Retail Prices API. Example: serviceName eq 'Virtual Machines'.

## `maxItems` (type: `integer`):

Stop after this many price rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait before each request. Raise if you see 429 responses.

## `userAgent` (type: `string`):

User-Agent header sent with each request.

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it.

## Actor input object example

```json
{
  "mode": "list",
  "filter": "serviceName eq 'Virtual Machines'",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/azure-retail-prices-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("kawsar/azure-retail-prices-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call kawsar/azure-retail-prices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/azure-retail-prices-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/WvGvtu3VGWJBwkkyk/builds/yBgpO2Q817EKeiyUU/openapi.json
