{
  "openapi": "3.0.1",
  "info": {
    "title": "Lawyer Legion Scraper",
    "description": "Scrape Lawyer Legion, a US attorney directory with state-bar certified specialists. Search attorneys by state and practice area. Extracts name, firm, phone, address, practice areas, bar admissions, education, certifications, and more.",
    "version": "1.0",
    "x-build-id": "sEmOd0RL2At6vbfve"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crawlerbros~lawyerlegion-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crawlerbros-lawyerlegion-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~lawyerlegion-scraper/runs": {
      "post": {
        "operationId": "runs-sync-crawlerbros-lawyerlegion-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~lawyerlegion-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-crawlerbros-lawyerlegion-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",
              "byUrls"
            ],
            "type": "string",
            "description": "What to scrape.",
            "default": "search"
          },
          "state": {
            "title": "State (mode=search)",
            "enum": [
              "alabama",
              "alaska",
              "arizona",
              "arkansas",
              "california",
              "colorado",
              "connecticut",
              "delaware",
              "district-of-columbia",
              "florida",
              "georgia",
              "hawaii",
              "idaho",
              "illinois",
              "indiana",
              "iowa",
              "kansas",
              "kentucky",
              "louisiana",
              "maine",
              "maryland",
              "massachusetts",
              "michigan",
              "minnesota",
              "mississippi",
              "missouri",
              "montana",
              "nebraska",
              "nevada",
              "new-hampshire",
              "new-jersey",
              "new-mexico",
              "new-york",
              "north-carolina",
              "north-dakota",
              "ohio",
              "oklahoma",
              "oregon",
              "pennsylvania",
              "rhode-island",
              "south-carolina",
              "south-dakota",
              "tennessee",
              "texas",
              "utah",
              "vermont",
              "virginia",
              "washington",
              "west-virginia",
              "wisconsin",
              "wyoming"
            ],
            "type": "string",
            "description": "US state slug (e.g. `florida`, `new-york`, `california`). Required for mode=search.",
            "default": "florida"
          },
          "practiceArea": {
            "title": "Practice area (mode=search)",
            "enum": [
              "personal-injury",
              "criminal-defense",
              "family-law",
              "divorce",
              "bankruptcy",
              "employment-law",
              "immigration-law",
              "real-estate-law",
              "medical-malpractice",
              "workers-compensation",
              "wrongful-death",
              "motor-vehicle-accidents",
              "dui-dwi",
              "estate-planning",
              "estate-probate-law",
              "social-security-disability-law",
              "tax-law",
              "business-law",
              "intellectual-property-law",
              "civil-rights",
              "consumer-law",
              "elder-law",
              "appellate-law",
              "admiralty-maritime-law",
              "alternative-dispute-resolution",
              "aviation-law",
              "adoption",
              "alimony-spousal-support",
              "child-custody-visitation",
              "child-support",
              "class-action",
              "civil-trial-law",
              "commercial-real-estate-law",
              "construction-law",
              "contracts",
              "copyrights-trademarks",
              "criminal-appellate-law",
              "discrimination",
              "divorce-mediation",
              "dog-bites",
              "domestic-violence",
              "drug-crimes",
              "federal-crimes",
              "health-law",
              "insurance-law",
              "international-law",
              "juvenile-defense",
              "landlord-tenant-law",
              "legal-malpractice",
              "lemon-law",
              "mass-tort",
              "motorcycle-accidents",
              "nursing-home-abuse",
              "patents",
              "pedestrian-accidents",
              "police-misconduct",
              "premises-liability",
              "probate",
              "products-liability",
              "property-division",
              "residential-real-estate-law",
              "sex-crimes",
              "sexual-harassment",
              "spinal-cord-injuries",
              "traffic-tickets",
              "trusts",
              "visas",
              "white-collar-crime",
              "wills",
              "workplace-injuries",
              "wrongful-termination",
              "boating-accidents",
              "brain-injury",
              "commercial-truck-accidents",
              "firearm-weapon-charges",
              "marijuana-law",
              "natural-resources-oil-gas",
              "naturalization-citizenship",
              "prenuptial-marital-agreements",
              "probation-violations",
              "seal-or-expunge-criminal-record",
              "business-bankruptcy",
              "consumer-bankruptcy",
              "abc-business-bankruptcy-law",
              "abc-consumer-bankruptcy-law",
              "collections",
              "administrative-law"
            ],
            "type": "string",
            "description": "Practice area slug. Defaults to `personal-injury` if not set.",
            "default": "personal-injury"
          },
          "profileUrls": {
            "title": "Profile URLs (mode=byUrls)",
            "type": "array",
            "description": "Direct Lawyer Legion attorney profile URLs (e.g. `https://lawyers.lawyerlegion.com/florida/christian-dietrich-searcy-27004317`).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "enrichProfiles": {
            "title": "Enrich with full profile data",
            "type": "boolean",
            "description": "Visit each attorney profile page to extract biography, bar admissions, education, certifications, federal court admissions. Slower but yields much richer data.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on number of attorney records emitted.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}