{
  "openapi": "3.0.1",
  "info": {
    "title": "Sonoma County Defaulted Property Taxes - Parcel, Balance Due",
    "description": "Sonoma County (CA) defaulted secured property taxes (public open data, 9.8k tax-year rows / 6.8k parcels, daily): per-year total due and balance, redemption fees, five-year power-to-sell timeline, assessed value and exemptions. Filter by parcel, default year, amount, sale notice or status.",
    "version": "0.0",
    "x-build-id": "xj0SXfOFISML1f9uK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~sonoma-defaulted-tax/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-sonoma-defaulted-tax",
        "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/j0401~sonoma-defaulted-tax/runs": {
      "post": {
        "operationId": "runs-sync-j0401-sonoma-defaulted-tax",
        "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/j0401~sonoma-defaulted-tax/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-sonoma-defaulted-tax",
        "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": "Mode",
            "enum": [
              "",
              "rows",
              "aggregate",
              "parcel"
            ],
            "type": "string",
            "description": "rows = one defaulted tax year (default). aggregate = one count row per group (see groupBy). parcel = one assessment number rolled up: every defaulted tax year, totals and balance.",
            "default": ""
          },
          "assessmentNumber": {
            "title": "Assessment number",
            "type": "string",
            "description": "Exact Sonoma assessment (parcel) number, e.g. \"117030022000\". Required for mode=parcel."
          },
          "defaultNumber": {
            "title": "Default number",
            "type": "string",
            "description": "Exact default number, e.g. \"DEF260001626\". One default can cover several parcels and several tax years."
          },
          "taxYear": {
            "title": "Tax year",
            "type": "string",
            "description": "Four-digit tax-RATE year, e.g. \"2025\". This is not the default year: a June 2026 default can carry tax years 2023-2025, and taxYear 2026 returns nothing."
          },
          "address": {
            "title": "Property address",
            "type": "string",
            "description": "Street-address prefix, case-insensitive (e.g. \"1321 GAIL\"). The owner's mailing address is deliberately not in this dataset."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "City prefix, case-insensitive (e.g. \"SEBASTOPOL\")."
          },
          "status": {
            "title": "Status",
            "enum": [
              "",
              "outstanding",
              "redeemed"
            ],
            "type": "string",
            "description": "outstanding = no redemption recorded and the amount paid is below the default amount. redeemed = a redemption date exists or the first-year default was paid in full.",
            "default": ""
          },
          "minAmountDue": {
            "title": "Minimum default amount",
            "minimum": 0,
            "type": "number",
            "description": "Only rows whose first-year default amount is at least this many dollars. That amount exists on one row per parcel; use minTotalDue for a per-tax-year amount."
          },
          "minTotalDue": {
            "title": "Minimum amount due (per tax year)",
            "minimum": 0,
            "type": "number",
            "description": "Only rows whose totalDue is at least this many dollars. totalDue is base tax + 10% penalty + cost charge; on the 95 rows where all three are 0 the county's defaultAmount is used instead (see amountBasis)."
          },
          "minBalanceDue": {
            "title": "Minimum still owed",
            "minimum": 0,
            "type": "number",
            "description": "Only rows where totalDue minus amount paid is at least this many dollars. Use this to find money still owed - a redeemed row can still carry a balance after a partial payment."
          },
          "minNetValue": {
            "title": "Minimum net assessed value",
            "minimum": 0,
            "type": "number",
            "description": "Only rows whose net assessed value is at least this many dollars."
          },
          "hasSaleNotice": {
            "title": "Power to sell recorded",
            "type": "boolean",
            "description": "true = the county has recorded a sale notice (power to sell) on the default; false = it has not."
          },
          "defaultYearFrom": {
            "title": "Default year from",
            "type": "string",
            "description": "Four-digit default year - the 30 June delinquency year in the county's file - keeps that year or later, e.g. \"2020\"."
          },
          "defaultYearTo": {
            "title": "Default year to",
            "type": "string",
            "description": "Four-digit default year - the 30 June delinquency year - keeps that year or earlier."
          },
          "exemptionCode": {
            "title": "Exemption code",
            "type": "string",
            "description": "Exact county exemption code, e.g. \"E01\" (homeowner), \"E99\" (low value), \"E22\" (religious). Matches either exemption slot."
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "",
              "taxYear",
              "status",
              "city",
              "agPreserve"
            ],
            "type": "string",
            "description": "Dimension for mode=aggregate (blank = taxYear). Every group is returned.",
            "default": ""
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Cap on records pushed in rows mode (0 = default 50; up to 10,000 per run - the whole file is 9,789). Each record is metered individually.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}