Skip to content

Programming questions and question answers

Back to tools

Stack Overflow provides public programming questions and answers, with relevant question searches and answered-question details featuring accepted answers first, followed by answers ranked by score.

Get answer

Get a Stack Overflow question and its best answers from a question link or a plain-word search. Searches choose the most relevant answered question; answers are ordered with the accepted answer first, then by score.

Your information

A Stack Overflow question link or the question in plain words, e.g. https://stackoverflow.com/questions/11227809/why-is-conditional-processing-of-a-sorted-array-faster-than-of-an-unsorted-array or how do I reverse a list in Python?

Number of answers to return, e.g. 3 (up to 10).

1 credit per completed run

The same inputs also work from your code or an AI assistant. See For developers.

Example results

How do I reverse a list or loop over it backwards?

How do I iterate over a list in reverse in Python? See also: How can I get a reversed copy of a list (avoid a separate statement when chaining a method after .reverse)?

  • python
  • list
  • reverse

Answers

Choose an action

About the Stack Overflow tool

Stack Overflow finds programming questions from a required plain-language query, with optional technology, answer, sort, and result-count filters.

Get answer returns a question and its best answers from a required question link or plain-word search.

Built from stackoverflow.com and stackexchange.com. Last checked Sep 29, 2026.

Actions

Get answer

1 credit

Get a Stack Overflow question and its best answers from a question link or a plain-word search. Searches choose the most relevant answered question; answers are ordered with the accepted answer first, then by score.

Uses stackexchange.com.

What you provide

FieldTypeRequiredDescription
QuestionquestionTextRequiredA Stack Overflow question link or the question in plain words, e.g. https://stackoverflow.com/questions/11227809/why-is-conditional-processing-of-a-sorted-array-faster-than-of-an-unsorted-array or how do I reverse a list in Python?Example: how do I reverse a list in Python?
Max Answersmax_answersNumberOptionalNumber of answers to return, e.g. 3 (up to 10).Example: 2

What you get

FieldTypeDescription
TagstagsListQuestion tags.
AnswersanswersListAccepted answer first, then highest scoring answers.
Dateanswers[].dateDateDate the answer was posted.Example: 2010-10-15
Linkanswers[].linkTextAnswer link.Example: https://stackoverflow.com/a/3940144
Scoreanswers[].scoreNumberAnswer score.Example: 1738
Authoranswers[].authorTextAnswer author name.Example: Codaddict
Acceptedanswers[].acceptedYes or noWhether this is the accepted answer.Example: Yes
Answer Textanswers[].answer_textTextPlain-text answer with code blocks.Example: To get a new reversed list, apply the reversed function and collect the items…
Question Linkquestion_linkTextStack Overflow question link.Example: https://stackoverflow.com/questions/3940128/how-do-i-reverse-a-list-or-loop-ove…
Question Textquestion_textTextQuestion in plain text, with code blocks preserved.Example: How do I iterate over a list in reverse in Python? See also: How can I get a…
Question Titlequestion_titleTextQuestion title.Example: How do I reverse a list or loop over it backwards?

Example result

For Question: how do I reverse a list in Python?, Max Answers: 2

JSON
{
  "tags": [
    "python",
    "list",
    "reverse"
  ],
  "answers": [
    {
      "date": "2010-10-15",
      "link": "https://stackoverflow.com/a/3940144",
      "score": 1738,
      "author": "codaddict",
      "accepted": true,
      "answer_text": "To get a new reversed list, apply the reversed function and collect the items into a list:\n\n```\n>>> xs = [0, 10, 20, 40]\n>>> list(reversed(xs))\n[40, 20, 10, 0]\n```\n\nTo iterate backwards through a list…"
    },
    {
      "date": "2010-10-15",
      "link": "https://stackoverflow.com/a/3940137",
      "score": 1542,
      "author": "mechanical_meat",
      "accepted": false,
      "answer_text": "```\n>>> xs = [0, 10, 20, 40]\n>>> xs[::-1]\n[40, 20, 10, 0]\n```\n\nExtended slice syntax is explained here. See also, documentation."
    }
  ],
  "question_link": "https://stackoverflow.com/questions/3940128/how-do-i-reverse-a-list-or-loop-over-it-backwards",
  "question_text": "How do I iterate over a list in reverse in Python?\n\nSee also: How can I get a reversed copy of a list (avoid a separate statement when chaining a method after .reverse)?",
  "question_title": "How do I reverse a list or loop over it backwards?"
}

Search questions

