# Stack Overflow Top Users: Experts by Tag & Location (`newgentalent/stackoverflow-top-users`) Actor

Find top Stack Overflow and Stack Exchange experts by tag and location: name, reputation, location, website, email and LinkedIn or GitHub links from their profile, tag score, badges, activity dates and profile link. Filter by tag, location, reputation and contact. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/newgentalent/stackoverflow-top-users.md
- **Developed by:** [NewGenTalent](https://apify.com/newgentalent) (community)
- **Categories:** Lead generation, Jobs, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 results

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

## Stack Overflow Top Users: Experts by Tag & Location

Stack Overflow reputation and tag scores are hard evidence of technical depth. This actor finds the top experts for any technology tag, on Stack Overflow or any other Stack Exchange site, and returns their public profile with location, links and activity, so you can reach people who have proven their skills in public.

Here is one real record from this actor.

```json
{
  "display_name": "Sven Marnach",
  "user_id": 279627,
  "site": "stackoverflow",
  "reputation": 610028,
  "location": "Preetz, Germany",
  "website_url": "http://marnach.net",
  "email": "sven@marnach.net",
  "linkedin_url": null,
  "github_url": null,
  "x_url": null,
  "links_in_about": [
    "http://marnach.net"
  ],
  "about": "Mathematician and software engineer.\nYou can contact me privately at sven (at) marnach (dot) net. If you have programming questions, please ask them here on StackOverflow. You will get much quicker answers, and everyone will profit from them.",
  "matched_tags": [
    "rust"
  ],
  "tag_score": 2189,
  "tag_posts": 334,
  "period": "all_time",
  "gold_badges": 123,
  "silver_badges": 971,
  "bronze_badges": 868,
  "reputation_change_year": 2076,
  "member_since": "2010-02-23",
  "last_seen": "2026-11-06",
  "avatar_url": "https://www.gravatar.com/avatar/2dceea858ad8f1577bec6ddaa0485d15?s=256&d=identicon&r=PG",
  "profile_url": "https://stackoverflow.com/users/279627/sven-marnach",
  "source": "Stack Exchange public user data",
  "observed_at": "2026-11-09T15:54:23.684Z"
}
```

**[Input](https://apify.com/newgentalent/stackoverflow-top-users/input-schema) | [Output](https://apify.com/newgentalent/stackoverflow-top-users/output-schema) | [Pricing](https://apify.com/newgentalent/stackoverflow-top-users/pricing) | [Examples](https://apify.com/newgentalent/stackoverflow-top-users/examples)**

### What you get

- Name, reputation, location and badges.
- Score and number of posts in the tags you asked for.
- Website, plus email, LinkedIn, GitHub and X links when the user wrote them in their profile.
- Profile about text, account age, last seen date and reputation gained this year.

Each record can carry these 26 fields. A field the source does not publish comes back as `null` or an empty list.

| Field | Description |
|---|---|
| `display_name` | Display name |
| `user_id` | User ID on the site |
| `site` | Stack Exchange site |
| `reputation` | Reputation |
| `location` | Location as written by the user |
| `website_url` | Website |
| `email` | Email written in the profile about section, if any |
| `linkedin_url` | LinkedIn link from the profile |
| `github_url` | GitHub link from the profile |
| `x_url` | X link from the profile |
| `links_in_about` | Links in the profile |
| `about` | Profile about text |
| `matched_tags` | Tags where the user is a top answerer |
| `tag_score` | Score in the matched tags |
| `tag_posts` | Posts in the matched tags |
| `period` | all_time or month |
| `gold_badges` | Gold badges |
| `silver_badges` | Silver badges |
| `bronze_badges` | Bronze badges |
| `reputation_change_year` | Reputation gained this year |
| `member_since` | Account creation date |
| `last_seen` | Last access date |
| `avatar_url` | Avatar |
| `profile_url` | Profile link |
| `source` | Source name |
| `observed_at` | Collection timestamp |

### Input and filters

- Tags, with all-time or last-30-days top answerers, and optional top askers.
- Any Stack Exchange site.
- Location contains and minimum reputation.
- Only with a contact link.

Example input:

```json
{
  "tags": [
    "rust",
    "go"
  ],
  "period": "all_time",
  "locationContains": [
    "Germany"
  ],
  "maxResults": 50
}
```

### Use cases

- Recruiting senior engineers with proven expertise in a specific technology.
- Finding technical writers, trainers and advisors.
- Developer tools companies reaching recognized experts.

### Coverage and freshness

Public user data from the Stack Exchange network, read live at run time. Each tag returns its top 20 answerers per period; use several tags, both periods and top askers for more people.

### Pricing

You pay $0.015 per record returned plus $0.003 per run start. A run that finds nothing charges no records. Users on the free Apify plan get up to 10 records per run. The actor stops when your spending limit is reached.

### Data and privacy

Every record comes from information that the person or their institution published for professional purposes. The actor returns professional details only: no home addresses, birth dates or ID numbers, and no email that is not written on the source. You are responsible for using the data under the laws that apply to you, such as GDPR and CAN-SPAM, including honoring opt-out requests.

### FAQ

**How many users does a tag return?**

Up to 20 top answerers per period, plus up to 20 top askers if enabled. Add more tags to grow the list.

**Are emails included?**

Only when users wrote an email in their profile about section.

**Is there a usage limit?**

The public data service allows a limited number of requests per day per network, so very large runs can stop early. The actor stops cleanly and charges only for records delivered.

**Do I need to credit the source?**

Stack Exchange user content is licensed CC BY-SA. Keep the profile link with any content you reuse.

### Run it through the Apify API

```bash
curl -X POST "https://api.apify.com/v2/acts/newgentalent~stackoverflow-top-users/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"tags": ["rust", "go"], "period": "all_time", "locationContains": ["Germany"], "maxResults": 50}'
```

# Actor input Schema

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

Technology tags such as python, rust, kubernetes, react. For each tag the top answerers are returned. Leave empty to list users by overall reputation.

## `period` (type: `string`):

Top answerers of all time, or the most active in the last 30 days.

## `includeTopAskers` (type: `boolean`):

Also include the top question askers of each tag.

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

Stack Exchange site, for example stackoverflow, serverfault, superuser, dba, datascience, stats, security.

## `locationContains` (type: `array`):

Keep users whose location contains any of these texts, for example Germany, London, Brazil.

## `minReputation` (type: `integer`):

Keep users with at least this reputation.

## `maxReputationPages` (type: `integer`):

Used when no tag is given: how many pages of 100 top-reputation users to read.

## `onlyWithContact` (type: `boolean`):

Keep only users with an email in their profile, or a LinkedIn, GitHub or website link.

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

Maximum number of user records. Free Apify plan: up to 10.

## Actor input object example

```json
{
  "tags": [
    "rust"
  ],
  "period": "all_time",
  "includeTopAskers": false,
  "site": "stackoverflow",
  "maxReputationPages": 5,
  "onlyWithContact": 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 = {
    "tags": [
        "rust"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("newgentalent/stackoverflow-top-users").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 = { "tags": ["rust"] }

# Run the Actor and wait for it to finish
run = client.actor("newgentalent/stackoverflow-top-users").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 '{
  "tags": [
    "rust"
  ]
}' |
apify call newgentalent/stackoverflow-top-users --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,newgentalent/stackoverflow-top-users"
        }
    }
}
```

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/bHwSpJxLThvPANJHA/builds/ofYyjV41ayszS1NRn/openapi.json
