# Azbar — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for Arizona lawyers by name, location, specialty, or company to find the right legal professional for your needs. View detailed lawyer profiles including their specializations, licensed jurisdictions, law school, admission history, and any disciplinary records.

**Category:** Business Directories | **Website:** [www.azbar.org/for-legal-professionals/practice-tools-management/member-directory/](https://www.azbar.org/for-legal-professionals/practice-tools-management/member-directory/) | **Docs:** [parse.bot/marketplace/067cade4-ff5e-47cc-95d9-451c392a8acc/azbar-org-api](https://parse.bot/marketplace/067cade4-ff5e-47cc-95d9-451c392a8acc/azbar-org-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-azbar-org-api-067cade4/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_lawyer_detail

Get a detailed profile for a specific lawyer by their entity number. Returns comprehensive info including specializations, jurisdictions, law school, admission date, discipline history (raw HTML), areas of practice, liability insurance status, phone numbers, and full address. The entity_number is obtained from search_lawyers results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `entity_number` | integer | Yes | The lawyer's entity number (from search_lawyers results). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-azbar-org-api-067cade4/get_lawyer_detail \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_number":"<integer>"}'
```

### search_lawyers

Search and list lawyers from the Arizona State Bar directory. Returns paginated results with optional filters for name, city, state, firm, and specialization. With no filters, returns all ~35,000+ members alphabetically. Each result includes basic contact info, bar number, member status, and firm affiliation.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | No | Filter by city (e.g. Phoenix, Tucson, Scottsdale). |
| `company` | string | No | Filter by firm/company name. |
| `first_name` | string | No | Filter by first name. |
| `last_name` | string | No | Filter by last name. |
| `page` | integer | No | Page number (1-based). |
| `page_size` | integer | No | Results per page (max 500). |
| `specialization` | string | No | Filter by specialization (e.g. Injury & Wrongful Death Litigation, Real Estate, Bankruptcy). |
| `state` | string | No | Filter by state abbreviation (e.g. AZ, CA). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-azbar-org-api-067cade4/search_lawyers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"city":"<string>","company":"<string>","first_name":"<string>","last_name":"<string>","page":"<integer>","page_size":"<integer>","specialization":"<string>","state":"<string>"}'
```
