Developer Tools
StackOverflow logo

StackOverflow API

stackoverflow.com

StackOverflow — search questions, get full Q&A with answers, browse hot questions, explore related questions, tag FAQs, top users, and popular tags.

Actions
7
Category
Developer Tools
Login
Not required
Output
JSON

Call the StackOverflow API

Submit a task, then poll the job until it settles. This example runs so_search_questions.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "so_search_questions",
    "params": {
      "query": "<query>"
    }
  }'

7 actions on stackoverflow.com

Read

  • Search StackOverflow Questions

    so_search_questionsread1 credit / call

    Search questions by keywords, tags, and filters. Returns questions with body HTML, scores, view counts, and answer counts.

    query
    string · required
    tags
    string
    sort
    string
    order
    string
    page
    integer
    page_size
    integer
    accepted
    boolean
    answers_min
    integer
  • StackOverflow Hot Questions

    so_hot_questionsread1 credit / call

    Get currently hot/trending questions on StackOverflow. Filter by hot, weekly, or monthly, and by tags.

    sort
    string
    page
    integer
    page_size
    integer
    tagged
    string
  • StackOverflow Popular Tags

    so_popular_tagsread1 credit / call

    Get most popular tags with question counts. Filter by name substring.

    sort
    string
    order
    string
    page
    integer
    page_size
    integer
    inname
    string
  • StackOverflow Question Details

    so_question_detailsread1 credit / call

    Fetch full question with body HTML and answers sorted by votes, creation, or activity.

    question_id
    string · required
    include_answers
    boolean
    answers_sort
    string
    answers_page_size
    integer
  • StackOverflow Related Questions

    so_related_questionsread1 credit / call

    Get questions related to a given question ID — great for discovery and exploration of related topics.

    question_id
    string · required
    page
    integer
    page_size
    integer
  • StackOverflow Tag FAQ

    so_tag_faqread1 credit / call

    Get top FAQ questions for a specific tag — curated best-of per technology.

    tag
    string · required
    page
    integer
    page_size
    integer
  • StackOverflow Top Users

    so_top_usersread1 credit / call

    Get top StackOverflow users by reputation with badge counts, location, and profile links.

    sort
    string
    order
    string
    page
    integer
    page_size
    integer

StackOverflow API questions

Is there an API for StackOverflow?
StackOverflow does not offer a public data API for this, but Anakin Wire provides 7 maintained endpoints for stackoverflow.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape StackOverflow data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when stackoverflow.com changes its markup, Anakin updates the action.
Do I need a StackOverflow account?
No. Every StackOverflow action listed here runs anonymously — no account and no credentials required.
What does the StackOverflow API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Developer Tools APIs

All Developer Tools sites