# Hacker News Hiring Trends (`sourcewise/hn-hiring-trends`) Actor

Monthly ratio of 'Who is hiring' vs 'Who wants to be hired' posts from Hacker News Algolia search, with comment counts, month-over-month change, and top hiring keywords.

- **URL**: https://apify.com/sourcewise/hn-hiring-trends.md
- **Developed by:** [Sourcewise](https://apify.com/sourcewise) (community)
- **Categories:** 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 $1.40 / 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.
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

## Hacker News Hiring Trends

Track the monthly balance between "Who is hiring" and "Who wants to be hired" posts on Hacker News. The actor queries the public Algolia HN API, counts posts and comments, computes a hiring‑to‑seeking ratio, shows month‑over‑month change, and extracts the top hiring keywords.

**Data © Hacker News, provided via the public Algolia API**

### Who it’s for

- Recruiters and hiring managers who want a quick view of market activity on HN.
- Founders and job seekers monitoring demand for specific technologies.
- Analysts building dashboards on tech‑hiring trends.

### Use cases

- Monthly reporting on hiring volume vs. job‑seeker volume.
- Detecting spikes in demand for particular stacks (keywords).
- Feeding a monitoring pipeline that only emits new months (`onlyNew`).

### Input

| Parameter | Type | Description | Default | Example |
|-----------|------|-------------|---------|---------|
| `monthsBack` | integer | How many past months to analyze. | 12 | 3 |
| `onlyNew` | boolean | Emit only months not seen in previous runs (useful for scheduled monitoring). | false | false |
| `minComments` | integer | Ignore posts with fewer comments than this value. | 0 | 1 |
| `maxItems` | integer | Maximum number of posts to fetch per month (internal pagination limit). | 100 | 100 |

**Example input (tested and returns data today)**

{
"monthsBack": 3,
"onlyNew": false,
"minComments": 1,
"maxItems": 100
}

### Output

Each dataset item represents one month.

| Field | Type | Description |
|-------|------|-------------|
| `month` | string | Month in `YYYY-MM` format. |
| `hiringPosts` | number | Number of "Who is hiring" posts. |
| `seekingPosts` | number | Number of "Who wants to be hired" posts. |
| `hiringComments` | number | Total comments on hiring posts. |
| `seekingComments` | number | Total comments on seeking posts. |
| `hiringToSeekingRatio` | number | Ratio of hiring posts to seeking posts (hiring / seeking). |
| `ratioChangeVsPriorMonth` | number | Change in ratio compared to previous month (current − prior). `null` for the first month. |
| `topHiringKeywords` | array\[string] | Top 10 keywords extracted from hiring post titles and content. |
| `changedAt` | string | ISO timestamp when this month was detected (for monitoring). |

**Example output (real run)**

\[
{
"month": "2026-09",
"hiringPosts": 11,
"seekingPosts": 5,
"hiringComments": 978,
"seekingComments": 974,
"hiringToSeekingRatio": 2.2,
"ratioChangeVsPriorMonth": null,
"topHiringKeywords": \[
"reacherx",
"search",
"built",
"feedback",
"finding",
"match",
"product",
"right",
"agent",
"don"
],
"changedAt": "2026-11-22T13:38:03.877Z"
},
{
"month": "2026-10",
"hiringPosts": 12,
"seekingPosts": 5,
"hiringComments": 1132,
"seekingComments": 1067,
"hiringToSeekingRatio": 2.4,
"ratioChangeVsPriorMonth": 0.2,
"topHiringKeywords": \[
"git",
"repo",
"git-dupe",
"notes",
"agent",
"because",
"market",
"private",
"don",
"dupe"
],
"changedAt": "2026-11-22T13:38:05.372Z"
}
]

### Pricing

The actor charges per result returned from the Algolia index. Approximate cost: **$2 per 1,000 results** (buyers pay per result). The exact cost depends on `monthsBack`, `maxItems`, and the number of matching posts.

### Limits

- The Algolia HN API is rate‑limited; the actor respects those limits automatically.
- `monthsBack` larger than 24 may increase run time and cost.
- `onlyNew` requires a persistent key‑value store to remember previously emitted months; the actor creates this store on first run.
- Keyword extraction is a simple frequency count on title and body text; it does not perform NLP lemmatization.

***

*Built for the Apify platform. Run on a schedule to keep a live hiring‑trend dashboard.*

### Example output

```json
[
  {
    "month": "2026-09",
    "hiringPosts": 11,
    "seekingPosts": 5,
    "hiringComments": 978,
    "seekingComments": 974,
    "hiringToSeekingRatio": 2.2,
    "ratioChangeVsPriorMonth": null,
    "topHiringKeywords": [
      "reacherx",
      "search",
      "built",
      "feedback",
      "finding",
      "match",
      "product",
      "right",
      "agent",
      "don"
    ],
    "changedAt": "2026-11-22T13:38:03.877Z"
  },
  {
    "month": "2026-10",
    "hiringPosts": 12,
    "seekingPosts": 5,
    "hiringComments": 1132,
    "seekingComments": 1067,
    "hiringToSeekingRatio": 2.4,
    "ratioChangeVsPriorMonth": 0.2,
    "topHiringKeywords": [
      "git",
      "repo",
      "git-dupe",
      "notes",
      "agent",
      "because",
      "market",
      "private",
      "don",
      "dupe"
    ],
    "changedAt": "2026-11-22T13:38:05.372Z"
  }
]
```

# Actor input Schema

## `monthsBack` (type: `integer`):

How many past months to analyze (default 12). Example: 12

## `onlyNew` (type: `boolean`):

Emit only months not seen in previous runs (for monitoring). Default false.

## `minComments` (type: `integer`):

Ignore posts with fewer comments than this (default 0). Example: 5

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

Stop after this many results (you pay per result).

## Actor input object example

```json
{
  "monthsBack": 3,
  "onlyNew": false,
  "minComments": 1,
  "maxItems": 100
}
```

# Actor output Schema

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

One item per result, with: month, hiringPosts, seekingPosts, hiringComments, seekingComments, hiringToSeekingRatio, ratioChangeVsPriorMonth, topHiringKeywords, changedAt.

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

How many results the run returned, and when it finished.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("sourcewise/hn-hiring-trends").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("sourcewise/hn-hiring-trends").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 '{}' |
apify call sourcewise/hn-hiring-trends --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sourcewise/hn-hiring-trends"
        }
    }
}
```

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/nhbDc9hUkl9A23YuY/builds/S9gY9p6i92IoXZl23/openapi.json
