[Integrations](https://spiral.ai/integrations) › [Windsurf](https://spiral.ai/integrations/windsurf) › [Stack Exchange answer details](https://spiral.ai/integrations/windsurf/stack-exchange-answer-details)

# How to Use Stack Exchange answer details in Windsurf

Retrieves specific answers with their text, scores, acceptance status, and author information. Use it to inspect a cited solution directly or refresh a saved answer collection.

|  |  |
| --- | --- |
| Model | Stack Exchange answer details |
| Available through | Alexandria |
| Category | Social Media |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Stack Exchange answer details in Windsurf

- Use Stack Exchange answer details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Stack Exchange answer details and tell me what changed since last week.
- Check Stack Exchange answer details and summarize what you find in three bullet points.
- Pull the newest data from Stack Exchange answer details and give me the result as a table.
- Check Stack Exchange answer details every morning and tell me only when something changed.

## How to set up Stack Exchange answer details in Windsurf

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: `~/.config/devin/mcp_config.json` on macOS and Linux, `%APPDATA%\devin\mcp_config.json` on Windows. Add this:

```json
{
  "mcpServers": {
    "spiral": {
      "url": "https://api.spiral.ai/mcp"
    }
  }
}
```

2. **Sign in**: Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

```bash
devin mcp login spiral
```

3. **Check it**: Spiral is listed under This computer in Customize › MCPs. From the terminal:

```bash
devin mcp list
```

### Use the Spiral skill

1. **Send Windsurf this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Stack Exchange answer details**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "stackexchange-com/questions/answer",
    "input": {
      "answer_id": 1
    }
  }'
