{
  "openapi": "3.0.1",
  "info": {
    "title": "NY Office of the Professions License Search",
    "description": "Verify New York State professional licenses (nursing, medicine, pharmacy, psychology, engineering, accountancy, dentistry, veterinary and 80+ other professions), business entities, pharmacy establishments, and permits by name or ID. Returns status, dates, and enforcement history.",
    "version": "1.0",
    "x-build-id": "10axJIxTEsEeaJNMF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~ny-office-of-professions-license-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-ny-office-of-professions-license-scraper",
        "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/crawlerbros~ny-office-of-professions-license-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-ny-office-of-professions-license-scraper",
        "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/crawlerbros~ny-office-of-professions-license-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-ny-office-of-professions-license-scraper",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "byLicenseNumber",
              "businessEntitySearch",
              "byBusinessEntityId",
              "pharmacySearch",
              "byPharmacyRegistrationNumber",
              "permitteeSearch"
            ],
            "type": "string",
            "description": "What to fetch.",
            "default": "search"
          },
          "profession": {
            "title": "Profession (mode=search/byLicenseNumber)",
            "enum": [
              "007",
              "008",
              "025",
              "003",
              "067",
              "057",
              "078",
              "048",
              "091",
              "085",
              "070",
              "094",
              "092",
              "090",
              "CN",
              "005",
              "093",
              "051",
              "069",
              "084",
              "050",
              "059",
              "083",
              "079",
              "082",
              "081",
              "060",
              "061",
              "016",
              "095",
              "014",
              "073",
              "015",
              "004",
              "071",
              "006",
              "072",
              "018",
              "010",
              "019",
              "027",
              "009",
              "011",
              "012",
              "013",
              "028",
              "043",
              "030",
              "029",
              "031",
              "032",
              "033",
              "034",
              "045",
              "035",
              "036",
              "037",
              "044",
              "038",
              "039",
              "040",
              "041",
              "042",
              "022",
              "063",
              "064",
              "055",
              "056",
              "089",
              "086",
              "020",
              "021",
              "062",
              "066",
              "023",
              "065",
              "026",
              "088",
              "068",
              "049",
              "002",
              "024",
              "052",
              "053",
              "058",
              "075",
              "074",
              "076",
              "077"
            ],
            "type": "string",
            "description": "The profession/board to search within. Every individual-licensee search is scoped to exactly one profession.",
            "default": "022"
          },
          "licenseeName": {
            "title": "Licensee name (mode=search)",
            "type": "string",
            "description": "Last name, or 'Last First', e.g. `Smith` or `Smith John`. At least 2 characters.",
            "default": "Smith"
          },
          "licenseNumber": {
            "title": "License number (mode=byLicenseNumber)",
            "type": "string",
            "description": "Exact license/registration number for the selected profession, e.g. `500000` or `N10859`."
          },
          "businessProfession": {
            "title": "Business entity profession (mode=businessEntitySearch/byBusinessEntityId)",
            "enum": [
              "AC",
              "025",
              "ALL",
              "017",
              "003",
              "067",
              "057",
              "078",
              "048",
              "091",
              "085",
              "070",
              "094",
              "092",
              "005",
              "093",
              "049",
              "051",
              "050",
              "059",
              "060",
              "061",
              "016",
              "088",
              "095",
              "014",
              "047",
              "015",
              "004",
              "071",
              "073",
              "072",
              "010",
              "006",
              "027",
              "009",
              "011",
              "012",
              "013",
              "018",
              "028",
              "043",
              "030",
              "031",
              "032",
              "033",
              "034",
              "045",
              "035",
              "036",
              "037",
              "044",
              "038",
              "039",
              "040",
              "041",
              "042",
              "063",
              "064",
              "055",
              "056",
              "089",
              "086",
              "020",
              "066",
              "062",
              "023",
              "065",
              "026",
              "019",
              "068",
              "022",
              "024",
              "052",
              "053",
              "058",
              "075",
              "076"
            ],
            "type": "string",
            "description": "The profession/board to search business entities (PCs, PLLCs, partnerships, firms) within. Pick `All Business Entities` to search across every profession at once.",
            "default": "003"
          },
          "businessEntityName": {
            "title": "Business entity name (mode=businessEntitySearch)",
            "type": "string",
            "description": "Business/firm name, e.g. `Smith Architecture` or `Medical`. At least 2 characters."
          },
          "pscNumber": {
            "title": "PSC number (mode=byBusinessEntityId)",
            "type": "string",
            "description": "Exact professional service corporation/entity number for the selected business profession, e.g. `035673`."
          },
          "pharmacyName": {
            "title": "Pharmacy establishment name (mode=pharmacySearch)",
            "type": "string",
            "description": "Pharmacy legal or trade name, e.g. `CVS` or `Walgreens`. At least 2 characters."
          },
          "pharmacyRegistrationNumber": {
            "title": "Pharmacy registration number (mode=byPharmacyRegistrationNumber)",
            "type": "string",
            "description": "Exact 6-digit pharmacy establishment registration number, e.g. `017682`."
          },
          "permitProfession": {
            "title": "Permit profession (mode=permitteeSearch)",
            "enum": [
              "007",
              "025",
              "003",
              "067",
              "057",
              "078",
              "048",
              "091",
              "085",
              "070",
              "094",
              "092",
              "090",
              "005",
              "093",
              "051",
              "069",
              "084",
              "050",
              "059",
              "083",
              "079",
              "082",
              "081",
              "060",
              "061",
              "016",
              "095",
              "014",
              "073",
              "015",
              "004",
              "071",
              "006",
              "072",
              "018",
              "010",
              "019",
              "027",
              "009",
              "011",
              "012",
              "013",
              "028",
              "043",
              "030",
              "031",
              "032",
              "033",
              "034",
              "045",
              "035",
              "036",
              "037",
              "044",
              "038",
              "039",
              "040",
              "041",
              "042",
              "022",
              "063",
              "064",
              "055",
              "056",
              "089",
              "086",
              "020",
              "062",
              "066",
              "023",
              "065",
              "026",
              "088",
              "068",
              "049",
              "002",
              "024",
              "052",
              "053",
              "058",
              "075",
              "076"
            ],
            "type": "string",
            "description": "The profession/board to search limited/temporary permits within.",
            "default": "060"
          },
          "permitteeName": {
            "title": "Permittee name (mode=permitteeSearch)",
            "type": "string",
            "description": "Permit holder's last name, or 'Last First', e.g. `Smith`. At least 2 characters."
          },
          "fetchFullDetails": {
            "title": "Fetch full details for search results",
            "type": "boolean",
            "description": "For mode=search and mode=businessEntitySearch, fetch each result's full record (status, dates, enforcement/discipline actions, principals) with one extra API call per result. Turn off for faster, lighter-weight name/address-only listings.",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Hard cap on emitted records.",
            "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}