# Stack Overflow New Questions Monitor (`vesperxiv/stackoverflow-new-questions`) Actor

Returns questions newly posted on Stack Overflow, optionally filtered by tag, created within the requested window. Uses the free public Stack Exchange API (no key, no login).

- **URL**: https://apify.com/vesperxiv/stackoverflow-new-questions.md
- **Developed by:** [Vesper](https://apify.com/vesperxiv) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 price per new questions

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 New Questions Monitor

Returns the questions **newly posted on Stack Overflow**, optionally filtered by tag — one dataset row per question, newest first.

### What you get

- **Dataset — one item per new question:** `title`, `question_id`, `link`, `tags`, `score`, `answer_count`, `view_count`, `creation_date` (ISO 8601 UTC), `owner_display_name` (the asker).
- **`summary.json`** (key-value store): the filters used, how many questions were fetched, and how many were returned.

### Input

| Field | What it is |
|---|---|
| `tag` | Optional Stack Overflow tag, e.g. `python`, `javascript`, `reactjs`. Leave empty for all new questions. |
| `daysBack` | Only questions created within the last N days (default 7, 1–90). |
| `limit` | Maximum questions returned (default 20, 1–20). |

### Sample output

```json
{
  "title": "Getting Combination Permutations of Several Lists, With Segments of Length N",
  "question_id": 80017292,
  "link": "https://stackoverflow.com/questions/80017292/getting-combination-permutations-of-several-lists-with-segments-of-length-n",
  "tags": ["advice", "python", "list", "permutation"],
  "score": -1,
  "answer_count": 0,
  "view_count": 49,
  "creation_date": "2026-11-17T22:27:22+00:00",
  "owner_display_name": "VivianHeart"
}
```

### How the data is fetched

The free public Stack Exchange API — **no API key, no login**:

`GET https://api.stackexchange.com/2.3/questions?sort=creation&site=stackoverflow&pagesize=20&fromdate=<epoch>&tagged=python`

The API sorts by creation date descending, so the first page already holds the newest in-window questions. A run normally makes exactly 1 request (a second page only if the first came back short and the API says there is more).

### Limits

- Anonymous quota is **300 requests/day per IP** — the Actor makes at most 2 requests per run and never calls in a loop, so normal use stays far under the quota. If the API asks for a backoff, the Actor waits before retrying.
- `score`, `answer_count`, and `view_count` are the values at fetch time; brand-new questions are usually 0 answers and low views.
- Max 20 questions per run; run more often (e.g. every few hours) instead of raising `daysBack` very high.

### Who it is for

- **Content creators / newsletter writers** tracking what developers are stuck on right now in a tag they cover.
- **Dev-tool and SaaS teams** spotting recurring pain points and feature requests in their stack's tag.
- **Community managers / support teams** catching unanswered questions early, before they go stale.
- **Recruiters and researchers** watching which skills and libraries are heating up by question volume.

# Actor input Schema

## `daysBack` (type: `integer`):

Only return questions created within the last N days (1-90).

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

Maximum questions returned per run (1-20).

## `tag` (type: `string`):

Optional Stack Overflow tag to filter by, e.g. "python", "javascript", "reactjs". Leave empty for all new questions.

## Actor input object example

```json
{
  "daysBack": 7,
  "limit": 20,
  "tag": "python"
}
```

# 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 = {
    "daysBack": 7,
    "limit": 20,
    "tag": "python"
};

// Run the Actor and wait for it to finish
const run = await client.actor("vesperxiv/stackoverflow-new-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 = {
    "daysBack": 7,
    "limit": 20,
    "tag": "python",
}

# Run the Actor and wait for it to finish
run = client.actor("vesperxiv/stackoverflow-new-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 '{
  "daysBack": 7,
  "limit": 20,
  "tag": "python"
}' |
apify call vesperxiv/stackoverflow-new-questions --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vesperxiv/stackoverflow-new-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/wx32bF4gVdLO15aKj/builds/jyaZyJqIoLz0j8Hbk/openapi.json
