# Developer Q\&A Search (unofficial) (`504spam/stackexchange-questions`) Actor

Questions from Stack Overflow or any Stack Exchange site by keyword, tag and date, with score, views, answer status and optional body text.

- **URL**: https://apify.com/504spam/stackexchange-questions.md
- **Developed by:** [Damion Morgan](https://apify.com/504spam) (community)
- **Categories:** Developer tools, Automation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 questions

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Developer Q\&A Search (unofficial)

I use public developer Q\&A to see what people are stuck on: for content ideas, for support gaps in a product, or to find unanswered questions about a tool I know. This Actor is built on the official Stack Exchange API and works on any site in the network.

### What it does

- Searches questions by keyword and tags on any Stack Exchange site (stackoverflow, superuser, serverfault, askubuntu and others).
- Filters by date, minimum score and unanswered status.
- Returns the question ID, title, tags, score, views, answer count, answered and accepted flags, created and last-activity dates, the closed reason, an optional body text with the author's display name, and a link.

### Input example

```json
{ "site": "stackoverflow", "query": "playwright", "tagged": ["python"], "createdWithinDays": 30, "unansweredOnly": true }
```

### Output example

```json
{ "site": "stackoverflow", "questionId": 80016389, "title": "How can I check programmatically whether a Telegram t.me invite link is still valid?", "tags": ["telegram"], "score": -1, "viewCount": 8, "answerCount": 0, "createdAt": "2026-11-13T00:37:46.000Z", "url": "https://stackoverflow.com/questions/80016389" }
```

### Good to know

- When you turn on **Include question body**, I also return the author's display name so you can credit them. I still don't return reputation, avatars or profile pages.
- Without a key, the API allows 300 requests a day per IP address. A free app key from stackapps.com raises that to 10,000.

### Data source and license

This Actor is built on the Stack Exchange API. I don't use Stack logos. Content is from the Stack Exchange network and is licensed CC BY-SA. If you republish it, credit the author (the `author` field, when the body is included) and link to the original question (the `url` field). Do not use the output to train AI or other models unless you have a separate license from Stack. This is not an LLM-training corpus.

Unofficial tool, not affiliated with or endorsed by Stack Exchange, Inc. or Stack Overflow.

# Actor input Schema

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

API site name, e.g. stackoverflow, superuser, serverfault, askubuntu, datascience.

## `query` (type: `string`):

Words to search for in questions.

## `tagged` (type: `array`):

All tags must match, e.g. python, pandas.

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

Order of results.

## `createdWithinDays` (type: `integer`):

0 = any date.

## `minScore` (type: `integer`):

Optional. Skip questions below this vote score.

## `unansweredOnly` (type: `boolean`):

Only questions with no answers.

## `includeBody` (type: `boolean`):

Adds the question text.

## `apiKey` (type: `string`):

Free app key from stackapps.com. Raises the daily quota from 300 to 10,000 requests.

## `maxResults` (type: `integer`):

Stop after this many results.

## Actor input object example

```json
{
  "site": "stackoverflow",
  "query": "scraping",
  "sort": "activity",
  "createdWithinDays": 0,
  "unansweredOnly": false,
  "includeBody": false,
  "maxResults": 100
}
```

# Actor output Schema

## `results` (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 = {
    "query": "scraping"
};

// Run the Actor and wait for it to finish
const run = await client.actor("504spam/stackexchange-questions").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 = { "query": "scraping" }

# Run the Actor and wait for it to finish
run = client.actor("504spam/stackexchange-questions").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 '{
  "query": "scraping"
}' |
apify call 504spam/stackexchange-questions --silent --output-dataset

```

## MCP server setup

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

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/IChAujAvnN3pLQuam/builds/Wi0s95slrTJbGB6NL/openapi.json
