{
  "openapi": "3.0.1",
  "info": {
    "title": "NY Contractor Registry Certificates - MWBE & Debarment",
    "description": "NYS Contractor Registry certificates (15,219 active): business type, MWBE status, outstanding wage assessments, debarment dates, labour/tax and safety findings, apprenticeship, workers' comp, address. Search or aggregate by type, city or compliance flag.",
    "version": "0.0",
    "x-build-id": "qWmfNpwP9HZezeGrs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~ny-contractor-certificates/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-ny-contractor-certificates",
        "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~ny-contractor-certificates/runs": {
      "post": {
        "operationId": "runs-sync-j0401-ny-contractor-certificates",
        "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~ny-contractor-certificates/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-ny-contractor-certificates",
        "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",
              "profile"
            ],
            "type": "string",
            "description": "rows = certificates (default). aggregate = one row per group with a count. profile = one certificate by number.",
            "default": ""
          },
          "certificateNumber": {
            "title": "Certificate number",
            "type": "string",
            "description": "e.g. \"26-639SQ-CR\"."
          },
          "name": {
            "title": "Business name contains",
            "type": "string",
            "description": "Case-insensitive substring on the legal business name."
          },
          "dba": {
            "title": "DBA contains",
            "type": "string",
            "description": "Case-insensitive substring on the trade name."
          },
          "businessType": {
            "title": "Business type",
            "type": "string",
            "description": "Corporation, LLC, Sole Proprietorship, LLP, Partnership, Association, Government or Trust."
          },
          "city": {
            "title": "City contains",
            "type": "string",
            "description": "Free-text city as published; it sometimes includes the state and ZIP."
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "Two-letter code."
          },
          "zip": {
            "title": "ZIP code",
            "type": "string",
            "description": "Exact 5-digit ZIP code. Accepts ZIP+4 (e.g. \"11207-0001\"), matched on its 5-digit core."
          },
          "mwbe": {
            "title": "MWBE-owned",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 2,643 certificates.",
            "default": ""
          },
          "publiclyTraded": {
            "title": "Publicly traded",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 259 certificates.",
            "default": ""
          },
          "debarred": {
            "title": "Ever debarred",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 37 certificates. This is historical: the published debarment end date may already have passed.",
            "default": ""
          },
          "outstandingWages": {
            "title": "Outstanding wage assessments",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 45 certificates.",
            "default": ""
          },
          "apprenticeship": {
            "title": "Apprenticeship program",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 2,537 certificates.",
            "default": ""
          },
          "workersComp": {
            "title": "Workers' compensation insurance",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 14,332; No on 887.",
            "default": ""
          },
          "hasDolRegistration": {
            "title": "NYS DOL employer registration",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 12,557.",
            "default": ""
          },
          "hasWcbNumber": {
            "title": "WCB employer number",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 13,230.",
            "default": ""
          },
          "finalDeterminationLaborTax": {
            "title": "Final determination - labour/tax law",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 137 certificates.",
            "default": ""
          },
          "finalDeterminationSafety": {
            "title": "Final determination - safety standards",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 440 certificates.",
            "default": ""
          },
          "apprenticeshipSponsor": {
            "title": "Apprenticeship sponsor",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 473.",
            "default": ""
          },
          "apprenticeshipGroupSignatory": {
            "title": "Group program signatory",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 1,376.",
            "default": ""
          },
          "workersCompExempt": {
            "title": "Workers' comp exempt",
            "enum": [
              "",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Yes on 887.",
            "default": ""
          },
          "issuedFrom": {
            "title": "Issued from",
            "type": "string",
            "description": "ISO date (YYYY-MM-DD)."
          },
          "issuedTo": {
            "title": "Issued to",
            "type": "string",
            "description": "ISO date (YYYY-MM-DD)."
          },
          "expiresBefore": {
            "title": "Expires on or before",
            "type": "string",
            "description": "ISO date (YYYY-MM-DD) on expiration_date."
          },
          "expiresAfter": {
            "title": "Expires on or after",
            "type": "string",
            "description": "ISO date (YYYY-MM-DD) on expiration_date."
          },
          "groupBy": {
            "title": "Aggregate dimension",
            "enum": [
              "",
              "businessType",
              "city",
              "state",
              "mwbe",
              "publiclyTraded",
              "debarred",
              "outstandingWages",
              "apprenticeship",
              "workersComp",
              "issuedYear",
              "expirationYear"
            ],
            "type": "string",
            "description": "Used only with mode=aggregate. Default businessType.",
            "default": ""
          },
          "metric": {
            "title": "Aggregate metric",
            "enum": [
              "",
              "count"
            ],
            "type": "string",
            "description": "count only.",
            "default": ""
          },
          "maxResults": {
            "title": "Max records",
            "type": "integer",
            "description": "Records delivered in rows/profile mode (default 50, max 5000). Aggregate ignores this. 0 uses the default 50.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}