# Stack Overflow Scraper — Q\&A Search on 184 Stack Exchange Sites (`yadroo/stackexchange-search`) Actor

Search Stack Overflow and 184 Stack Exchange sites: full-text search with tag/date/score/views/accepted filters, tag feeds for monitoring, questions by id, users and tag stats. Returns clean-text questions with top answers and comments in one request.

- **URL**: https://apify.com/yadroo/stackexchange-search.md
- **Developed by:** [Samat Makatov](https://apify.com/yadroo) (community)
- **Categories:** Developer tools, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 result items

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Stack Overflow Scraper — search questions & answers on 184 Stack Exchange sites

Search Stack Overflow, Server Fault, Ask Ubuntu, Data Science, Security, Math, English, Law, Workplace — any of the 184 Stack Exchange sites (plus their meta sites) — and get clean JSON: question, tags, score, views, asker, and the top answers and comments **in the same request**. Built for support teams, developer-relations, lead-gen and coding agents. No API key, no proxy, no browser (an optional free Stack Apps key raises the quota from 300 to 10,000 requests/day).

### Use cases

- **Product support monitoring** — tag feed of new questions on `your-product` with `unanswered: noAnswers`; answer them before a competitor does.
- **Lead generation** — people asking about a problem your product solves (`queries` + `fromDate` + `minViews`), with the asker's profile link.
- **Docs / brand tracking** — questions that link to your domain (`url: "*.mycompany.com*"`) or mention your name in the title.
- **Competitive research** — top-voted questions on a competitor's tag (`sort: votes`, `sortMin`), how many go unanswered, which topics recur.
- **Knowledge base for RAG / coding agents** — pull accepted answers for a list of question URLs or a whole tag, with code blocks preserved.
- **Community intelligence** — tag sizes, synonyms and related tags to size an ecosystem; user lookups to find experts on a topic.

### Input

All fields are optional except the ones a mode needs (see Mode). Existing inputs (`queries`, `site`, `tagged`, `sort`, `includeAnswers`, `limit`) keep their old meaning.

| Field | Type | Default | Allowed values / notes |
|---|---|---|---|
| `mode` | string | `search` | `search` (full text + filters), `tag` (feed of questions on tags), `questions` (by id/URL), `users`, `tagInfo` |
| `queries` | string\[] | – | Free-text queries (`search`). One request chain per query. Empty = filter-only search |
| `site` | string | `stackoverflow` | API site parameter (see [Reference](#reference)), `meta.<site>`, a site URL or its name |
| `key` | string (secret) | – | Stack Apps application key → 10,000 requests/day instead of 300/IP |
| `tagged` | string | – | `;`-separated tags, AND semantics (`python;pandas`). Required in `tag` mode |
| `nottagged` | string | – | Exclude tags (`search`) |
| `title` / `body` | string | – | Text that must appear in title / body (`search`) |
| `url` | string | – | Questions linking to this URL, `*` wildcards (`search`) |
| `user` | integer | – | Asker's user id (`search`) |
| `accepted` / `closed` / `migrated` / `notice` / `wiki` | string | `any` | `any`, `yes`, `no` (`search`) |
| `minAnswers` / `minViews` | integer | – | Lower bounds (`search`) |
| `unanswered` | string | `any` | `noAnswers` (0 answers), `noAcceptedAnswer` |
| `fromDate` / `toDate` | date | – | ISO 8601 creation-date window |
| `sort` | string | `relevance` | search: `relevance` `activity` `creation` `votes` · tag: `activity` `creation` `votes` `hot` `week` `month` · users: `reputation` `creation` `name` `modified` |
| `order` | string | `desc` | `desc`, `asc` |
| `sortMin` / `sortMax` | string | – | Bounds on the sort field: number for `votes`, ISO date for `activity`/`creation` |
| `limit` | integer | 20 | Questions per query / feed, 1–500 (100 per API request) |
| `maxItems` | integer | 1000 | Hard cap for the whole run |
| `questionIds` | string\[] | – | Ids or question URLs (`questions` mode), 100 per request |
| `users` | string\[] | – | User ids, profile URLs or display-name searches (`users` mode) |
| `tags` | string\[] | – | Tag names (`tagInfo` mode) |
| `includeRelatedTags` | boolean | false | `tagInfo`: top 30 co-occurring tags (+1 request per tag) |
| `includeAnswers` | integer | 2 | 0–30 answers embedded per question, accepted first then by score. **No extra requests** |
| `includeComments` | boolean | false | Embed comments on questions and embedded answers (same request) |
| `bodyMaxLength` | integer | 2000 | Truncate question text (0 = unlimited) |
| `answerBodyMaxLength` | integer | 3000 | Truncate each answer (0 = unlimited) |
| `dedupe` | boolean | true | One item per question even when several queries match |
| `fields` | string\[] | – | Keep only these top-level fields (`id` always kept) |

Unsupported combinations are not silently dropped: an invalid `sort` for the mode, a `sortMin` on `relevance`, an unparsable date or a question id that does not exist produce a `WARN` line in the log; an unknown `site` or a throttled IP fails the run with an explicit message.

### Reference

#### Sort options by mode

| Mode | Endpoint | `sort` values | `sortMin`/`sortMax` type |
|---|---|---|---|
| `search` | `/search/advanced` | `relevance`, `activity`, `creation`, `votes` | number (votes) / date (activity, creation); none for relevance |
| `tag` | `/questions`, `/questions/no-answers`, `/questions/unanswered` | `activity`, `creation`, `votes`, `hot`, `week`, `month` | number / date; none for hot, week, month |
| `users` | `/users`, `/users/{ids}` | `reputation`, `creation`, `name`, `modified` | – |

#### Quota

| Setup | Requests / day | Notes |
|---|---|---|
| No key | 300 per IP | Shared by every actor run leaving the same Apify IP — fine for a few runs a day, not for heavy monitoring |
| With `key` | 10,000 per key | Register a free app at stackapps.com/apps/oauth/register; the key is not secret-sensitive but is passed as a secret input |

One page of up to 100 questions **including answers and comments** = one request. The actor honours the API `backoff` field, spaces requests ≥120 ms apart and stops immediately on `throttle_violation` (error 502) instead of retrying.

#### Sites (`site` parameter)

184 main sites, fetched from `/sites` on 2026-09-13. Every site also has a meta site: prefix `meta.` (e.g. `meta.askubuntu`; Stack Overflow's is `meta.stackoverflow`). Full live list: https://api.stackexchange.com/2.3/sites?pagesize=1000

| `site` | Name | Audience |
|---|---|---|
| `stackoverflow` | [Stack Overflow](https://stackoverflow.com) | professional and enthusiast programmers |
| `serverfault` | [Server Fault](https://serverfault.com) | system and network administrators |
| `superuser` | [Super User](https://superuser.com) | computer enthusiasts and power users |
| `meta` | [Meta Stack Exchange](https://meta.stackexchange.com) | meta-discussion of the Stack Exchange family of Q\&A websites |
| `webapps` | [Web Applications](https://webapps.stackexchange.com) | power users of web applications |
| `gaming` | [Arqade](https://gaming.stackexchange.com) | passionate videogamers on all platforms |
| `webmasters` | [Webmasters](https://webmasters.stackexchange.com) | webmasters |
| `cooking` | [Seasoned Advice](https://cooking.stackexchange.com) | professional and amateur chefs |
| `gamedev` | [Game Development](https://gamedev.stackexchange.com) | professional and independent game developers |
| `photo` | [Photography](https://photo.stackexchange.com) | professional, enthusiast and amateur photographers |
| `stats` | [Cross Validated](https://stats.stackexchange.com) | people interested in statistics, machine learning, data analysis, data mining, and data visualization |
| `math` | [Mathematics](https://math.stackexchange.com) | people studying math at any level and professionals in related fields |
| `diy` | [Home Improvement](https://diy.stackexchange.com) | contractors and serious DIYers |
| `gis` | [Geographic Information Systems](https://gis.stackexchange.com) | cartographers, geographers and GIS professionals |
| `tex` | [TeX - LaTeX](https://tex.stackexchange.com) | users of TeX, LaTeX, ConTeXt, and related typesetting systems |
| `askubuntu` | [Ask Ubuntu](https://askubuntu.com) | Ubuntu users and developers |
| `money` | [Personal Finance & Money](https://money.stackexchange.com) | people who want to be financially literate |
| `english` | [English Language & Usage](https://english.stackexchange.com) | linguists, etymologists, and serious English language enthusiasts |
| `stackapps` | [Stack Apps](https://stackapps.com) | apps, scripts, and development with the Stack Exchange API |
| `ux` | [User Experience](https://ux.stackexchange.com) | user experience researchers and experts |
| `unix` | [Unix & Linux](https://unix.stackexchange.com) | users of Linux, FreeBSD and other Un\*x-like operating systems |
| `wordpress` | [WordPress Development](https://wordpress.stackexchange.com) | WordPress developers and administrators |
| `cstheory` | [Theoretical Computer Science](https://cstheory.stackexchange.com) | theoretical computer scientists and researchers in related fields |
| `apple` | [Ask Different](https://apple.stackexchange.com) | power users of Apple hardware and software |
| `rpg` | [Role-playing Games](https://rpg.stackexchange.com) | gamemasters and players of tabletop, paper-and-pencil role-playing games |
| `bicycles` | [Bicycles](https://bicycles.stackexchange.com) | people who build and repair bicycles, people who train cycling, or commute on bicycles |
| `softwareengineering` | [Software Engineering](https://softwareengineering.stackexchange.com) | professionals, academics, and students working within the systems development life cycle |
| `electronics` | [Electrical Engineering](https://electronics.stackexchange.com) | electronics and electrical engineering professionals, students, and enthusiasts |
| `android` | [Android Enthusiasts](https://android.stackexchange.com) | enthusiasts and power users of the Android operating system |
| `boardgames` | [Board & Card Games](https://boardgames.stackexchange.com) | people who like playing board games, designing board games or modifying the rules of existing board games |
| `physics` | [Physics](https://physics.stackexchange.com) | active researchers, academics and students of physics |
| `homebrew` | [Homebrewing](https://homebrew.stackexchange.com) | dedicated home brewers and serious enthusiasts |
| `security` | [Information Security](https://security.stackexchange.com) | information security professionals |
| `writing` | [Writing](https://writing.stackexchange.com) | the craft of professional writing, including fiction, non-fiction, technical, scholarly, and commercial writing |
| `video` | [Video Production](https://video.stackexchange.com) | engineers, producers, editors, and enthusiasts spanning the fields of video, and media creation |
| `graphicdesign` | [Graphic Design](https://graphicdesign.stackexchange.com) | Graphic Design professionals, students, and enthusiasts |
| `dba` | [Database Administrators](https://dba.stackexchange.com) | database professionals who wish to improve their database skills and learn from others in the community |
| `scifi` | [Science Fiction & Fantasy](https://scifi.stackexchange.com) | science fiction and fantasy enthusiasts |
| `codereview` | [Code Review](https://codereview.stackexchange.com) | peer programmer code reviews |
| `codegolf` | [Code Golf](https://codegolf.stackexchange.com) | programming puzzle enthusiasts and code golfers |
| `quant` | [Quantitative Finance](https://quant.stackexchange.com) | finance professionals and academics |
| `pm` | [Project Management](https://pm.stackexchange.com) | project managers |
| `skeptics` | [Skeptics](https://skeptics.stackexchange.com) | scientific skepticism |
| `fitness` | [Physical Fitness](https://fitness.stackexchange.com) | physical fitness professionals, athletes, trainers, and those providing health-related needs |
| `drupal` | [Drupal Answers](https://drupal.stackexchange.com) | Drupal developers and administrators |
| `mechanics` | [Motor Vehicle Maintenance & Repair](https://mechanics.stackexchange.com) | mechanics and DIY enthusiast owners of cars, trucks, and motorcycles |
| `parenting` | [Parenting](https://parenting.stackexchange.com) | parents, grandparents, nannies and others with a parenting role |
| `sharepoint` | [SharePoint](https://sharepoint.stackexchange.com) | SharePoint enthusiasts |
| `music` | [Music: Practice & Theory](https://music.stackexchange.com) | musicians, students, and enthusiasts |
| `sqa` | [Software Quality Assurance & Testing](https://sqa.stackexchange.com) | software quality control experts, automation engineers, and software testers |
| `judaism` | [Mi Yodeya](https://judaism.stackexchange.com) | those who base their lives on Jewish law and tradition and anyone interested in learning more |
| `german` | [German Language](https://german.stackexchange.com) | speakers of German wanting to discuss the finer points of the language and translation |
| `japanese` | [Japanese Language](https://japanese.stackexchange.com) | students, teachers, and linguists wanting to discuss the finer points of the Japanese language |
| `philosophy` | [Philosophy](https://philosophy.stackexchange.com) | those interested in the study of the fundamental nature of knowledge, reality, and existence |
| `gardening` | [Gardening & Landscaping](https://gardening.stackexchange.com) | gardeners and landscapers |
| `travel` | [Travel](https://travel.stackexchange.com) | road warriors and seasoned travelers |
| `crypto` | [Cryptography](https://crypto.stackexchange.com) | software developers, mathematicians and others interested in cryptography |
| `dsp` | [Signal Processing](https://dsp.stackexchange.com) | practitioners of the art and science of signal, image and video processing |
| `french` | [French Language](https://french.stackexchange.com) | students, teachers, and linguists wanting to discuss the finer points of the French language |
| `christianity` | [Christianity](https://christianity.stackexchange.com) | committed Christians, experts in Christianity and those interested in learning more |
| `bitcoin` | [Bitcoin](https://bitcoin.stackexchange.com) | Bitcoin users, developers, and enthusiasts |
| `linguistics` | [Linguistics](https://linguistics.stackexchange.com) | professional linguists and others with an interest in linguistic research and theory |
| `hermeneutics` | [Biblical Hermeneutics](https://hermeneutics.stackexchange.com) | professors, theologians, and those interested in exegetical analysis of biblical texts |
| `history` | [History](https://history.stackexchange.com) | historians and history buffs |
| `bricks` | [Bricks](https://bricks.stackexchange.com) | LEGO® and building block enthusiasts |
| `spanish` | [Spanish Language](https://spanish.stackexchange.com) | linguists, teachers, students and Spanish language enthusiasts in general wanting to discuss the finer points of the language |
| `scicomp` | [Computational Science](https://scicomp.stackexchange.com) | scientists using computers to solve scientific problems |
| `movies` | [Movies & TV](https://movies.stackexchange.com) | movie and TV enthusiasts |
| `chinese` | [Chinese Language](https://chinese.stackexchange.com) | students, teachers, and linguists wanting to discuss the finer points of the Chinese language |
| `biology` | [Biology](https://biology.stackexchange.com) | biology researchers, academics, and students |
| `poker` | [Poker](https://poker.stackexchange.com) | serious players and enthusiasts of poker |
| `mathematica` | [Mathematica](https://mathematica.stackexchange.com) | users of Wolfram Mathematica |
| `psychology` | [Psychology & Neuroscience](https://psychology.stackexchange.com) | practitioners, researchers, and students in cognitive science, psychology, neuroscience, and psychiatry |
| `outdoors` | [The Great Outdoors](https://outdoors.stackexchange.com) | people who love being outdoors enjoying nature and wilderness, and learning about the required skills and equipment |
| `martialarts` | [Martial Arts](https://martialarts.stackexchange.com) | students and teachers of all martial arts |
| `sports` | [Sports](https://sports.stackexchange.com) | participants in team and individual sport activities |
| `academia` | [Academia](https://academia.stackexchange.com) | academics and those enrolled in higher education |
| `cs` | [Computer Science](https://cs.stackexchange.com) | students, researchers and practitioners of computer science |
| `workplace` | [The Workplace](https://workplace.stackexchange.com) | members of the workforce navigating the professional setting |
| `chemistry` | [Chemistry](https://chemistry.stackexchange.com) | scientists, academics, teachers, and students in the field of chemistry |
| `chess` | [Chess](https://chess.stackexchange.com) | serious players and enthusiasts of chess |
| `raspberrypi` | [Raspberry Pi](https://raspberrypi.stackexchange.com) | users and developers of hardware and software for Raspberry Pi |
| `russian` | [Russian Language](https://russian.stackexchange.com) | students, teachers, and linguists wanting to discuss the finer points of the Russian language |
| `islam` | [Islam](https://islam.stackexchange.com) | Muslims, experts in Islam, and those interested in learning more about Islam |
| `salesforce` | [Salesforce](https://salesforce.stackexchange.com) | Salesforce administrators, implementation experts, developers and anybody in-between |
| `patents` | [Ask Patents](https://patents.stackexchange.com) | people interested in improving and participating in the patent system |
| `genealogy` | [Genealogy & Family History](https://genealogy.stackexchange.com) | expert genealogists and people interested in genealogy or family history |
| `robotics` | [Robotics](https://robotics.stackexchange.com) | professional robotic engineers, hobbyists, researchers and students |
| `expressionengine` | [ExpressionEngine® Answers](https://expressionengine.stackexchange.com) | administrators, end users, developers and designers for ExpressionEngine® CMS |
| `politics` | [Politics](https://politics.stackexchange.com) | people interested in governments, policies, and political processes |
| `anime` | [Anime & Manga](https://anime.stackexchange.com) | anime and manga fans |
| `magento` | [Magento](https://magento.stackexchange.com) | users of the Magento e-Commerce platform |
| `ell` | [English Language Learners](https://ell.stackexchange.com) | speakers of other languages learning English |
| `sustainability` | [Sustainable Living](https://sustainability.stackexchange.com) | folks dedicated to a lifestyle that can be maintained indefinitely without depleting available resources |
| `tridion` | [Tridion](https://tridion.stackexchange.com) | Tridion developers and administrators |
| `reverseengineering` | [Reverse Engineering](https://reverseengineering.stackexchange.com) | researchers and developers who explore the principles of a system through analysis of its structure, function, and operation |
| `networkengineering` | [Network Engineering](https://networkengineering.stackexchange.com) | network engineers |
| `opendata` | [Open Data](https://opendata.stackexchange.com) | developers and researchers interested in open data |
| `freelancing` | [Freelancing](https://freelancing.stackexchange.com) |  self-employed and freelance workers |
| `blender` | [Blender](https://blender.stackexchange.com) | people who use Blender to create 3D graphics, animations, or games |
| `mathoverflow.net` | [MathOverflow](https://mathoverflow.net) | professional mathematicians |
| `space` | [Space Exploration](https://space.stackexchange.com) | spacecraft operators, scientists, engineers, and enthusiasts |
| `sound` | [Sound Design](https://sound.stackexchange.com) | sound engineers, producers, editors, and enthusiasts |
| `astronomy` | [Astronomy](https://astronomy.stackexchange.com) | astronomers and astrophysicists |
| `tor` | [Tor](https://tor.stackexchange.com) | researchers, developers, and users of Tor |
| `pets` | [Pets](https://pets.stackexchange.com) | pet owners, caretakers, breeders, veterinarians, and trainers |
| `ham` | [Amateur Radio](https://ham.stackexchange.com) | amateur radio enthusiasts |
| `italian` | [Italian Language](https://italian.stackexchange.com) | students, teachers, and linguists wanting to discuss the finer points of the Italian language |
| `pt.stackoverflow` | [Stack Overflow em Português](https://pt.stackoverflow.com) | programadores profissionais e entusiastas |
| `aviation` | [Aviation](https://aviation.stackexchange.com) | aircraft pilots, mechanics, and enthusiasts |
| `ebooks` | [Ebooks](https://ebooks.stackexchange.com) | ebook publishers and readers |
| `alcohol` | [Beer, Wine & Spirits](https://alcohol.stackexchange.com) | alcoholic beverage aficionados and those interested in beer, wine, or spirits |
| `softwarerecs` | [Software Recommendations](https://softwarerecs.stackexchange.com) | people seeking specific software recommendations |
| `arduino` | [Arduino](https://arduino.stackexchange.com) | developers of open-source hardware and software that is compatible with Arduino |
| `cs50` | [CS50](https://cs50.stackexchange.com) | students of Harvard University's CS50 |
| `expatriates` | [Expatriates](https://expatriates.stackexchange.com) | people living abroad on a long-term basis |
| `matheducators` | [Mathematics Educators](https://matheducators.stackexchange.com) | those involved in the field of teaching mathematics |
| `earthscience` | [Earth Science](https://earthscience.stackexchange.com) | those interested in the geology, meteorology, oceanography, and environmental sciences |
| `joomla` | [Joomla](https://joomla.stackexchange.com) | Joomla! administrators, users, developers and designers |
| `datascience` | [Data Science](https://datascience.stackexchange.com) | Data science professionals, Machine Learning specialists, and those interested in learning more about the field |
| `puzzling` | [Puzzling](https://puzzling.stackexchange.com) | those who create, solve, and study puzzles |
| `craftcms` | [Craft CMS](https://craftcms.stackexchange.com) | administrators, end users, developers and designers for Craft CMS |
| `buddhism` | [Buddhism](https://buddhism.stackexchange.com) | people practicing or interested in Buddhist philosophy, teaching, and practice |
| `hinduism` | [Hinduism](https://hinduism.stackexchange.com) | followers of the Hindu religion and those interested in learning more about Hinduism |
| `communitybuilding` | [Community Building](https://communitybuilding.stackexchange.com) | community managers, administrators, and moderators |
| `worldbuilding` | [Worldbuilding](https://worldbuilding.stackexchange.com) | writers/artists using science, geography and culture to construct imaginary worlds and settings |
| `ja.stackoverflow` | [スタック・オーバーフロー](https://ja.stackoverflow.com) | プログラマーとプログラミングに熱心な人 |
| `emacs` | [Emacs](https://emacs.stackexchange.com) | those using, extending or developing Emacs |
| `hsm` | [History of Science and Mathematics](https://hsm.stackexchange.com) | people interested in the history and origins of science and mathematics |
| `economics` | [Economics](https://economics.stackexchange.com) | those who study, teach, research and apply economics and econometrics |
| `lifehacks` | [Lifehacks](https://lifehacks.stackexchange.com) | people looking to bypass life's everyday problems with simple tricks |
| `engineering` | [Engineering](https://engineering.stackexchange.com) | professionals and students of engineering |
| `coffee` | [Coffee](https://coffee.stackexchange.com) | people interested in all aspects of producing and consuming coffee |
| `vi` | [Vi and Vim](https://vi.stackexchange.com) | people using the vi and Vim families of text editors |
| `musicfans` | [Music Fans](https://musicfans.stackexchange.com) | music historians, critics, and fans |
| `woodworking` | [Woodworking](https://woodworking.stackexchange.com) | professional and amateur woodworkers |
| `civicrm` | [CiviCRM](https://civicrm.stackexchange.com) | administrators and users of the CiviCRM  Constituent Relationship Management software |
| `medicalsciences` | [Medical Sciences](https://medicalsciences.stackexchange.com) | professionals in medical and allied health fields, students of those professions, related academics, and others with a sound understanding of medicine and healthcare-related sciences |
| `ru.stackoverflow` | [Stack Overflow на русском](https://ru.stackoverflow.com) | программистов |
| `rus` | [Русский язык](https://rus.stackexchange.com) | лингвистов и энтузиастов русского языка |
| `mythology` | [Mythology & Folklore](https://mythology.stackexchange.com) | enthusiasts and scholars of mythology and folklore |
| `law` | [Law](https://law.stackexchange.com) | legal professionals, students, and others with experience or interest in law |
| `opensource` | [Open Source](https://opensource.stackexchange.com) | people organizing, marketing or licensing open source development projects |
| `elementaryos` | [elementary OS](https://elementaryos.stackexchange.com) | developers and users of elementary OS and applications |
| `portuguese` | [Portuguese Language](https://portuguese.stackexchange.com) | linguists, teachers and learners wanting to discuss the finer points of the Portuguese language |
| `computergraphics` | [Computer Graphics](https://computergraphics.stackexchange.com) | computer graphics researchers and programmers |
| `hardwarerecs` | [Hardware Recommendations](https://hardwarerecs.stackexchange.com) | people seeking specific hardware recommendations |
| `es.stackoverflow` | [Stack Overflow en español](https://es.stackoverflow.com) | programadores y profesionales de la informática |
| `3dprinting` | [3D Printing](https://3dprinting.stackexchange.com) | 3D printing enthusiasts |
| `ethereum` | [Ethereum](https://ethereum.stackexchange.com) | users of Ethereum, the decentralized application platform and smart contract enabled blockchain |
| `latin` | [Latin Language](https://latin.stackexchange.com) | linguists, teachers, and students wanting to discuss the finer points of the Latin language |
| `languagelearning` | [Language Learning](https://languagelearning.stackexchange.com) | students, teachers, polyglots, and anyone interested in the techniques of second-language acquisition |
| `retrocomputing` | [Retrocomputing](https://retrocomputing.stackexchange.com) | vintage-computer hobbyists interested in restoring, preserving, and using the classic computer and gaming systems of yesteryear |
| `crafts` | [Arts & Crafts](https://crafts.stackexchange.com) | artists and crafters |
| `korean` | [Korean Language](https://korean.stackexchange.com) | linguists, teachers and students of the Korean language |
| `monero` | [Monero](https://monero.stackexchange.com) | developers and users of the secure, private and untraceable cryptocurrency Monero |
| `ai` | [Artificial Intelligence](https://ai.stackexchange.com) | people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment |
| `esperanto` | [Esperanto Language](https://esperanto.stackexchange.com) | teachers and students of the Esperanto language |
| `sitecore` | [Sitecore](https://sitecore.stackexchange.com) | developers and end users of the Sitecore CMS and multichannel marketing software |
| `iot` | [Internet of Things](https://iot.stackexchange.com) | builders and users of networked sensors and control devices in the contexts of smart homes, industry automation, or environmental sensors |
| `literature` | [Literature](https://literature.stackexchange.com) | scholars and enthusiasts of literature |
| `vegetarianism` | [Veganism & Vegetarianism](https://vegetarianism.stackexchange.com) | those committed to a vegan or vegetarian lifestyle and anyone interested in learning more |
| `ukrainian` | [Ukrainian Language](https://ukrainian.stackexchange.com) | linguists, teachers and students of the Ukrainian language |
| `devops` | [DevOps](https://devops.stackexchange.com) | software engineers working on automated testing, continuous delivery, service integration and monitoring, and building SDLC infrastructure |
| `bioinformatics` | [Bioinformatics](https://bioinformatics.stackexchange.com) | researchers, developers, students, teachers, and end users interested in bioinformatics |
| `cseducators` | [Computer Science Educators](https://cseducators.stackexchange.com) | those involved in the field of teaching Computer Science |
| `interpersonal` | [Interpersonal Skills](https://interpersonal.stackexchange.com) | people looking to improve their interpersonal communication skills |
| `iota` | [Iota](https://iota.stackexchange.com) | users of Iota, the open-source cryptocurrency for IoT that does not use a blockchain |
| `stellar` | [Stellar](https://stellar.stackexchange.com) | developers and users of Stellar and the Stellar Distributed Exchange |
| `conlang` | [Constructed Languages](https://conlang.stackexchange.com) | designers and users of artificial or invented languages, consciously developed instead of having developed naturally |
| `quantumcomputing` | [Quantum Computing](https://quantumcomputing.stackexchange.com) | engineers, scientists, programmers, and computing professionals interested in quantum computing |
| `eosio` | [EOS.IO](https://eosio.stackexchange.com) | users and developers of distributed applications built on top of the blockchain operating system, EOS.IO |
| `tezos` | [Tezos](https://tezos.stackexchange.com) | users, experts, and developers of the Tezos blockchain project |
| `or` | [Operations Research](https://or.stackexchange.com) | operations research and analytics professionals, educators, and students |
| `drones` | [Drones and Model Aircraft](https://drones.stackexchange.com) | experienced flyers, pilots, and builders of drones and model aircraft |
| `mattermodeling` | [Matter Modeling](https://mattermodeling.stackexchange.com) | materials modelers and data scientists |
| `cardano` | [Cardano](https://cardano.stackexchange.com) | users and developers of the Cardano cryptocurrency ecosystem |
| `proofassistants` | [Proof Assistants](https://proofassistants.stackexchange.com) | mathematicians and computer scientists who develop and use proof assistants |
| `substrate` | [Substrate and Polkadot](https://substrate.stackexchange.com) | developers building blockchains with the Substrate SDK |
| `bioacoustics` | [Bioacoustics](https://bioacoustics.stackexchange.com) | people interested in the studies of non-human animal sounds and the impacts of sounds on animals |
| `solana` | [Solana](https://solana.stackexchange.com) | Solana software users and developers |
| `langdev` | [Programming Language Design and Implementation](https://langdev.stackexchange.com) | designers and implementers of computer programming languages |
| `genai` | [GenAI](https://genai.stackexchange.com) | GenAI enthusiasts and practitioners and those interested in learning more about using GenAI tools |
| `agents.meta.stackoverflow` | [Stack Overflow for Agents Meta](https://agents.meta.stackoverflow.com) | Humans discussing StackOverflow for Agents |

### Examples

**1. Support radar — new questions about your product with no answer yet**

```json
{ "mode": "tag", "tagged": "apify", "unanswered": "noAnswers", "sort": "creation", "fromDate": "2026-09-01", "limit": 50, "includeAnswers": 0 }
```

**2. Lead-gen — people struggling with a problem you solve, recent and visible**

```json
{ "queries": ["scrape site behind cloudflare", "rotate residential proxies node"], "fromDate": "2026-06-01", "minViews": 200, "accepted": "no", "sort": "creation", "limit": 100, "includeAnswers": 1 }
```

**3. Competitive research — the top-voted questions on a competitor's tag this year**

```json
{ "mode": "tag", "tagged": "playwright", "sort": "votes", "sortMin": "10", "fromDate": "2026-01-01", "limit": 200, "includeAnswers": 3, "fields": ["title", "score", "viewCount", "tags", "answers", "url"] }
```

**4. RAG corpus — accepted answers for a curated list of questions**

```json
{ "mode": "questions", "questionIds": ["https://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-processing-an-unsorted-array", "231767"], "includeAnswers": 3, "answerBodyMaxLength": 0 }
```

**5. Docs monitoring on a non-programming site — questions linking to your domain**

```json
{ "site": "askubuntu", "url": "*.example.com*", "sort": "activity", "limit": 50 }
```

**6. Ecosystem sizing — tag stats with synonyms and related tags**

```json
{ "mode": "tagInfo", "tags": ["langchain", "llamaindex", "openai-api"], "includeRelatedTags": true }
```

### Output

One item per question (or per user / tag in those modes). Example (trimmed):

````json
{
  "id": 79275765,
  "site": "stackoverflow",
  "siteUrl": "https://stackoverflow.com",
  "title": "The specified selector is not loading in Apify",
  "body": "I'm trying to scrape ... \n```\nawait page.waitForSelector('.price');\n```\n...",
  "score": 0,
  "viewCount": 84,
  "answerCount": 0,
  "isAnswered": false,
  "hasAcceptedAnswer": false,
  "acceptedAnswerId": null,
  "tags": ["javascript", "web-scraping", "apify"],
  "createdAt": "2024-12-12T15:56:52.000Z",
  "lastActivityAt": "2024-12-12T16:10:01.000Z",
  "lastEditAt": null,
  "closedAt": null,
  "closedReason": null,
  "bountyAmount": null,
  "isProtected": false,
  "isLocked": false,
  "owner": { "userId": 13613227, "displayName": "pcrocks", "reputation": 41, "userType": "registered", "link": "https://stackoverflow.com/users/13613227/pcrocks" },
  "answers": [
    { "id": 79275901, "score": 2, "accepted": true, "createdAt": "2024-12-12T17:02:11.000Z", "lastActivityAt": "2024-12-12T17:02:11.000Z", "body": "The selector is rendered client-side ...", "owner": { "userId": 1, "displayName": "…", "reputation": 1200, "userType": "registered", "link": "…" }, "url": "https://stackoverflow.com/a/79275901" }
  ],
  "comments": [ { "id": 139800001, "score": 1, "createdAt": "…", "body": "Which crawler class are you using?", "owner": { "…": "…" }, "url": "…" } ],
  "url": "https://stackoverflow.com/questions/79275765/the-specified-selector-is-not-loading-in-apify",
  "shareUrl": "https://stackoverflow.com/q/79275765",
  "query": "apify",
  "sourceUrl": "https://api.stackexchange.com/2.3/questions/no-answers?site=stackoverflow&page=1&pagesize=50&filter=…",
  "fetchedAt": "2026-09-13T06:31:12.512Z"
}
````

| Field | Type | Meaning |
|---|---|---|
| `id` | integer | Question id (stable; unique together with `site`) |
| `site`, `siteUrl` | string | API site parameter and its base URL |
| `title`, `body` | string | Title (entities decoded); body as plain text, code blocks kept as \`\`\` fences, truncated to `bodyMaxLength` |
| `score`, `viewCount`, `answerCount` | integer | Votes, views, answers |
| `isAnswered`, `hasAcceptedAnswer`, `acceptedAnswerId` | boolean / integer | `isAnswered` is the site's definition (accepted or score ≥ 1 answer) |
| `tags` | string\[] | Tags |
| `createdAt`, `lastActivityAt`, `lastEditAt`, `closedAt` | ISO date | Timestamps (UTC) |
| `closedReason`, `bountyAmount`, `isProtected`, `isLocked` | mixed | Moderation state |
| `owner` | object | Asker: `userId`, `displayName`, `reputation`, `userType`, `link` |
| `answers` | object\[] | Up to `includeAnswers`, accepted first then by score: `id`, `score`, `accepted`, `createdAt`, `lastActivityAt`, `body`, `owner`, `url`, (`comments`) |
| `comments` | object\[] | Only with `includeComments` |
| `url`, `shareUrl` | string | Canonical and short link |
| `query` | string | The query / tag list that produced the item (`null` for `questions` mode) |
| `sourceUrl`, `fetchedAt` | string | API request that returned the item (key redacted) and fetch time |

`users` items: `id`, `displayName`, `reputation`, `badges {gold, silver, bronze}`, `location`, `websiteUrl`, `isEmployee`, `reputationChangeYear/Month`, `createdAt`, `lastAccessAt`, `url`, `query`.
`tagInfo` items (one per tag that exists; unknown tags are not items and are not charged — they are listed in `SUMMARY.notFound`): `id`/`name`, `found`, `questionCount`, `synonyms`, `hasSynonyms`, `isModeratorOnly`, `isRequired`, `lastActivityAt`, `related [{name, count}]`, `url`.

The key-value store record `SUMMARY` holds `{ mode, site, items, requests, quotaRemaining, quotaMax, duplicatesSkipped, notFound, notFoundCount }` — `notFound` lists unknown tags (`tagInfo`) and question ids the site did not return (`questions`).

### Use it from code / agents

Apify API (curl):

```bash
curl -X POST "https://api.apify.com/v2/acts/yadroo~stackexchange-search/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'content-type: application/json' \
  -d '{"mode":"tag","tagged":"apify","unanswered":"noAnswers","sort":"creation","limit":20}'
```

JavaScript (`apify-client`):

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('yadroo/stackexchange-search').call({ queries: ['hono middleware vercel'], includeAnswers: 2, limit: 10 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Python (`apify-client`):

```python
from apify_client import ApifyClient
client = ApifyClient(token)
run = client.actor("yadroo/stackexchange-search").call(run_input={"mode": "questions", "questionIds": ["11227809"], "includeAnswers": 3})
items = client.dataset(run["defaultDatasetId"]).list_items().items
```

MCP: add `https://mcp.apify.com` to Claude, Cursor or any MCP client and the actor is available as the tool `yadroo/stackexchange-search`; the input schema above is what the agent sees.

### Pricing

Pay per event: **$0.001 per run start + $0.002 per item** (question, user or tag). Failed runs (bad site, throttled IP) produce no items and cost only the start fee.

Typical runs: 20 questions with answers ≈ $0.041 · a 200-question tag feed ≈ $0.401 · a daily 50-question support radar ≈ $0.101/day.

### Limits & FAQ

- **Quota.** 300 requests/day per IP without a key; the Apify IP is shared, so pass a `key` for anything scheduled. One request = up to 100 questions with answers and comments.
- **Freshness.** Live data from the official Stack Exchange API 2.3; the API itself caches for ~60 s.
- **Blocks & errors.** The actor sleeps for the API-requested `backoff`, retries transient 5xx/503 twice, and fails fast with a readable message on `throttle_violation`, bad parameters or an unknown site. Missing question ids and unknown tags are logged as warnings and listed in `SUMMARY.notFound`, not returned as (charged) items.
- **OR-tags.** The API only supports AND on `tagged`; run one input per tag or use `queries`.
- **Search relevance.** `/search/advanced` matches title and body; very short or generic queries return many results — combine with `tagged`, `fromDate`, `minViews`.
- **Answer count.** `includeAnswers` caps the embedded answers; `answerCount` always reflects the true total.
- **Content licence.** Posts are CC BY-SA; keep attribution (`url`, `owner.link`) when you reuse the text.
- **Roadmap.** Per-answer comment pagination, bounties feed (`/questions/featured`), and OAuth `access_token` for inbox / private data if there is demand.

***

Made by Yadroo. Related actors: [hackernews-search](https://apify.com/yadroo/hackernews-search) · [github-repo-intel](https://apify.com/yadroo/github-repo-intel) · [npm-package-intel](https://apify.com/yadroo/npm-package-intel) · [pypi-package-intel](https://apify.com/yadroo/pypi-package-intel) · [google-news-search](https://apify.com/yadroo/google-news-search)

# Actor input Schema

## `mode` (type: `string`):

What to fetch. `search` = /search/advanced with `queries` and the filters below (default). `tag` = list questions tagged `tagged` sorted by activity/creation/votes/hot/week/month — best for monitoring a product tag. `questions` = fetch specific `questionIds` with answers. `users` = user profiles by id or display name. `tagInfo` = question counts, synonyms and related tags for `tags`.

## `queries` (type: `array`):

Free-text queries for `search` mode (one API call chain per query). Each query is matched against title and body. Leave empty to search only by the structured filters below (e.g. `tagged` + `minViews`).

## `site` (type: `string`):

Stack Exchange site as the API `site` parameter: `stackoverflow`, `serverfault`, `superuser`, `askubuntu`, `unix`, `dba`, `security`, `datascience`, `ai`, `math`, `english`, `workplace`, `law`, `money`… (184 main sites) or a meta site like `meta.stackoverflow`. Site URLs (`https://askubuntu.com`) and names (`Ask Ubuntu`) are accepted too. The full dictionary is in the README; unknown values fail fast with a clear error.

## `key` (type: `string`):

Application key from https://stackapps.com/apps/oauth/register. Without a key the public quota is 300 requests/day per IP — shared with everyone else running from the same Apify IP. With a key: 10,000/day.

## `tagged` (type: `string`):

Only questions having ALL of these tags, separated by `;` (e.g. `python;pandas`). Required in `tag` mode. OR-logic is not supported by the API — run several inputs instead.

## `nottagged` (type: `string`):

Exclude questions having any of these tags (`;`-separated). Search mode only.

## `title` (type: `string`):

Text that must appear in the title. Search mode only.

## `body` (type: `string`):

Text that must appear in the question body. Search mode only.

## `url` (type: `string`):

Only questions whose body links to this URL (wildcards `*` allowed, e.g. `*.mycompany.com*`). Great for brand / docs monitoring. Search mode only.

## `user` (type: `integer`):

Numeric user id of the asker. Search mode only.

## `accepted` (type: `string`):

`yes` = only questions with an accepted answer, `no` = only without. Search mode only.

## `closed` (type: `string`):

`yes` = only closed questions, `no` = exclude closed. Search mode only.

## `migrated` (type: `string`):

Filter questions migrated from another site. Search mode only.

## `notice` (type: `string`):

Filter questions with a post notice (e.g. bounty, needs details). Search mode only.

## `wiki` (type: `string`):

Filter community-wiki questions. Search mode only.

## `minAnswers` (type: `integer`):

Only questions with at least this many answers. Search mode only.

## `minViews` (type: `integer`):

Only questions with at least this many views. Search mode only.

## `unanswered` (type: `string`):

`noAnswers` → /questions/no-answers in tag mode (client-side answerCount=0 in search mode); `noAcceptedAnswer` → /questions/unanswered in tag mode, accepted=False in search mode. Use for support / lead-gen: find people asking about your product with no help yet.

## `fromDate` (type: `string`):

Only questions created on/after this date (ISO 8601, e.g. `2026-01-01`).

## `toDate` (type: `string`):

Only questions created on/before this date (ISO 8601).

## `sort` (type: `string`):

Sort field. Search mode: relevance | activity | creation | votes. Tag mode: activity | creation | votes | hot | week | month. Users mode: reputation | creation | name | modified. Invalid combinations fall back to the mode default with a warning.

## `order` (type: `string`):

Sort direction.

## `sortMin` (type: `string`):

Lower bound on the sort field: a number for `votes` (e.g. `5` = score ≥ 5), an ISO date for `activity`/`creation`. Ignored for relevance/hot/week/month.

## `sortMax` (type: `string`):

Upper bound on the sort field (same semantics as Sort min).

## `limit` (type: `integer`):

Questions to fetch per query / per tag feed (paged 100 at a time). Each page is one API request.

## `maxItems` (type: `integer`):

Hard cap on dataset items for the whole run (cost guard).

## `questionIds` (type: `array`):

For `questions` mode: numeric ids or full question URLs (e.g. `https://stackoverflow.com/questions/11227809/...`). Up to 100 per API request.

## `users` (type: `array`):

For `users` mode: numeric user ids, profile URLs (`/users/22656/...`) or display-name searches (`inname`). Names return up to `limit` matches each.

## `tags` (type: `array`):

For `tagInfo` mode: tag names to look up (question count, synonyms, moderator-only flag, optional related tags).

## `includeRelatedTags` (type: `boolean`):

tagInfo mode: also fetch the top 30 co-occurring tags for each tag (one extra request per tag).

## `includeAnswers` (type: `integer`):

How many answers to embed per question (accepted first, then by score). Answers come in the same request as the question — no extra API calls. 0 = none.

## `includeComments` (type: `boolean`):

Embed comments on questions (and on embedded answers). Same request, larger items.

## `bodyMaxLength` (type: `integer`):

Truncate the plain-text question body to this many characters (0 = no limit). HTML is converted to readable text; code blocks are kept.

## `answerBodyMaxLength` (type: `integer`):

Truncate each embedded answer body (0 = no limit).

## `dedupe` (type: `boolean`):

Emit each question only once per run even if several queries match it (first query wins).

## `fields` (type: `array`):

Optional list of top-level output fields to keep (e.g. `["title","url","score","answers"]`). `id` is always kept. Empty = all fields.

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "hono middleware vercel"
  ],
  "site": "stackoverflow",
  "accepted": "any",
  "closed": "any",
  "migrated": "any",
  "notice": "any",
  "wiki": "any",
  "unanswered": "any",
  "sort": "relevance",
  "order": "desc",
  "limit": 20,
  "maxItems": 1000,
  "includeRelatedTags": false,
  "includeAnswers": 2,
  "includeComments": false,
  "bodyMaxLength": 2000,
  "answerBodyMaxLength": 3000,
  "dedupe": true
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "queries": [
        "hono middleware vercel"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("yadroo/stackexchange-search").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "queries": ["hono middleware vercel"] }

# Run the Actor and wait for it to finish
run = client.actor("yadroo/stackexchange-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "hono middleware vercel"
  ]
}' |
apify call yadroo/stackexchange-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yadroo/stackexchange-search"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rMBLZzQV2aNvKksD9/builds/5AaDY20vbf2exZKlI/openapi.json
