# Quests ## `GET /api/quests/areas` **List quest areas** Returns every quest zone Battle.net knows, for browsing to its quests. Answers 503 if Battle.net is not configured or did not answer. **Response `200` — Every quest zone.** Model: array of {ref}`QuestAreaSummary ` Type: array of {ref}`QuestAreaSummary ` ## `GET /api/quests/areas/{area_id}` **Get a quest area** Returns one quest zone and the quests that take place there. Answers 404 if Battle.net has no such zone, 503 if Battle.net is not configured or did not answer. **Parameters** | Name | In | Type | Required | Description | |---|---|---|---|---| | `area_id` | path | integer | yes | The quest area's game ID. | **Response `200` — The quest zone and its quests.** Model: {ref}`QuestAreaSchema ` | Field | Type | Required | Description | |---|---|---|---| | `id` | integer | yes | | | `name` | string | yes | | | `quests` | array of {ref}`QuestSummary ` | yes | | ## `GET /api/quests/search` **Search quests** Finds quests with `q` in their title, case-insensitive, best matches first (an exact or prefix match before any other substring match). Battle.net has no quest name search, so this is built from every quest zone's quest list and kept in memory for the process. Answers 503 if Battle.net is not configured or did not answer. **Parameters** | Name | In | Type | Required | Description | |---|---|---|---|---| | `q` | query | string | yes | Text to find in quest titles. | | `limit` | query | integer | no | The most results to return. | **Response `200` — Matching quests, best match first.** Model: array of {ref}`QuestSearchResult ` Type: array of {ref}`QuestSearchResult ` ## `GET /api/quests/{quest_id}` **Get a quest** Returns one quest by its game ID: its description, zone, category, type, level requirements and rewards, plus the other quests it requires, excludes, leads to and the chain leading up to it. Description placeholders like `{class}` appear as Battle.net sends them. Answers 404 if Battle.net has no such quest, 503 if Battle.net is not configured or did not answer. **Parameters** | Name | In | Type | Required | Description | |---|---|---|---|---| | `quest_id` | path | integer | yes | The quest's game ID. | **Response `200` — The quest.** Model: {ref}`QuestSchema ` | Field | Type | Required | Description | |---|---|---|---| | `id` | integer | yes | | | `title` | string | yes | | | `description` | string \| null | no | | | `area` | string \| null | no | | | `category` | string \| null | no | | | `type` | string \| null | no | | | `min_level` | integer \| null | no | | | `max_level` | integer \| null | no | | | `is_repeatable` | boolean | no | | | `is_daily` | boolean | no | | | `is_weekly` | boolean | no | | | `rewards` | {ref}`QuestRewardsSchema ` | yes | | | `requires` | array of {ref}`QuestRequirementRef ` | no | Quests you must have completed first, flattened from Battle.net's condition tree. | | `excludes` | array of {ref}`QuestRef ` | no | Quests that, once completed, lock this one out (Battle.net's `must_be_incomplete` targets). | | `chain` | array of {ref}`QuestRef ` | no | Earlier quests leading up to this one, earliest first; does not include this quest. Found by following the first required prerequisite back at each step, capped at 25 steps. | | `leads_to` | array of {ref}`QuestRef ` | no | Quests whose prerequisites include this one, found by scanning this quest's zone and the zones of any direct follow-ups found there. A follow-up quest that starts in a different, undiscovered zone may be missed. |