{
  "openapi": "3.1.0",
  "info": {
    "title": "US Lawyers API",
    "version": "1.0.0",
    "description": "Search 14 state bar directories through one API: verify an attorney's licence, status and admission.\n\nLook up US attorneys by jurisdiction through one normalized API. Every state bar publishes its directory with a different search form, so each state is an adapter that declares its own search criteria: list the active states and the fields each one supports, then run a validated search to retrieve the matching attorney records. Fourteen jurisdictions are live — California, Texas, Georgia, Colorado, Oregon, Maryland, Delaware, Arizona, Louisiana, Maine, Tennessee, Montana, Utah, and North Carolina — returning fields such as license status, admission date, firm/address, phone, and (where published) email and practice areas, sourced directly from each official bar directory. More states are being added.",
    "contact": {
      "name": "Data and APIs",
      "url": "https://dataandapis.com/contact"
    },
    "termsOfService": "https://dataandapis.com/terms-of-service",
    "license": {
      "name": "Data and APIs Terms of Service",
      "url": "https://dataandapis.com/terms-of-service"
    },
    "x-logo": {
      "url": "https://dataandapis.com/images/us-lawyers.webp"
    }
  },
  "externalDocs": {
    "description": "Documentation, live tester and pricing",
    "url": "https://dataandapis.com/apis/us-lawyers"
  },
  "servers": [
    {
      "url": "https://api-us-lawyers.dataandapis.com"
    }
  ],
  "tags": [
    {
      "name": "Data",
      "description": "US Lawyers API belongs to the Data category of the Data and APIs catalog."
    }
  ],
  "paths": {
    "/v1/states/{code}": {
      "get": {
        "operationId": "getState",
        "summary": "Get State",
        "description": "Get State endpoint of the US Lawyers API. Costs 10 tokens per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/us-lawyers/get-state"
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "CA"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "code": "CA",
                  "name": "California",
                  "bar": "The State Bar of California",
                  "requireAny": [],
                  "criteria": [
                    {
                      "name": "barNumber",
                      "label": "Bar Number",
                      "type": "string",
                      "required": true,
                      "description": "California bar/license number.",
                      "example": "122821"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/states": {
      "get": {
        "operationId": "listStates",
        "summary": "List States",
        "description": "List States endpoint of the US Lawyers API. Costs 10 tokens per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/us-lawyers/list-states"
        },
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "count": 1,
                  "states": [
                    {
                      "code": "CA",
                      "name": "California",
                      "bar": "The State Bar of California",
                      "requireAny": [],
                      "criteria": [
                        {
                          "name": "barNumber",
                          "label": "Bar Number",
                          "type": "string",
                          "required": true,
                          "description": "California bar/license number.",
                          "example": "122821"
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    },
    "/v1/states/{code}/search": {
      "get": {
        "operationId": "searchAttorneys",
        "summary": "Search Attorneys",
        "description": "Search Attorneys endpoint of the US Lawyers API. Costs 10 tokens per call.",
        "externalDocs": {
          "url": "https://dataandapis.com/apis/us-lawyers/search-attorneys"
        },
        "parameters": [
          {
            "name": "code",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "CA"
          },
          {
            "name": "barNumber",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "example": "122821"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                },
                "example": {
                  "state": "CA",
                  "source": "The State Bar of California",
                  "count": 1,
                  "results": [
                    {
                      "barNumber": "122821",
                      "name": "Gary Carl Nelson",
                      "licenseStatus": "Active",
                      "address": "Law Ofc Gary Nelson, 421 13th St, Modesto, CA 95354-2439",
                      "phone": "209-524-9200",
                      "fax": "209-524-9300",
                      "website": "www.garynelsonlaw.com",
                      "county": null,
                      "district": null,
                      "sections": [
                        "Labor & Employment",
                        "Workers' Compensation"
                      ],
                      "lawSchool": "McGeorge SOL Univ of the Pacific; CA",
                      "undergraduateSchool": null,
                      "admissionDate": "6/10/1986",
                      "history": [
                        {
                          "date": "Present",
                          "licenseStatus": "Active",
                          "discipline": "",
                          "administrativeAction": ""
                        },
                        {
                          "date": "6/10/1986",
                          "licenseStatus": "Admitted to the State Bar of California",
                          "discipline": "",
                          "administrativeAction": ""
                        }
                      ],
                      "detailUrl": "https://apps.calbar.ca.gov/attorney/Licensee/Detail/122821",
                      "source": "The State Bar of California"
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "Missing or invalid API key"
          },
          "402": {
            "description": "Subscription past due; the response carries a payment_url"
          },
          "429": {
            "description": "Monthly token allowance exhausted"
          }
        },
        "security": [
          {
            "ApiKey": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Api-Key",
        "description": "Create a free key at https://dataandapis.com/sign-up. 500 tokens a month on the Free plan; this API costs 10 tokens per call."
      }
    }
  },
  "security": [
    {
      "ApiKey": []
    }
  ]
}