# Super User — 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.

> 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-superuser-com-api-4e16d8b0/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-superuser-com-api-4e16d8b0/get_hot_network_questions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-superuser-com-api-4e16d8b0/get_question_answers \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-superuser-com-api-4e16d8b0/get_question_comments \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-superuser-com-api-4e16d8b0/get_question_details \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-superuser-com-api-4e16d8b0/get_questions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-superuser-com-api-4e16d8b0/search_questions \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"order":"<string>","page":"<integer>","pagesize":"<integer>","query":"<string>","sort":"<string>","tagged":"<string>"}'
```
