# Osler — 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 and find detailed profiles of lawyers at Osler, Hoskin & Harcourt LLP by filtering across their office locations, roles, practice areas, and bar admission years. Access comprehensive information about individual lawyers to identify the right legal expertise for your needs.

**Category:** Business Directories | **Website:** [www.osler.com/fr/equipe/?s=&office-filter%5B%5D=2](https://www.osler.com/fr/equipe/?s=&office-filter%5B%5D=2) | **Docs:** [parse.bot/marketplace/5342887f-fc30-40b2-a1e4-e22c5669b4e6/osler-com-api](https://parse.bot/marketplace/5342887f-fc30-40b2-a1e4-e22c5669b4e6/osler-com-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-osler-com-api-5342887f/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_lawyer_profile

Retrieve the full profile of a specific Osler lawyer by their URL slug. Returns detailed information including name, role, bar admissions with years, languages spoken, office location, full biography, areas of expertise, education, and contact information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | The URL path segment from the lawyer's profile URL (e.g. 'sandra-abitan-ad-e' from osler.com/en/people/sandra-abitan-ad-e/). Obtainable from search_lawyers results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-osler-com-api-5342887f/get_lawyer_profile \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"slug":"<string>"}'
```

### search_lawyers

Search for lawyers at Osler with optional filters. Returns paginated results with a configurable number of results per page (up to 100). The site serves 10 results per server page, so larger per_page values trigger multiple internal fetches. When bar_years is specified, each result is enriched with bar admission data and only lawyers admitted in any of the specified years are returned.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `bar_years` | string | No | Comma-separated list of bar admission years to filter by (e.g. '2019,2020,2021'). When specified, only lawyers admitted in any of these years are returned. Requires fetching each profile individually, so responses are slower. |
| `office` | string | No | Filter by office location. |
| `page` | integer | No | Page number for pagination. |
| `per_page` | integer | No | Number of results per page, between 1 and 100. |
| `practice_area` | string | No | Filter by practice area name (e.g. 'Capital Markets', 'Artificial Intelligence', 'Mergers and Acquisitions'). Case-insensitive. Numeric IDs are also accepted for backward compatibility. |
| `query` | string | No | Free-text search query matching lawyer names. |
| `role` | string | No | Filter by role category. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-osler-com-api-5342887f/search_lawyers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"bar_years":"<string>","office":"<string>","page":"<integer>","per_page":"<integer>","practice_area":"<string>","query":"<string>","role":"<string>"}'
```
