Skip to content

Stack Overflow API: Search questions

Finds Stack Overflow programming questions matching plain-language search words, optionally filtered by tag and answer status, with a chosen sort order.

stackoverflow.com (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by Stack Overflow.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Tag optionaltag

Limit results to a technology tag, for example: python.

Not set

Sort optionalsort

Order questions by match, score, or most recently asked; for example: relevance.

newest

One of relevance, votes, newest. Default relevance.

Query, requiredquery

Describe the programming problem to find, for example: how to merge two dictionaries in python.

python

Max Results optionalmax_results

Maximum number of questions to return, from 1 to 50; for example: 10.

10

Whole number from 1 to 50. Default 10.

Answered Only optionalanswered_only

Return only questions with at least one answer; for example: true.

true

True or false. Default true.

Output

From a run on Oct 23, 2026, shortened for this page.
{  "questions": [    {      "link": "https://stackoverflow.com/questions/80011903/how-can-i-split-double-hyphens-in-a-python-word-counter-while-preserving-single",      "tags": [        "python",        "regex",        "string"      ],      "score": 1,      "title": "How can I split double hyphens in a Python word counter while preserving single hyphens and apostrophes?",      "asked_date": "2026-10-22",      "view_count": 188,      "answer_count": 4,      "question_number": 80011903,      "has_accepted_answer": false    },    {      "link": "https://stackoverflow.com/questions/80011495/how-do-i-start-object-initialization-without-blocking-program-shutdown",      "tags": [        "best-practices",        "python",        "asynchronous"      ],      "score": 1,      "title": "How do I start object initialization without blocking program shutdown?",      "asked_date": "2026-10-21",      "view_count": 248,      "answer_count": 2,      "question_number": 80011495,      "has_accepted_answer": false    },    {      "link": "https://stackoverflow.com/questions/80011410/text-preprocessing-packages-in-addition-to-mustache-that-are-importable-both-int",      "tags": [        "tooling-recommendation",        "python",        "ruby"      ],      "score": -1,      "title": "Text preprocessing packages in addition to Mustache that are importable both into Python code and Ruby code",      "asked_date": "2026-10-20",      "view_count": 203,      "answer_count": 1,      "question_number": 80011410,      "has_accepted_answer": false    }  ]}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
stackoverflow.com/search_questions
Returns
title, score, answer count, accepted-answer flag, tags, asked date, views, link, question number

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method stackoverflow.com/search_questions with the inputs above.

Ask your agent

  • find questions about parsing JSON in javascript sorted by votes, limit 15, only answered
  • how to fix 'undefined reference to main' error in C, most recent first
  • show top voted questions tagged java-streams about grouping a list by key
  • search stackoverflow for python pandas dataframe merge keeping unmatched rows, sorted by relevance
  • what questions were asked newest about docker container networking with no answer filter
  • Gets a Stack Overflow question and its best answers, from a question link or a plain-word search. A search picks the most relevant answered question. The accepted answer comes first, then answers by score.

    stackoverflow.com/get_answer
  • Finds public Reddit posts by topic, optionally in one community, for a time window and sort order. Returns up to 100 posts in Reddit search order with score, comment count, text and link.

    reddit.com/search_posts
  • Searches public Bluesky posts for words, optionally ordered by latest or top and filtered by date, author or language. Search indexing may lag behind new posts.

    bsky.app/search_posts
  • Searches Hacker News stories or comments by words, date range and sort order. Comments include their parent story's website link when one exists; text-only stories have no website link.

    news.ycombinator.com/search_stories
  • Finds public GitHub repositories by keywords, with an optional language filter and sort order. Returns up to 100 matches.

    github.com/search_repositories
  • Searches community-posted Slickdeals deals by product or keyword, optionally limited to a store and hiding expired deals, ordered by relevance, newest or most popular.

    slickdeals.net/search_deals
  • Finds Rust crates on crates.io by keywords, sorted by relevance, total downloads, recent downloads, or newest creation.

    crates.io/search_crates
  • Searches Remote OK jobs by role or skill. Results can be filtered by listed region and by minimum annual USD salary.

    remoteok.com/search_jobs