{
  "openapi": "3.0.1",
  "info": {
    "title": "Baton Rouge & East Baton Rouge Parish Spending - Every Payment",
    "description": "Every payment line the City-Parish of Baton Rouge has issued (public open data, 1.26M lines, FY2018-today): vendor and its diversity classification, department, fund, program, expense category and commodity, plus the invoice and check behind it. Filter by vendor, department, amount or date.",
    "version": "0.0",
    "x-build-id": "MH4R0ZgZS5ngLgV1L"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~ebr-spending/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-ebr-spending",
        "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~ebr-spending/runs": {
      "post": {
        "operationId": "runs-sync-j0401-ebr-spending",
        "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~ebr-spending/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-ebr-spending",
        "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": {
          "vendorName": {
            "title": "Vendor name (contains)",
            "type": "string",
            "description": "Substring match on the payee, e.g. 'FIRE' or 'LLC'.",
            "default": ""
          },
          "department": {
            "title": "Department (contains)",
            "type": "string",
            "description": "Substring match on the spending department, e.g. 'LIBRARY'.",
            "default": ""
          },
          "division": {
            "title": "Division (contains)",
            "type": "string",
            "description": "Substring match on the division, e.g. 'FIRE PROTECT'.",
            "default": ""
          },
          "program": {
            "title": "Program (contains)",
            "type": "string",
            "description": "Substring match on the budget program.",
            "default": ""
          },
          "function": {
            "title": "Function (contains)",
            "type": "string",
            "description": "Substring match on the government function, e.g. 'PUBLIC SAFETY'.",
            "default": ""
          },
          "purchasingDepartment": {
            "title": "Purchasing department (contains)",
            "type": "string",
            "description": "Substring match on the procuring department's name.",
            "default": ""
          },
          "fund": {
            "title": "Fund (contains)",
            "type": "string",
            "description": "Substring match on the fund, e.g. 'GENERAL'.",
            "default": ""
          },
          "expenseCategory": {
            "title": "Expense category (contains)",
            "type": "string",
            "description": "Substring match on the expense category, e.g. 'EDUCATIONAL'.",
            "default": ""
          },
          "commodityCode": {
            "title": "Commodity code (prefix)",
            "type": "string",
            "description": "Prefix match on the NIGP-style commodity code.",
            "default": ""
          },
          "commodityDescription": {
            "title": "Commodity description (contains)",
            "type": "string",
            "description": "Substring match on the commodity description.",
            "default": ""
          },
          "paymentType": {
            "title": "Payment type (contains)",
            "type": "string",
            "description": "Substring match on the payment type code.",
            "default": ""
          },
          "paymentStatus": {
            "title": "Payment status",
            "enum": [
              "",
              "Cleared",
              "Not Cleared"
            ],
            "type": "string",
            "description": "Cleared = the check has cleared; Not Cleared = outstanding.",
            "default": ""
          },
          "fiscalYear": {
            "title": "Fiscal year",
            "type": "string",
            "description": "Four-digit fiscal-year label, matched exactly, e.g. '2026'.",
            "default": ""
          },
          "vendorCity": {
            "title": "Vendor city (contains)",
            "type": "string",
            "description": "Substring match on the vendor's city.",
            "default": ""
          },
          "vendorState": {
            "title": "Vendor state",
            "type": "string",
            "description": "Two-letter state code, matched exactly.",
            "default": ""
          },
          "vendorZip": {
            "title": "Vendor ZIP",
            "type": "string",
            "description": "Exact vendor ZIP code.",
            "default": ""
          },
          "vendorType": {
            "title": "Vendor type (contains)",
            "type": "string",
            "description": "Substring match on the vendor type code.",
            "default": ""
          },
          "checkNumber": {
            "title": "Check number",
            "type": "string",
            "description": "Exact check number (digits only).",
            "default": ""
          },
          "invoiceNumber": {
            "title": "Invoice number (contains)",
            "type": "string",
            "description": "Substring match on the invoice number.",
            "default": ""
          },
          "sourceDocumentNumber": {
            "title": "Source document (contains)",
            "type": "string",
            "description": "Substring match on the purchase order / contract number the line draws against.",
            "default": ""
          },
          "minAmount": {
            "title": "Minimum amount ($)",
            "type": "number",
            "description": "Smallest line amount in dollars. Leave blank to include refunds/reversals (negative rows)."
          },
          "maxAmount": {
            "title": "Maximum amount ($)",
            "type": "number",
            "description": "Largest line amount in dollars. Blank = no upper bound."
          },
          "checkFrom": {
            "title": "Check date from",
            "type": "string",
            "description": "Earliest check date, YYYY-MM-DD. Blank = any.",
            "default": ""
          },
          "checkTo": {
            "title": "Check date to",
            "type": "string",
            "description": "Latest check date, YYYY-MM-DD. Blank = any.",
            "default": ""
          },
          "minorityOwned": {
            "title": "Minority-owned vendor",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = minority-owned supplier only.",
            "default": ""
          },
          "disadvantagedOwned": {
            "title": "Disadvantaged-owned vendor",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = disadvantaged-business-enterprise only.",
            "default": ""
          },
          "disabledVeteranOwned": {
            "title": "Disabled-veteran-owned vendor",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = disabled-veteran-owned only.",
            "default": ""
          },
          "smallDisabledVeteran": {
            "title": "Small disabled-veteran vendor",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = small disabled-veteran business only.",
            "default": ""
          },
          "smallMinorityOwned": {
            "title": "Small minority-owned vendor",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = small minority-owned only.",
            "default": ""
          },
          "smallMinorityWomanOwned": {
            "title": "Small minority-woman-owned",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = small minority-woman-owned only.",
            "default": ""
          },
          "smallNonMinorityOwned": {
            "title": "Small non-minority vendor",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = small non-minority-owned only.",
            "default": ""
          },
          "smallDisadvantagedOwned": {
            "title": "Small disadvantaged-owned",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = small disadvantaged-owned only.",
            "default": ""
          },
          "smallVeteranOwned": {
            "title": "Small veteran-owned vendor",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = small veteran-owned only.",
            "default": ""
          },
          "smallWomanOwned": {
            "title": "Small woman-owned vendor",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = small woman-owned only.",
            "default": ""
          },
          "independentContractor": {
            "title": "Independent contractor",
            "enum": [
              "",
              "Y",
              "N"
            ],
            "type": "string",
            "description": "Y = payments to independent contractors.",
            "default": ""
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "rows",
              "aggregate"
            ],
            "type": "string",
            "description": "rows = records matching your filters (default). aggregate = one count row per group (see groupBy).",
            "default": "rows"
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "",
              "fiscalYear",
              "department",
              "division",
              "program",
              "function",
              "expenseCategory",
              "paymentType",
              "paymentStatus",
              "vendorState",
              "vendorType",
              "fund"
            ],
            "type": "string",
            "description": "Which dimension to aggregate over (mode=aggregate). Blank = the default dimension. Every group is returned - aggregate mode is not cut off by maxResults.",
            "default": "department"
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of records returned (0 = default 50). Records are charged individually; there is no per-run charge cap.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}