{
  "openapi": "3.0.1",
  "info": {
    "title": "CA State Bar Attorney Search Scraper",
    "description": "Search the California State Bar's public attorney licensee directory by name, bar number, or advanced filters. Get license status, admission date, discipline history, standing, address, and self-reported practice areas.",
    "version": "1.0",
    "x-build-id": "x1o7BXYkdeJSEUMIC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~ca-state-bar-attorney-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-ca-state-bar-attorney-search",
        "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~ca-state-bar-attorney-search/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-ca-state-bar-attorney-search",
        "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~ca-state-bar-attorney-search/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-ca-state-bar-attorney-search",
        "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",
              "byBarNumber",
              "advanced"
            ],
            "type": "string",
            "description": "What to search.",
            "default": "search"
          },
          "freeText": {
            "title": "Name / firm / bar number",
            "type": "string",
            "description": "(mode=search) Free-text query - last name, first name, firm name, or an exact bar number, same as the Quick Search box on the State Bar site.",
            "default": "smith"
          },
          "soundsLike": {
            "title": "Sounds-like matching",
            "type": "boolean",
            "description": "(mode=search) Enable phonetic sounds-like matching on the name instead of exact substring matching.",
            "default": false
          },
          "barNumbers": {
            "title": "Bar numbers",
            "type": "array",
            "description": "(mode=byBarNumber) One or more California State Bar license numbers to look up directly.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "lastName": {
            "title": "Last name",
            "type": "string",
            "description": "(mode=advanced) Attorney last name."
          },
          "lastNameMatchType": {
            "title": "Last name match type",
            "enum": [
              "b",
              "c",
              "e",
              "s"
            ],
            "type": "string",
            "description": "(mode=advanced) How to match lastName.",
            "default": "b"
          },
          "firstName": {
            "title": "First name",
            "type": "string",
            "description": "(mode=advanced) Attorney first name."
          },
          "firstNameMatchType": {
            "title": "First name match type",
            "enum": [
              "b",
              "c",
              "e",
              "s"
            ],
            "type": "string",
            "description": "(mode=advanced) How to match firstName.",
            "default": "b"
          },
          "middleName": {
            "title": "Middle name",
            "type": "string",
            "description": "(mode=advanced) Attorney middle name."
          },
          "middleNameMatchType": {
            "title": "Middle name match type",
            "enum": [
              "b",
              "c",
              "e",
              "s"
            ],
            "type": "string",
            "description": "(mode=advanced) How to match middleName.",
            "default": "b"
          },
          "firmName": {
            "title": "Firm name",
            "type": "string",
            "description": "(mode=advanced) Law firm name."
          },
          "firmNameMatchType": {
            "title": "Firm name match type",
            "enum": [
              "b",
              "c",
              "e"
            ],
            "type": "string",
            "description": "(mode=advanced) How to match firmName.",
            "default": "b"
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "(mode=advanced) Attorney registered city."
          },
          "cityMatchType": {
            "title": "City match type",
            "enum": [
              "b",
              "c",
              "e",
              "s"
            ],
            "type": "string",
            "description": "(mode=advanced) How to match city.",
            "default": "b"
          },
          "state": {
            "title": "State",
            "enum": [
              "",
              "AL",
              "AK",
              "AZ",
              "AR",
              "CA",
              "CO",
              "CT",
              "DE",
              "DC",
              "FL",
              "GA",
              "HI",
              "ID",
              "IL",
              "IN",
              "IA",
              "KS",
              "KY",
              "LA",
              "ME",
              "MD",
              "MA",
              "MI",
              "MN",
              "MS",
              "MO",
              "MT",
              "NE",
              "NV",
              "NH",
              "NJ",
              "NM",
              "NY",
              "NC",
              "ND",
              "OH",
              "OK",
              "OR",
              "PA",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VT",
              "VA",
              "WA",
              "WV",
              "WI",
              "WY"
            ],
            "type": "string",
            "description": "(mode=advanced) Attorney registered US state.",
            "default": ""
          },
          "zipCode": {
            "title": "ZIP code",
            "type": "string",
            "description": "(mode=advanced) Attorney registered 5-digit ZIP code."
          },
          "district": {
            "title": "State Bar district",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "0"
            ],
            "type": "string",
            "description": "(mode=advanced) California State Bar geographic district.",
            "default": ""
          },
          "county": {
            "title": "County",
            "enum": [
              "",
              "**",
              "ZZ",
              "AL",
              "AP",
              "AM",
              "BU",
              "CA",
              "CO",
              "CC",
              "DN",
              "ED",
              "FR",
              "GL",
              "HM",
              "IM",
              "IN",
              "KN",
              "KI",
              "LK",
              "LS",
              "LA",
              "MA",
              "MR",
              "MP",
              "MN",
              "MC",
              "MD",
              "MO",
              "MT",
              "NP",
              "NV",
              "OR",
              "PL",
              "PM",
              "RV",
              "SA",
              "SO",
              "SR",
              "SD",
              "SF",
              "SJ",
              "SP",
              "SM",
              "SB",
              "SC",
              "SZ",
              "SH",
              "SI",
              "SK",
              "SL",
              "SN",
              "ST",
              "SU",
              "TE",
              "TR",
              "TU",
              "TL",
              "VN",
              "YO",
              "YU"
            ],
            "type": "string",
            "description": "(mode=advanced) California county (or Statewide / Non-California).",
            "default": ""
          },
          "legalSpecialty": {
            "title": "Certified legal specialty",
            "enum": [
              "",
              "10",
              "08",
              "07",
              "101",
              "102",
              "103",
              "104",
              "01",
              "105",
              "106",
              "06",
              "04",
              "107",
              "09",
              "05",
              "111",
              "11",
              "109",
              "110",
              "112",
              "03",
              "02"
            ],
            "type": "string",
            "description": "(mode=advanced) State Bar Board-certified legal specialty.",
            "default": ""
          },
          "languageSpoken": {
            "title": "Language spoken",
            "enum": [
              "",
              "6",
              "50",
              "51",
              "49",
              "7",
              "8",
              "9",
              "52",
              "53",
              "54",
              "55",
              "48",
              "56",
              "10",
              "39",
              "57",
              "58",
              "59",
              "60",
              "61",
              "43",
              "62",
              "41",
              "63",
              "11",
              "64",
              "44",
              "12",
              "65",
              "13",
              "14",
              "15",
              "66",
              "16",
              "17",
              "18",
              "19",
              "45",
              "67",
              "68",
              "69",
              "20",
              "70",
              "21",
              "71",
              "72",
              "5",
              "73",
              "22",
              "74",
              "75",
              "76",
              "77",
              "2",
              "78",
              "79",
              "80",
              "81",
              "23",
              "82",
              "46",
              "83",
              "84",
              "85",
              "86",
              "87",
              "24",
              "25",
              "26",
              "27",
              "42",
              "28",
              "29",
              "30",
              "88",
              "31",
              "89",
              "90",
              "91",
              "92",
              "32",
              "1",
              "93",
              "47",
              "94",
              "3",
              "40",
              "33",
              "34",
              "35",
              "95",
              "96",
              "97",
              "36",
              "98",
              "37",
              "99",
              "4",
              "38"
            ],
            "type": "string",
            "description": "(mode=advanced) Additional language self-reported by the attorney or their staff.",
            "default": ""
          },
          "practiceArea": {
            "title": "Self-reported practice area",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "12",
              "13",
              "14",
              "15",
              "16",
              "17",
              "18",
              "19",
              "20",
              "21",
              "22",
              "23",
              "24",
              "25",
              "26",
              "27",
              "28",
              "29",
              "30",
              "31",
              "32",
              "33",
              "65",
              "34",
              "35",
              "36",
              "37",
              "38",
              "39",
              "40",
              "41",
              "42",
              "66",
              "43",
              "44",
              "45",
              "46",
              "47",
              "48",
              "49",
              "50",
              "51",
              "52",
              "53",
              "54",
              "55",
              "56",
              "57",
              "58",
              "59",
              "60",
              "61",
              "62",
              "63",
              "64"
            ],
            "type": "string",
            "description": "(mode=advanced) Self-reported practice area. The State Bar does not verify the accuracy of self-reported practice areas.",
            "default": ""
          },
          "statusFilter": {
            "title": "Filter by license status",
            "enum": [
              "",
              "Active",
              "Inactive",
              "Not Eligible",
              "Disbarred",
              "Resigned",
              "Judge",
              "Deceased",
              "RIHC",
              "RLAA",
              "RMSA",
              "RSLA"
            ],
            "type": "string",
            "description": "Only emit attorneys whose current license status matches. Applied after fetching (client-side); the upstream search itself has no status filter.",
            "default": ""
          },
          "fetchFullProfile": {
            "title": "Fetch full profile",
            "type": "boolean",
            "description": "Fetch each attorney's full Licensee Detail page for address, phone, website, law school, CLA sections, self-reported practice areas, languages, and license/discipline history. Disable for faster bulk name searches that only need the summary row (name, status, bar number, city, admission date).",
            "default": true
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Hard cap on emitted attorney records.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}