# Wyzant — 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 qualified tutors on Wyzant, view their detailed profiles, ratings, reviews, and expert answers to find the perfect match for your learning needs. Browse trending subjects, get subject suggestions, and compare tutors based on their expertise and student feedback all in one place.

**Category:** Education | **Website:** [wyzant.com/](https://wyzant.com/) | **Docs:** [parse.bot/marketplace/31f470a0-c537-44f7-a982-f8214d81e978/wyzant-com-api](https://parse.bot/marketplace/31f470a0-c537-44f7-a982-f8214d81e978/wyzant-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/wyzant/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get subject autocomplete

Get subject name suggestions for a partial search query. Returns an array of matching subject name strings ordered by relevance. Useful for building autocomplete search interfaces before calling search_tutors.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Partial subject name to autocomplete (e.g. 'calc', 'phys'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/wyzant/get-subject-autocomplete \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

### Get tutor answers

Get expertise answers submitted by a specific tutor on Wyzant's Ask an Expert community. Returns questions the tutor has answered with topics and links. Not paginated; returns all available answers from the tutor's answer page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `tutor_id` | string | Yes | The tutor's user ID (from search_tutors results[*].id). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/wyzant/get-tutor-answers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"tutor_id":"<string>"}'
```

### Get tutor profile

Fetch the full profile for one tutor by ID. Returns biography, all subjects taught, hourly rate, aggregate rating, and a weekly availability map (day-name to formatted time ranges in the requested time zone). The profile page is HTML-rendered; data is extracted from embedded JSON-LD and a separate availability API call.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `tutor_id` | string | Yes | The tutor's user ID (from search_tutors results[*].id). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/wyzant/get-tutor-profile \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"tutor_id":"<string>"}'
```

### Get tutor reviews

Get paginated reviews for a specific tutor. Returns 10 reviews per page extracted from the tutor's profile page JSON-LD. Page numbering is 1-indexed.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page_number` | integer | No | Page number (1-indexed). |
| `tutor_id` | string | Yes | The tutor's user ID (from search_tutors results[*].id). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/wyzant/get-tutor-reviews \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page_number":"<integer>","tutor_id":"<string>"}'
```

### List trending subjects

List currently trending/popular subjects from the Wyzant homepage. Returns an array of subject name strings representing what students are currently searching for. No input parameters required.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/wyzant/list-trending-subjects \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Search tutors

Full-text search over Wyzant's tutor directory by subject keyword. Supports filters for rate range, online/in-person availability, instant booking, and background checks. Paginates via page_number (0-indexed). Each result is a TutorSummary with enough data for comparison; drill into get_tutor_profile for the full bio and weekly availability.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `background_check` | boolean | No | Filter for background-checked tutors. |
| `in_person` | boolean | No | Filter for in-person tutors. |
| `instant_book` | boolean | No | Filter for instant-bookable tutors. |
| `is_online` | boolean | No | Filter for online tutors. |
| `keyword` | string | Yes | Subject or keyword to search for tutors (e.g. 'math', 'chemistry', 'SAT'). |
| `max_rate` | integer | No | Maximum hourly rate filter in USD. |
| `min_rate` | integer | No | Minimum hourly rate filter in USD. |
| `page_number` | integer | No | Page number (0-indexed). |
| `page_size` | integer | No | Number of results per page. |
| `sort` | integer | No | Sort order for results. |
| `time_zone` | string | No | IANA time zone name for availability calculations. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/wyzant/search-tutors \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"background_check":"<boolean>","in_person":"<boolean>","instant_book":"<boolean>","is_online":"<boolean>","keyword":"<string>","max_rate":"<integer>","min_rate":"<integer>","page_number":"<integer>","page_size":"<integer>","sort":"<integer>","time_zone":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.