{
  "openapi": "3.0.1",
  "info": {
    "title": "Utility Bill Data API with Interval Meter Data: Arcadia Plug",
    "description": "Read utility bill statements with charges and usage, accounts, meters, payments, sites, providers and 15 minute smart meter interval data (kWh, therms) through the Arcadia Plug API, live or sandbox. For data your account holders have authorised. Bring your own key.",
    "version": "0.1",
    "x-build-id": "XdaLHg9eNsE4QCv0b"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~utility-bill-interval-meter-data-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-utility-bill-interval-meter-data-api",
        "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/nabeelbaghoor~utility-bill-interval-meter-data-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-utility-bill-interval-meter-data-api",
        "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/nabeelbaghoor~utility-bill-interval-meter-data-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-utility-bill-interval-meter-data-api",
        "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",
        "properties": {
          "mode": {
            "title": "What to read",
            "enum": [
              "statements",
              "detailedStatements",
              "statementDetails",
              "accounts",
              "meters",
              "intervals",
              "normalizedIntervals",
              "payments",
              "sites",
              "providers"
            ],
            "type": "string",
            "description": "Utility statements lists bill summaries with dates, amounts and usage per meter. Detailed statements adds every charge line, rate and usage read. Statement details by ID reads chosen statements in full. Accounts, meters, sites and providers list those records. Meter interval data and normalized 15 minute interval data read smart meter readings for chosen meter IDs. Account payments lists payments for chosen account IDs.",
            "default": "statements"
          },
          "search": {
            "title": "Search expression",
            "type": "string",
            "description": "Optional. An Arcadia search expression on the mode's searchable fields: ; is AND, , is OR, with ==, !=, <, <=, >, >=, =in=(a,b) and * as a wildcard. Examples: serviceType==electric (meters), accountNumbers==123456 (statements), status==ACTIVE (accounts). Combined with the filters below by AND."
          },
          "globalSearch": {
            "title": "Free text search",
            "type": "string",
            "description": "Optional. Matches any searchable text field of the records, for example a provider name or account number. Not used for payments."
          },
          "correlationId": {
            "title": "Correlation ID",
            "type": "string",
            "description": "Statements, accounts and meters. Only records tied to this correlation ID, the identifier you gave the account holder's connection in Arcadia Connect or the API."
          },
          "statementDateFrom": {
            "title": "Statement date from",
            "type": "string",
            "description": "Statement modes. Only statements dated on or after this day, as YYYY-MM-DD."
          },
          "statementDateTo": {
            "title": "Statement date to",
            "type": "string",
            "description": "Statement modes. Only statements dated on or before this day, as YYYY-MM-DD."
          },
          "crossVersionSearch": {
            "title": "Search all statement versions",
            "type": "boolean",
            "description": "Statement modes. Match the search against every version of a statement, not only the latest; Arcadia still returns the latest matching version of each.",
            "default": false
          },
          "providerName": {
            "title": "Provider name contains",
            "type": "string",
            "description": "Providers mode. Only utility providers whose name contains this text, such as Georgia Power or Edison."
          },
          "businessUnitIds": {
            "title": "Business Unit IDs",
            "type": "array",
            "description": "Optional. Only records in these Business Units. Statements, accounts, meters and sites.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort",
            "type": "array",
            "description": "Optional. One sort per line as field,asc or field,desc, such as statementDate,desc or accountNumber,asc. Default order is ascending.",
            "items": {
              "type": "string"
            }
          },
          "statementIds": {
            "title": "Statement IDs",
            "type": "array",
            "description": "Statement details mode. One Arcadia statement ID per line (stm_ followed by a UUID). The statements mode lists them.",
            "items": {
              "type": "string"
            }
          },
          "meterIds": {
            "title": "Meter IDs",
            "type": "array",
            "description": "Interval modes. One Arcadia meter ID per line (mtr_ followed by a UUID). The meters mode lists them; intervals must be active on the meter.",
            "items": {
              "type": "string"
            }
          },
          "accountIds": {
            "title": "Account IDs",
            "type": "array",
            "description": "Account payments mode. One Arcadia account ID per line (act_ followed by a UUID). The accounts mode lists them.",
            "items": {
              "type": "string"
            }
          },
          "startAt": {
            "title": "Interval start",
            "type": "string",
            "description": "Interval modes. Read interval data from this moment, as a date (2026-01-01, midnight UTC) or an ISO 8601 date-time with a time zone. Arcadia returns up to one year per request; empty uses its default of the latest year."
          },
          "endAt": {
            "title": "Interval end",
            "type": "string",
            "description": "Interval modes. Read interval data up to this moment, as a date or an ISO 8601 date-time with a time zone."
          },
          "environment": {
            "title": "Environment",
            "enum": [
              "live",
              "sandbox"
            ],
            "type": "string",
            "description": "Live reads your organization's real data on api.arcadia.com. Sandbox reads mock data from Arcadia sandbox credentials on sandbox.api.arcadia.com, with the same API key.",
            "default": "live"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most rows this run returns and charges for. In the interval modes every reading is a row: one meter holds up to 35,040 readings of 15 minutes a year.",
            "default": 100
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 6000,
            "type": "integer",
            "description": "Pacing for calls to Arcadia, whose documented limit is 100 requests per second. Throttled calls are retried after a pause.",
            "default": 600
          },
          "clientId": {
            "title": "Client ID",
            "type": "string",
            "description": "The client ID of your Arcadia API key, from the API Keys page of the Arcadia Dashboard. Stored as a secret. You can instead set the DATA_API_CLIENT_ID environment secret."
          },
          "apiKey": {
            "title": "Client secret",
            "type": "string",
            "description": "The client secret of the same Arcadia API key. Stored as a secret, sent only to Arcadia's token endpoint and never logged. You can instead set the DATA_API_KEY environment secret, alone or as clientId:clientSecret."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}