# Jetpunk — 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 discover trivia quizzes from JetPunk by category or tag, then access detailed quiz questions and answers to test your knowledge or build custom trivia experiences. Browse thousands of quizzes organized by topic and retrieve complete question/answer data for any quiz you find.

**Category:** Education | **Website:** [jetpunk.com/](https://jetpunk.com/) | **Docs:** [parse.bot/marketplace/c612844a-71ad-4c94-88f9-5f0068761f95/jetpunk-com-api](https://parse.bot/marketplace/c612844a-71ad-4c94-88f9-5f0068761f95/jetpunk-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-jetpunk-com-api-c612844a/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_quiz

Get full details of a quiz, including its title, description, categories, column headers, and all questions/answers.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `path` | string | Yes | The URL path of the quiz (e.g. '/quizzes/european-capitals-quiz'). Obtainable from search_quizzes or get_quizzes_by_tag results. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jetpunk-com-api-c612844a/get_quiz \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"path":"<string>"}'
```

### get_quizzes_by_tag

List quizzes in a specific category or tag. Returns a paginated list of quizzes belonging to that tag.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `tag` | string | Yes | Tag or category name (e.g. 'geography', 'history', 'science') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jetpunk-com-api-c612844a/get_quizzes_by_tag \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","tag":"<string>"}'
```

### search_quizzes

Search for quizzes by keyword on JetPunk. Returns a paginated list of matching quizzes with their paths and take counts.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search keyword (e.g. 'Capitals', 'Countries') |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-jetpunk-com-api-c612844a/search_quizzes \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
