{
  "openapi": "3.0.1",
  "info": {
    "title": "Delaware Professional Licenses & Discipline",
    "description": "Delaware professional and occupational licences (public data, 353,905 licences across 38 professions) plus the state's disciplinary actions against licensees (8,483 sanctions) - searchable by name, profession, licence type, status or action taken.",
    "version": "0.0",
    "x-build-id": "acbizEkTDW8TdHhji"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~de-professional-licenses/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-de-professional-licenses",
        "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~de-professional-licenses/runs": {
      "post": {
        "operationId": "runs-sync-j0401-de-professional-licenses",
        "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~de-professional-licenses/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-de-professional-licenses",
        "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": {
          "corpus": {
            "title": "What to return",
            "enum": [
              "licenses",
              "disciplinary"
            ],
            "type": "string",
            "description": "licenses (default) = the register, one row per licence. disciplinary = the state's disciplinary actions, one row per sanction (a licensee with several sanctions has several rows).",
            "default": "licenses"
          },
          "licenseNumber": {
            "title": "Licence number",
            "type": "string",
            "description": "Licence number substring, e.g. L2-0012651. Works in both modes - use it to pull a licensee's licence record and their full sanction history together.",
            "default": ""
          },
          "name": {
            "title": "Licensee name",
            "type": "string",
            "description": "Licensee name substring, case-insensitive. Matches the last name, first name or full name.",
            "default": ""
          },
          "profession": {
            "title": "Profession",
            "type": "string",
            "description": "Profession substring, e.g. Nursing, Medical Practice, Real Estate, Pharmacy, Cosmetology and Barbering, Electrical Examiners, Accountancy.",
            "default": ""
          },
          "licenseType": {
            "title": "Licence type",
            "type": "string",
            "description": "Licence-type substring, e.g. Registered Nurse, Physician M.D., Salesperson, Licensed Practical Nurse, Cosmetologist.",
            "default": ""
          },
          "status": {
            "title": "Licence status",
            "type": "string",
            "description": "Licence mode only. A source status exactly: Active, Expired, Closed, Deceased, Inactive, Deactivated, Terminated, Suspended, Revoked, Annulled, Probation, Expired Inactive, Delinquent, Non-Disciplinary Suspension, Withdrawn, Denied, Under Review.",
            "default": ""
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Licence mode only. Licensee city substring, case-insensitive.",
            "default": ""
          },
          "zip": {
            "title": "ZIP prefix",
            "type": "string",
            "description": "Licence mode only. Licensee ZIP prefix, e.g. 198 or 19901.",
            "default": ""
          },
          "issuedFrom": {
            "title": "Issued on or after",
            "type": "string",
            "description": "Licence mode only. Only licences issued on/after this date (YYYY-MM-DD).",
            "default": ""
          },
          "issuedTo": {
            "title": "Issued before",
            "type": "string",
            "description": "Licence mode only. Only licences issued on/before this date (YYYY-MM-DD).",
            "default": ""
          },
          "expiresFrom": {
            "title": "Expires on or after",
            "type": "string",
            "description": "Licence mode only. Only licences expiring on/after this date (YYYY-MM-DD). Combine with status=Active to find licences coming up for renewal.",
            "default": ""
          },
          "expiresTo": {
            "title": "Expires before",
            "type": "string",
            "description": "Licence mode only. Only licences expiring on/before this date (YYYY-MM-DD).",
            "default": ""
          },
          "action": {
            "title": "Disciplinary action",
            "type": "string",
            "description": "Disciplinary mode only. Action substring, e.g. Letter of Reprimand, Fine, Remedial Education, Suspension, Probation, Revocation, Cease and Desist Order, Voluntary Surrender, Limitation.",
            "default": ""
          },
          "from": {
            "title": "Action on or after",
            "type": "string",
            "description": "Disciplinary mode only. Only actions starting on/after this date (YYYY-MM-DD).",
            "default": ""
          },
          "to": {
            "title": "Action before",
            "type": "string",
            "description": "Disciplinary mode only. Only actions starting on/before this date (YYYY-MM-DD).",
            "default": ""
          },
          "aggregate": {
            "title": "Aggregate instead of records",
            "type": "boolean",
            "description": "When on, returns one summary record per group (see groupBy) with count - instead of individual licences or actions.",
            "default": false
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "",
              "profession",
              "licenseType",
              "status",
              "state",
              "action"
            ],
            "type": "string",
            "description": "Which dimension to aggregate over. Blank picks the first dimension that suits the chosen corpus. licences: profession / licenseType / status / state. disciplinary: action / profession / licenseType.",
            "default": ""
          },
          "maxResults": {
            "title": "Max records",
            "minimum": 0,
            "type": "integer",
            "description": "Cap the number of records pushed (0 = up to ~10k per run; each record is metered individually, so there is no per-run charge cap). Does not apply in aggregate mode, which returns every group of the chosen dimension.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}