1 credit

Find Stack Overflow programming questions matching plain-language search words. Optionally filter by technology and answers, choose a sort order, and limit results to 50. Answered means at least one answer, not necessarily an accepted answer.

Uses stackexchange.com.

What you provide

FieldTypeRequiredDescription
TagtagTextOptionalLimit results to a technology tag, for example: python.Example: Python
SortsortTextOptionalOrder questions by match, score, or most recently asked; for example: relevance.Example: Votes
QueryqueryTextRequiredDescribe the programming problem to find, for example: how to merge two dictionaries in python.Example: how to merge two dictionaries in python
Max Resultsmax_resultsNumberOptionalMaximum number of questions to return, from 1 to 50; for example: 10.Example: 3
Answered Onlyanswered_onlyYes or noOptionalReturn only questions with at least one answer; for example: true.Example: No

What you get

FieldTypeDescription
QuestionsquestionsListMatching Stack Overflow questions.
Linkquestions[].linkTextQuestion page link.Example: https://stackoverflow.com/questions/38987/how-do-i-merge-two-dictionaries-in-a…
Tagsquestions[].tagsListTechnology tags.
Scorequestions[].scoreNumberNet vote score.Example: 7126
Titlequestions[].titleTextQuestion title.Example: How do I merge two dictionaries in a single expression in Python?
Asked Datequestions[].asked_dateDateDate the question was asked.Example: 2008-09-02
View Countquestions[].view_countNumberNumber of views.Example: 3686962
Answer Countquestions[].answer_countNumberNumber of answers.Example: 45
Question Numberquestions[].question_numberNumberStack Overflow question number.Example: 38987
Has Accepted Answerquestions[].has_accepted_answerYes or noWhether the asker accepted an answer.Example: Yes

Example result

For Tag: Python, Sort: Votes, Query: how to merge two dictionaries in python, Max Results: 3

JSON
{
  "questions": [
    {
      "link": "https://stackoverflow.com/questions/38987/how-do-i-merge-two-dictionaries-in-a-single-expression-in-python",
      "tags": [
        "python",
        "dictionary",
        "merge"
      ],
      "score": 7126,
      "title": "How do I merge two dictionaries in a single expression in Python?",
      "asked_date": "2008-09-02",
      "view_count": 3686962,
      "answer_count": 45,
      "question_number": 38987,
      "has_accepted_answer": true
    },
    {
      "link": "https://stackoverflow.com/questions/1452995/why-doesnt-a-python-dict-update-return-the-object",
      "tags": [
        "python",
        "dictionary",
        "language-design"
      ],
      "score": 209,
      "title": "Why doesn't a python dict.update() return the object?",
      "asked_date": "2009-09-21",
      "view_count": 111853,
      "answer_count": 12,
      "question_number": 1452995,
      "has_accepted_answer": true
    },
    {
      "link": "https://stackoverflow.com/questions/10461531/how-to-merge-and-sum-of-two-dictionaries-in-python",
      "tags": [
        "python",
        "dictionary"
      ],
      "score": 118,
      "title": "How to merge and sum of two dictionaries in Python?",
      "asked_date": "2012-05-05",
      "view_count": 143750,
      "answer_count": 13,
      "question_number": 10461531,
      "has_accepted_answer": true
    }
  ]
}

For developers

Call it from your code with one request. Change the values in input to run it on new data. To get an API key, open Developers at the bottom of Studio, turn on Developer mode and go to API keys.

cURL
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@stack-overflow",
  "visibility": "public",
  "operation": "get_answer",
  "version": 1,
  "input": {
    "question": "how do I reverse a list in Python?",
    "max_answers": 2
  },
  "response": {
    "format": "json"
  }
}'

What you can do with it

  • Find questions about a programming problem
  • Filter questions by technology tag
  • Review questions with at least one answer
  • Retrieve accepted and highest-scoring answers
  • Compare question scores, views, and answer counts

Questions about Stack Overflow

Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

Can I call this Stack Overflow tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

Do I need a Stack Overflow account?

No. You only need a Fous account.

How current is the data?

Fous gets the data from stackoverflow.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

How can I find questions about a programming problem?

Search questions finds matching questions from a required plain-language query, with optional filters for technology, answers, sort order, and result count.

How can I get answers to a Stack Overflow question?

Get answer returns a question and its best answers from a question link or plain-word search.

Can I find questions with at least one answer?

Search questions can return only questions with at least one answer when answered only is enabled.

All Developer tools toolsBrowse all tools