```

Then paste one of the prompts above: Windsurf finds Stack Exchange answer details on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/windsurf

## Stack Exchange answer details tools and prices

- [Stack Exchange · Answer](https://spiral.ai/tools/alexandria/stackexchange-com/questions/answer) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| key |  | — | Optional Stack Exchange application key. Raises the per-IP quota from 300 to 10,000 requests per day and unlocks pages above 25, which the API refuses anonymously. Keys are public identifiers, not secrets. |
| url |  | — | HTTPS answer URL on any Stack Exchange site: /a/<answer_id> (share link) or /questions/<question_id>/<slug>/<answer_id>. The site is derived from the host; an explicit `site` must match it. |
| site |  | stackoverflow | Stack Exchange site API parameter, e.g. stackoverflow, superuser, math, askubuntu, english, physics. Use `sites` to list them. Pattern: ^[a-z0-9]+(\.[a-z0-9]+)*$. |
| answer_id |  | — | answer_id |
| answer_ids |  | — | answer_ids |
| include_body |  | — | include_body |

## What can you do with Stack Exchange answer details in Windsurf?

Build a cited troubleshooting guide around the libraries and errors in your project. A coding agent can use Stack Exchange community information, questions, answers, and recorded edits to select relevant evidence and check whether saved explanations have changed.

### Review migration advice

Find communities covering Ubuntu and Python, search migration problems, collect accepted solutions, and inspect cited answers and their revisions for changes in recommended commands.

### Create a technical reading list

Choose a subject community, collect questions with accepted solutions, read the full problem context, and retrieve individual answers selected for a linked study guide.

### Compare conflicting solutions

Start with accepted solutions to a topic, compare the remaining answers and their scores, then inspect selected answers alongside the original question's requirements.

### Audit technical citations

Refresh questions and individual answers cited in a handbook, then inspect revisions to identify changes that alter the cited explanation or code.

### Explain changes in technical advice

Find discussions about Python packaging, inspect individual answers and alternatives, and compare recorded revisions to explain how installation recommendations changed.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Windsurf guides](https://spiral.ai/integrations/windsurf)

## Stack Exchange answer details in other agents

- [Amp](https://spiral.ai/integrations/amp/stack-exchange-answer-details)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/stack-exchange-answer-details)
- [Claude](https://spiral.ai/integrations/claude-desktop/stack-exchange-answer-details)
- [Claude Code](https://spiral.ai/integrations/claude-code/stack-exchange-answer-details)
- [Cline](https://spiral.ai/integrations/cline/stack-exchange-answer-details)
- [Codex](https://spiral.ai/integrations/codex/stack-exchange-answer-details)
- [Cursor](https://spiral.ai/integrations/cursor/stack-exchange-answer-details)
- [Devin](https://spiral.ai/integrations/devin/stack-exchange-answer-details)
- [dots](https://spiral.ai/integrations/dots/stack-exchange-answer-details)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/stack-exchange-answer-details)
- [Gemini](https://spiral.ai/integrations/gemini/stack-exchange-answer-details)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/stack-exchange-answer-details)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/stack-exchange-answer-details)
- [goose](https://spiral.ai/integrations/goose/stack-exchange-answer-details)
- [Grok](https://spiral.ai/integrations/grok/stack-exchange-answer-details)
- [Grok Build](https://spiral.ai/integrations/grok-build/stack-exchange-answer-details)
- [Hermes](https://spiral.ai/integrations/hermes/stack-exchange-answer-details)
- [Instinct](https://spiral.ai/integrations/instinct/stack-exchange-answer-details)
- [Manus](https://spiral.ai/integrations/manus/stack-exchange-answer-details)
- [Muse](https://spiral.ai/integrations/muse/stack-exchange-answer-details)
- [Muse Code](https://spiral.ai/integrations/muse-code/stack-exchange-answer-details)
- [n8n](https://spiral.ai/integrations/n8n/stack-exchange-answer-details)
- [Notion](https://spiral.ai/integrations/notion/stack-exchange-answer-details)
- [OpenClaw](https://spiral.ai/integrations/openclaw/stack-exchange-answer-details)
- [opencode](https://spiral.ai/integrations/opencode/stack-exchange-answer-details)
- [Perplexity](https://spiral.ai/integrations/perplexity/stack-exchange-answer-details)
- [Raycast](https://spiral.ai/integrations/raycast/stack-exchange-answer-details)
- [VS Code](https://spiral.ai/integrations/vscode/stack-exchange-answer-details)
- [Zapier](https://spiral.ai/integrations/zapier/stack-exchange-answer-details)

## More Windsurf guides

- [Stack Exchange accepted answers](https://spiral.ai/integrations/windsurf/stack-exchange-accepted-answers)
- [Stack Exchange post edit history](https://spiral.ai/integrations/windsurf/stack-exchange-post-edit-history)
- [Spotify track details](https://spiral.ai/integrations/windsurf/spotify-track-details)
- [Stack Exchange question answers](https://spiral.ai/integrations/windsurf/stack-exchange-question-answers)
- [Spotify podcast episodes](https://spiral.ai/integrations/windsurf/spotify-podcast-episodes)
- [Stack Exchange question details](https://spiral.ai/integrations/windsurf/stack-exchange-question-details)

## Questions about Stack Exchange answer details in Windsurf

**Can Windsurf use Stack Exchange answer details?**

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Stack Exchange answer details like any built-in tool.

**How much does Stack Exchange answer details cost in Windsurf?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.

**Do I need an Alexandria account to use Stack Exchange answer details in Windsurf?**

No. Spiral runs Stack Exchange answer details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Stack Exchange answer details in Windsurf?**

About two minutes: add the server, then sign in, then check it.

**Does Windsurf wait while Stack Exchange answer details runs?**

Stack Exchange answer details runs in the background. Windsurf starts the run, checks on it and gives you the json when it's ready.

**Does Stack Exchange search cover the whole network at once?**

Question searches run against one community at a time. The site directory lists communities across the network so you can choose where to search.

**How fresh is Stack Exchange data?**

API responses are heavily cached, and Stack Exchange considers repeating an equivalent request more than once per minute abusive. The site directory changes much less often; its documentation recommends caching it for at least one day.

**Does one response contain every matching result?**

Stack Exchange generally limits upstream result pages to 100 items, and an endpoint may return fewer. A response indicating more results requires additional pages before the collection is complete.

**Does an accepted answer mean the solution is still correct?**

Acceptance means the question author received an answer that worked for them personally. Stack Exchange explicitly warns that authors may leave an answer accepted even after a better answer appears.

**Does revision history show every edit separately?**

No. Stack Exchange documents that multiple edits can result in a single revision, so recorded revisions cannot establish the exact number of editing actions.

