Spiral gives your agent every tool with one account. Browse the tools →

Muse · Social Media

How to Use Stack Exchange question search in Muse

Finds questions on one Stack Exchange site and returns question records with titles, tags, scores, and links. Use it to discover relevant discussions before inspecting their answers.

Prompts to try with Stack Exchange question search in Muse

Copy an example into Muse, or ask in your own words.

Use Stack Exchange question search to find Ask Ubuntu discussions about upgrading Ubuntu 22.04 to 24.04. Summarize the returned questions and link to each discussion.

Stack Exchange question searchMuse
Try asking
  • Use Stack Exchange question search to look this up and give me the result as a table.

  • Pull the latest numbers from Stack Exchange question search and tell me what changed since last week.

  • Check Stack Exchange question search and summarize what you find in three bullet points.

  • Pull the newest data from Stack Exchange question search and give me the result as a table.

How to set up Stack Exchange question search in Muse

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

Use the Muse connector

  1. Create an API key

    Create one under API keys in the Spiral console.

  2. Send Muse this message

    Muse reads Spiral's skill and asks for an API key.

    set up https://spiral.ai/SKILL.md
  3. Give Muse the key

    Paste the key when Muse asks for it, never in the chat itself.

Use the Spiral skill

  1. Send Muse 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.

    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 question search

    One request; the result comes back by polling or a webhook.

    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/search",
        "input": {
          "q": "<q>"
        }
      }'

Then paste one of the prompts above: Muse finds Stack Exchange question search on Spiral, shows the price and runs it.

Stack Exchange question search providers and prices

Spiral runs Stack Exchange question search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaSocial Media
Stack Exchange · Search
stackexchange-com/questions/search

Settings you can ask for

Ask Muse for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Maxa number

Upper bound on the sort field: score for sort: votes, Unix seconds for activity or creation. Not accepted with relevance.

Mina number

Lower bound on the sort field: score for sort: votes, Unix seconds for activity or creation. Not accepted with relevance.

Page1 to 100001

Pages above 25 need key: Stack Exchange serves deeper pages only with an application key (access_denied otherwise). Without one the last page reports partial coverage.

Sortrelevance, votes, activity, or creation

Defaults to relevance, or to creation when fromdate or todate is given so a date window reads as a timeline.

Orderdesc or ascdesc

order

Closedon or off

closed

Todatea number

Upper bound on the question's creation time, inclusive: Unix seconds, YYYY-MM-DD or an RFC 3339 date-time (UTC). A date-only value covers that whole day.

Acceptedon or off

true: only questions with an accepted answer; false: only without.

Fromdatea number

Lower bound on the question's creation time, inclusive: Unix seconds, YYYY-MM-DD or an RFC 3339 date-time (UTC).

Pagesize1 to 10010

pagesize

Min answers0 to 1000

min_answers

Include bodyon or off

true adds body_html/body_markdown to every question; off by default because bodies dominate the response size.

Every API field of Stack Exchange · Search is on its tool page: open its card above.

What can you do with Stack Exchange question search in Muse?

Turn a technical question into a reading brief with links to the original Stack Exchange evidence. A chat app can identify the relevant community and explain question context, proposed solutions, and recorded corrections in plain English.

Build a troubleshooting handbook

Choose the relevant community, find recurring PostgreSQL errors, collect accepted solutions, and compare other answers against each question's constraints.

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.

Find gaps in product documentation

Locate the community serving a product's users, search recurring configuration questions, and compare problem descriptions with the explanations supplied in answers.

Prepare a weekly topic digest

Find recent Kubernetes discussions, summarize accepted solutions and competing answers, and review recorded edits to explanations already covered in earlier digests.

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.

Questions about Stack Exchange question search in Muse

Can Muse use Stack Exchange question search?

Yes. Add Spiral to Muse as an MCP server, and Muse can find and run Stack Exchange question search like any built-in tool.

How much does Stack Exchange question search cost in Muse?

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

Do I need an Alexandria account to use Stack Exchange question search in Muse?

You need no Alexandria account. Muse uses one Spiral API key for every tool, and Spiral runs Stack Exchange question search on its own Alexandria account.

How long does it take to set up Stack Exchange question search in Muse?

About two minutes: create an API key, then send Muse this message, then give Muse the key.

Does Muse wait while Stack Exchange question search runs?

Stack Exchange question search runs in the background. Muse 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.

Get started

Start using Stack Exchange question search in Muse

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Muse:

Set up Muse

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options