{
  "openapi": "3.0.1",
  "info": {
    "title": "Avvo Lawyer Scraper - Attorney Leads & Contacts",
    "description": "Avvo API alternative to scrape attorneys without login. Export lawyer leads to CSV/JSON: firm, phone, bar license, ratings, bio.",
    "version": "1.0",
    "x-build-id": "j3QEKTC7oW27WeYmr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/logiover~avvo-lawyer-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-logiover-avvo-lawyer-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/logiover~avvo-lawyer-scraper/runs": {
      "post": {
        "operationId": "runs-sync-logiover-avvo-lawyer-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/logiover~avvo-lawyer-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-logiover-avvo-lawyer-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",
        "properties": {
          "practiceArea": {
            "title": "Practice area",
            "enum": [
              "personal-injury",
              "car-accident",
              "criminal-defense",
              "dui-dwi",
              "divorce",
              "family",
              "child-custody",
              "child-support",
              "bankruptcy",
              "immigration",
              "employment",
              "estate-planning",
              "probate",
              "real-estate",
              "landlord-tenant",
              "business",
              "contracts",
              "intellectual-property",
              "patents",
              "trademarks",
              "medical-malpractice",
              "workers-compensation",
              "social-security-disability",
              "wrongful-termination",
              "civil-rights",
              "tax",
              "foreclosure",
              "traffic-tickets",
              "domestic-violence",
              "wills",
              "trusts",
              "elder-law",
              "consumer-protection",
              "insurance",
              "products-liability",
              "sexual-harassment",
              "appeals",
              "collections",
              "litigation",
              "securities",
              "environmental",
              "administrative-law",
              "lawyer"
            ],
            "type": "string",
            "description": "Legal practice area to search. Combined with Location to build the Avvo search URL. Leave as the default for a broad listing. Ignored if Start URLs are provided.",
            "default": "personal-injury"
          },
          "location": {
            "title": "Location (US 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": "US state to narrow the search. Leave empty for a NATIONWIDE listing (all US states), bounded by Max results. Ignored if Start URLs are provided. For a specific city, use Start URLs instead.",
            "default": ""
          },
          "startUrls": {
            "title": "Start URLs (advanced)",
            "type": "array",
            "description": "Optional. Avvo search URLs (e.g. https://www.avvo.com/divorce-lawyer/ny.html) or attorney profile URLs (e.g. https://www.avvo.com/attorneys/...html). Overrides Practice area + Location.",
            "items": {
              "type": "string"
            }
          },
          "fetchProfileDetails": {
            "title": "Fetch full profile details (recommended)",
            "type": "boolean",
            "description": "Keep ON (default). Avvo now serves only name + profile URL on its SEARCH pages, so the FULL record — phone, address, practice areas, rating, reviews, bar license, languages, awards, geo & bio — is only available by opening each attorney profile. When ON, the actor visits every profile and returns that complete record. Turn OFF only if you want a fast name + profile-URL list and will enrich it yourself.",
            "default": true
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of attorneys to collect. Keep the default for a fast, cheap run; raise it to pull thousands of leads. 0 = unlimited (paginates 100+ pages).",
            "default": 200
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Avvo is fronted by Cloudflare — US RESIDENTIAL proxy is required. Leave the default.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}