{
  "openapi": "3.0.1",
  "info": {
    "title": "TX Medical Board Licenses - Physicians, PAs & Allied",
    "description": "Texas Medical Board licenses (public open data, 511k records, refreshed daily): the state's physician register (185,801 Physician Licenses) plus physician assistants, residents, radiologic technologists and more. Name, license number, degree, status, discipline, board action and practice address.",
    "version": "0.0",
    "x-build-id": "RAlEZINh719BOEeP3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/j0401~tx-tmb-licenses/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-j0401-tx-tmb-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~tx-tmb-licenses/runs": {
      "post": {
        "operationId": "runs-sync-j0401-tx-tmb-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~tx-tmb-licenses/run-sync": {
      "post": {
        "operationId": "run-sync-j0401-tx-tmb-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "rows",
              "active",
              "aggregate"
            ],
            "type": "string",
            "description": "active = currently-licensed records (the board's live flag), the default view. rows = licenses matching your filters, active or not (turn activeOnly on to restrict). aggregate = one count row per group (see groupBy).",
            "default": "active"
          },
          "licenseType": {
            "title": "License type",
            "type": "string",
            "description": "A license lane, e.g. 'physician', 'physician assistant', 'pa', 'resident', 'radiologic technologist', 'respiratory', 'acupuncturist', 'surgical assistant'. Blank = every type. 'physician' isolates the 185,801 Physician Licenses (exactly - not the training or temporary lanes).",
            "default": ""
          },
          "degree": {
            "title": "Degree",
            "type": "string",
            "description": "Credential code, exact: MD, DO, PA, PIT (resident), MRT, RCP, ... Blank = any.",
            "default": ""
          },
          "status": {
            "title": "Registration status",
            "type": "string",
            "description": "The board's registration status, exact (49 values): ACTIVE, DECEASED, TEXAS RETIRED, CANCELLED BY REQUEST, EXPIRED, NOT ACTIVE, TEMPORARILY SUSPENDED, DELINQUENT, RENEWAL, ... Blank = any.",
            "default": ""
          },
          "discipline": {
            "title": "Disciplinary status",
            "type": "string",
            "description": "The board's discipline flag, exact: NONE, SEE PREVIOUS ORDER, UNDER BOARD ORDER, SUSPENDED BY BOARD, CANCELLED BY BOARD, COMPLAINT DISMISSED, ... Blank = any.",
            "default": ""
          },
          "boardActionOnly": {
            "title": "Has a board action",
            "type": "boolean",
            "description": "When on, returns only licenses carrying a live board-action record (a disciplinary order text). The physician lane carries 7,850 such rows.",
            "default": false
          },
          "licenseNumber": {
            "title": "License number",
            "type": "string",
            "description": "Exact license number, e.g. 'C2582' or 'W8893' - a full profile lookup.",
            "default": ""
          },
          "name": {
            "title": "Name",
            "type": "string",
            "description": "License holder name (fuzzy), matched against first or last name, e.g. 'SMITH'.",
            "default": ""
          },
          "city": {
            "title": "Practice city",
            "type": "string",
            "description": "Practice-address city (fuzzy). Physicians carry a ~85% populated practice city.",
            "default": ""
          },
          "state": {
            "title": "Practice state",
            "type": "string",
            "description": "Two-letter practice state (e.g. TX).",
            "default": ""
          },
          "activeOnly": {
            "title": "Currently licensed only",
            "type": "boolean",
            "description": "When on, returns only records the board flags as currently licensed. Tip: mode=active is the shortcut that turns this on.",
            "default": false
          },
          "issuedFrom": {
            "title": "Issued on or after",
            "type": "string",
            "description": "Only licenses issued on/after this date (YYYY-MM-DD).",
            "default": ""
          },
          "issuedTo": {
            "title": "Issued before",
            "type": "string",
            "description": "Only licenses issued before this date.",
            "default": ""
          },
          "expiresFrom": {
            "title": "Expires on or after",
            "type": "string",
            "description": "Only licenses expiring on/after this date - e.g. a renewal pipeline.",
            "default": ""
          },
          "expiresTo": {
            "title": "Expires before",
            "type": "string",
            "description": "Only licenses expiring before this date.",
            "default": ""
          },
          "groupBy": {
            "title": "Aggregate by",
            "enum": [
              "licenseType",
              "degree",
              "status",
              "discipline",
              "state",
              "expirationYear"
            ],
            "type": "string",
            "description": "Which dimension to aggregate over. licenseType -> the credential mix; degree -> MD vs DO vs PA; status -> how many are active vs lapsed; discipline -> the board-action mix; state -> where physicians practise; expirationYear -> renewal volume ahead.",
            "default": "licenseType"
          },
          "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). An aggregate has at most a few hundred groups.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}