{
  "openapi": "3.0.1",
  "info": {
    "title": "Azure Retail Price Cost Impact Report",
    "description": "Monitor official Azure Retail Prices for selected SKUs and regions. Receive source-linked price change alerts, estimated monthly cost impact reports, and exports without Azure authentication.",
    "version": "0.1",
    "x-build-id": "FIdCjw5qIxATZH1CH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/taroyamada~azure-retail-price-cost-impact-report/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-taroyamada-azure-retail-price-cost-impact-report",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/taroyamada~azure-retail-price-cost-impact-report/runs": {
      "post": {
        "operationId": "runs-sync-taroyamada-azure-retail-price-cost-impact-report",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/taroyamada~azure-retail-price-cost-impact-report/run-sync": {
      "post": {
        "operationId": "run-sync-taroyamada-azure-retail-price-cost-impact-report",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "scopes"
        ],
        "properties": {
          "scopes": {
            "title": "Azure price scopes",
            "minItems": 1,
            "maxItems": 25,
            "type": "array",
            "description": "A bounded selection. Include serviceName, armRegionName, and at least one exact SKU, meter, product, or ID selector.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "title": "Scope ID",
                  "type": "string",
                  "description": "Stable identifier for this recurring watch."
                },
                "label": {
                  "title": "Scope label",
                  "type": "string",
                  "description": "Human-readable label for reports."
                },
                "serviceName": {
                  "title": "Azure service",
                  "type": "string",
                  "description": "Exact Azure Retail Prices serviceName, for example Virtual Machines."
                },
                "armRegionName": {
                  "title": "ARM region",
                  "type": "string",
                  "description": "Exact ARM region name, for example eastus or japaneast."
                },
                "armSkuName": {
                  "title": "ARM SKU",
                  "type": "string",
                  "description": "Exact armSkuName when available, for example Standard_B2s."
                },
                "skuName": {
                  "title": "Meter SKU name",
                  "type": "string",
                  "description": "Exact API skuName selector."
                },
                "meterName": {
                  "title": "Meter name",
                  "type": "string",
                  "description": "Exact API meterName selector."
                },
                "meterId": {
                  "title": "Meter ID",
                  "type": "string",
                  "description": "Exact Azure meterId selector; strongest selector."
                },
                "productName": {
                  "title": "Product name",
                  "type": "string",
                  "description": "Exact API productName selector."
                },
                "productId": {
                  "title": "Product ID",
                  "type": "string",
                  "description": "Exact Azure productId selector."
                },
                "skuId": {
                  "title": "SKU ID",
                  "type": "string",
                  "description": "Exact Azure skuId selector."
                },
                "serviceFamily": {
                  "title": "Service family",
                  "type": "string",
                  "description": "Optional exact serviceFamily selector."
                },
                "priceType": {
                  "title": "Price type",
                  "description": "Exact Azure Retail Prices price type to include.",
                  "type": "string",
                  "enum": [
                    "Consumption",
                    "Reservation"
                  ],
                  "default": "Consumption"
                },
                "reservationTerm": {
                  "title": "Reservation term",
                  "type": "string",
                  "description": "Optional exact term such as 1 Year or 3 Years."
                },
                "usageQuantity": {
                  "title": "Monthly usage quantity",
                  "type": "number",
                  "minimum": 0.000001,
                  "maximum": 1000000000000,
                  "description": "Monthly quantity in the returned unitOfMeasure. For 1 Hour, enter estimated monthly hours."
                },
                "usageUnit": {
                  "title": "Expected unit",
                  "type": "string",
                  "description": "Optional exact unitOfMeasure expected from the API; mismatches fail closed."
                },
                "allowMultipleMatches": {
                  "title": "Allow multiple price meters",
                  "type": "boolean",
                  "default": false,
                  "description": "Off by default to prevent applying one usage estimate to multiple ambiguous meters."
                }
              },
              "required": [
                "serviceName",
                "armRegionName",
                "usageQuantity"
              ],
              "additionalProperties": false
            },
            "default": []
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Stable state namespace for a recurring watch.",
            "default": "azure-retail-price-watch"
          },
          "initialRunMode": {
            "title": "Initial run mode",
            "enum": [
              "baseline_only",
              "emit_current"
            ],
            "type": "string",
            "description": "Store a free baseline or explicitly emit current matched prices and a report.",
            "default": "baseline_only"
          },
          "generateReport": {
            "title": "Generate cost impact report",
            "type": "boolean",
            "description": "Generate an aggregate monthly cost-impact report when current or changed meters are emitted.",
            "default": true
          },
          "emitRawRows": {
            "title": "Emit raw price rows",
            "type": "boolean",
            "description": "Emit normalized public Azure meter rows in addition to value-event outputs.",
            "default": false
          },
          "emitExport": {
            "title": "Generate price export",
            "type": "boolean",
            "description": "Generate a compact JSON-ready export when current or changed meters are emitted.",
            "default": false
          },
          "emitUnchanged": {
            "title": "Emit unchanged rows",
            "type": "boolean",
            "description": "Accepted for compatibility; unchanged runs remain zero rows and zero charge for billing safety.",
            "default": false
          },
          "maxPagesPerScope": {
            "title": "Maximum API pages per scope",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "Bound the number of official API pages fetched for each scope.",
            "default": 2
          },
          "maxItemsPerScope": {
            "title": "Maximum matching meters per scope",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Bound the number of exact matched price meters retained for each scope.",
            "default": 20
          },
          "maxChargeUsd": {
            "title": "Maximum charge USD",
            "minimum": 0.006,
            "maximum": 250,
            "type": "number",
            "description": "Fail closed before delivery if configured PPE charges exceed this cap.",
            "default": 25
          },
          "dryRun": {
            "title": "Dry run",
            "type": "boolean",
            "description": "Return representative rows without Azure requests, state writes, or PPE charges.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}