# Super User — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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.

> Access questions, answers, and comments from Super User to find solutions to technical problems, search for specific topics, and explore trending discussions across the community. View user profiles, track site activity, and discover the hottest questions trending across the Stack Exchange network.

**Category:** Developer Tools | **Website:** [superuser.com/](https://superuser.com/) | **Docs:** [parse.bot/marketplace/4e16d8b0-2bc4-44da-a879-569a24cbaee2/superuser-com-api](https://parse.bot/marketplace/4e16d8b0-2bc4-44da-a879-569a24cbaee2/superuser-com-api)

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

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/super-user/`
**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 hot network questions

Fetch the current Hot Network Questions displayed on Super User's sidebar, sourced from across the entire Stack Exchange network. Returns titles, links, and site names. No pagination; returns a single batch.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/super-user/get-hot-network-questions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### Get question answers

Fetch answers for a specific question by its numeric ID. Returns answer bodies with HTML, scores, and acceptance status. Paginates via integer page parameter.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `order` | string | No | Result ordering. |
| `page` | integer | No | Page number for pagination. |
| `pagesize` | integer | No | Number of items per page (max 100). |
| `question_id` | string | Yes | Numeric ID of the question (e.g. 560866). |
| `sort` | string | No | Sort order for answers. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/super-user/get-question-answers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"order":"<string>","page":"<integer>","pagesize":"<integer>","question_id":"<string>","sort":"<string>"}'
```

### Get question comments

Fetch comments on a specific question by its numeric ID. Returns comment text, scores, and owner information. Paginates via integer page parameter.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `order` | string | No | Result ordering. |
| `page` | integer | No | Page number for pagination. |
| `pagesize` | integer | No | Number of items per page (max 100). |
| `question_id` | string | Yes | Numeric ID of the question (e.g. 1797834). |
| `sort` | string | No | Sort order for comments. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/super-user/get-question-comments \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"order":"<string>","page":"<integer>","pagesize":"<integer>","question_id":"<string>","sort":"<string>"}'
```

### Get question details

Fetch full details of a single question by its numeric ID, including the HTML body content. Returns a single-item array. Use question_id values from get_questions or search_questions results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `question_id` | string | Yes | Numeric ID of the question (e.g. 560866). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/super-user/get-question-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"question_id":"<string>"}'
```

### Get questions

Fetch a paginated list of questions from Super User with optional tag filtering and sorting. Returns questions with full body HTML. Paginates via integer page parameter; has_more indicates additional pages. Each question includes owner info, tags, scores, and timestamps as Unix epoch integers.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `order` | string | No | Result ordering. |
| `page` | integer | No | Page number for pagination. |
| `pagesize` | integer | No | Number of items per page (max 100). |
| `sort` | string | No | Sort order for questions. |
| `tagged` | string | No | Filter by tag name (e.g. windows-10, linux, networking). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/super-user/get-questions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"order":"<string>","page":"<integer>","pagesize":"<integer>","sort":"<string>","tagged":"<string>"}'
```

### Search questions

Search Super User questions using a text query with optional tag filtering. Uses the Stack Exchange advanced search endpoint for relevance-ranked results. Paginates via integer page parameter.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `order` | string | No | Result ordering. |
| `page` | integer | No | Page number for pagination. |
| `pagesize` | integer | No | Number of items per page (max 100). |
| `query` | string | Yes | Search query text (e.g. bluetooth, wifi setup, Windows 10 printing). |
| `sort` | string | No | Sort order for search results. |
| `tagged` | string | No | Filter by tag name (e.g. windows-10, linux, networking). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/super-user/search-questions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"order":"<string>","page":"<integer>","pagesize":"<integer>","query":"<string>","sort":"<string>","tagged":"<string>"}'
```

## Next steps

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