What you get
One Slack message a weekday, and only on days with something new. The account with the most new roles comes first. Senior titles (head of, VP, director, chief, founding, principal) are marked and listed before the rest; each role shows its team, where it is, the stated salary when the posting has one, and a link. Past six per company, the rest are counted and linked.
Built from a real run against airbnb.com, notion.so and Palantir's Lever board on 2 November 2026; three roles per company shown here.
How it works
- GitHub ActionsStarts the job on weekdays at 06:41 UTC.
- Company Jobs ScraperRuns on Apify: finds each company's careers board from its domain, returns only postings not delivered before.
- hiring_signals.pyGroups the rows per company, puts senior titles first, builds the message.
- SlackOne webhook post, retried while Slack is busy.
Three decisions carry the whole design:
- The actor keeps the state. With
onlyNewSinceLastRunit remembers the job IDs it delivered for each careers board, in a named key-value store in your Apify account, and skips them next time. The script stores nothing, so it runs the same on GitHub Actions, cron or a serverless function. - Filtering happens at the source.
keywords,departments,locationsandpostedAfterare applied inside the actor before anything is charged, and the freecompanyrecord still tells you how many roles each board holds. - Money and time have ceilings. Every run starts with a spending cap and a timeout. The actor stops cleanly below the cap and says so in its
companyrows.
Before you start
- An Apify account (the free plan is enough) and an API token from Console → Settings → API & Integrations.
- A Slack incoming webhook: create an app at api.slack.com/apps, turn on Incoming Webhooks and add one for your channel.
- Your watchlist as company domains (
airbnb.com). When a company's board slug differs from its brand, paste the careers board URL instead; the actor tells you when that is the case. - To try it on your machine: Python 3.11+ and uv.
1Look at the data first
Before writing code, look at what comes back. This input asks for three data roles at Airbnb and tries a domain without a careers board, well inside the 25 free jobs every account gets each month:
{
"companies": ["airbnb.com", "wikipedia.org"],
"keywords": ["data"],
"maxJobsPerCompany": 3,
"includeDescription": false
}One synchronous call runs the actor and saves the dataset:
API=https://api.apify.com/v2/actors/agentsgearbox~company-jobs-scraper
curl -s "$API/run-sync-get-dataset-items?maxTotalChargeUsd=0.05" \
-H "Authorization: Bearer $APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d @try-input.json -o sample.jsonThe rows come in three types. Here is one of each, trimmed to the fields that matter:
[
{
"company": "Airbnb",
"companyDomain": "airbnb.com",
"ats": "Greenhouse",
"boardUrl": "https://boards.greenhouse.io/airbnb",
"jobId": "8301515",
"title": "Senior Data Scientist, People Analytics & Research",
"department": "Data Science",
"team": null,
"location": "Remote - USA",
"locations": [
"Remote - USA",
"United States"
],
"city": null,
"country": null,
"countryCode": null,
"remote": true,
"workplaceType": "remote",
"employmentType": null,
"seniority": null,
"salaryMin": 180000,
"salaryMax": null,
"salaryCurrency": "USD",
"salaryPeriod": "year",
"salaryText": "$180,000",
"descriptionText": null,
"postedAt": "2026-10-19T18:59:06.000Z",
"updatedAt": "2026-10-19T18:59:06.000Z",
"url": "https://careers.airbnb.com/positions/8301515?gh_jid=8301515",
"applyUrl": "https://careers.airbnb.com/positions/8301515?gh_jid=8301515",
"requisitionId": "ONE"
},
{
"type": "company",
"query": "airbnb.com",
"companyName": "Airbnb",
"companyDomain": "airbnb.com",
"ats": "Greenhouse",
"boardSlug": "airbnb",
"boardUrl": "https://boards.greenhouse.io/airbnb",
"careersUrl": "https://www.airbnb.com/careers",
"detectedBy": "domain guess, verified against the board API",
"jobsOnBoard": 202,
"jobsMatched": 13,
"jobsScraped": 3,
"departments": [
{
"name": "Software Engineering",
"count": 53
},
{
"name": "Community Support",
"count": 29
},
{
"name": "Business Development",
"count": 20
}
],
"locations": [
{
"name": "United States",
"count": 62
},
{
"name": "Canada",
"count": 12
},
{
"name": "London, United Kingdom",
"count": 9
}
],
"remoteJobs": 156,
"newestPostedAt": "2026-11-02T08:52:24.000Z",
"status": "COMPLETE",
"stoppedBy": "maxJobs",
"note": null
},
{
"type": "error",
"query": "wikipedia.org",
"error": "wikipedia.org: no careers page or job board was found. Supported: Greenhouse, Lever, Ashby, Workable, SmartRecruiters, Recruitee, Personio, BambooHR, Breezy. You can also pass the board URL directly."
}
]- A job row has no
type.departmentandteamtell you which part of the company is growing;remoteandworkplaceTypecome from the board's own flag;salaryTextand the structured fields next to it are filled only when the posting states pay.jobIdis what the checkpoint remembers. companyis free, one per input: which board was found and how (detectedBy), how many roles it holds, the top departments and locations, how many are remote, the newest posting date, and why the walk stopped.erroris free too. A domain with no supported board comes back as a row that names the supported systems, not as a failed run, so one bad entry never costs you the whole digest.
Finding a board from a bare domain works when the site links to its careers page or the board slug equals the brand. Bosch, for example, lives at careers.smartrecruiters.com/BoschGroup, which nothing on bosch.com points to. The error row says so; put the board URL in the watchlist and the actor reads it directly.
2The script
Save it as hiring_signals.py at the root of the repository that will run it, then change RUN_INPUT to your watchlist and filters. The dependency is declared inline (PEP 723), so uv run hiring_signals.py needs no virtualenv and no requirements file.
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.11"
# dependencies = ["apify-client>=3.3,<4"]
# ///
"""Post new job openings at your target accounts to Slack, leadership hires first.
Runs agentsgearbox/company-jobs-scraper on Apify. The actor remembers the job IDs it
already delivered per careers board, in a key-value store in your Apify account, so
each run returns only postings you have not seen and this script keeps no state.
Schedule it every weekday morning.
Environment:
APIFY_TOKEN Apify API token (Console > Settings > API & Integrations)
SLACK_WEBHOOK_URL Slack incoming webhook
DRY_RUN=1 print the Slack messages instead of posting them
REPLAY_RUN_ID=... format an earlier run again instead of starting a new one
"""
import json
import os
import re
import sys
import time
import urllib.error
import urllib.request
from collections import defaultdict
from datetime import timedelta
from decimal import Decimal
from apify_client import ApifyClient
ACTOR = "agentsgearbox/company-jobs-scraper"
RUN_INPUT = {
"companies": ["airbnb.com", "notion.so", "lever:palantir"], # domains, careers URLs or board shorthands
"keywords": [], # e.g. ["engineer", "data"]; empty means every role
"departments": [], # e.g. ["Engineering", "Sales"]
"locations": [], # e.g. ["United States", "Remote"]
"postedAfter": "30d", # first run or lost checkpoint: reach back 30 days at most
"maxJobsPerCompany": 100,
"includeDescription": False, # titles, teams, locations and salaries are enough for a signal
"onlyNewSinceLastRun": True,
"checkpointStoreName": "hiring-signals-target-accounts", # one store per watchlist
}
MAX_CHARGE_USD = Decimal("1.00") # hard cap per run; a normal morning costs a few cents
SHOWN = 6 # roles listed per company; the rest are counted and linked
CONSOLE = "https://console.apify.com"
# A senior hire says more about an account than ten junior ones: these titles go first, marked.
SENIOR = re.compile(r"\b(head of|vp\b|vice president|director|chief|founding|cto|cfo|cmo|coo|cro|general manager|principal)\b", re.I)
def fetch(client):
"""Starts the actor and waits, or loads an earlier run. Returns run and rows."""
replay = os.environ.get("REPLAY_RUN_ID")
if replay:
run = client.run(replay).get()
else:
run = client.actor(ACTOR).call(
run_input=RUN_INPUT,
max_total_charge_usd=MAX_CHARGE_USD,
run_timeout=timedelta(minutes=15),
)
if run is None:
sys.exit(f"Run {replay} not found")
if run.status != "SUCCEEDED":
sys.exit(f"Actor run ended {run.status}: {run_url(run)}")
return run, list(client.dataset(run.default_dataset_id).iterate_items(clean=True))
def run_url(run):
return f"{CONSOLE}/actors/{run.act_id}/runs/{run.id}"
def build_messages(run, rows):
"""Turns dataset rows into Slack Block Kit messages; [] when there is nothing new."""
companies, problems, jobs = {}, [], defaultdict(list)
for row in rows:
if row.get("type") == "company":
companies[row.get("boardUrl") or row["query"]] = row
problems += company_problems(row)
elif row.get("type") == "error":
problems.append(f"{row.get('query')}: {row['error']}")
elif row.get("jobId"):
jobs[row.get("boardUrl") or row["query"]].append(row)
total = sum(len(group) for group in jobs.values())
senior = sum(1 for group in jobs.values() for job in group if SENIOR.search(job.get("title") or ""))
if not total and not problems:
return []
noun = "role" if total == 1 else "roles"
headline = f"{total} new {noun} at your target accounts"
if senior:
headline += f", {senior} senior"
header = [
{"type": "header", "text": {"type": "plain_text", "text": headline}},
context(f"Since the last check · <{run_url(run)}|Apify run>"),
]
busiest_first = sorted(jobs.items(), key=lambda item: -len(item[1]))
sections = [company_blocks(companies.get(key, {}), group, run) for key, group in busiest_first]
if problems: # a context block holds at most 10 elements
notes = [mrkdwn("⚠️ " + esc(clip(p, 280))) for p in problems[:10]]
sections.append([{"type": "context", "elements": notes}])
return pack(header, sections, fallback=headline)
def company_problems(c):
who = c.get("companyName") or c["query"]
if c.get("stoppedBy") == "chargeLimit":
yield f"{who}: stopped at the ${MAX_CHARGE_USD} cap; raise MAX_CHARGE_USD"
if c.get("status") == "ERROR":
yield f"{who}: {c.get('note') or 'lookup failed'}"
def company_blocks(company, group, run):
name = company.get("companyName") or group[0].get("company") or "?"
name = esc(name.capitalize() if name.islower() else name) # boards without a company name give their slug
facts = [f"{len(group)} new"]
if company.get("jobsOnBoard"):
facts.append(f"{company['jobsOnBoard']} open on the board")
teams = [f"{d['name']} {d['count']}" for d in (company.get("departments") or [])[:3] if d.get("name")]
if teams:
facts.append(", ".join(teams))
blocks = [section(f"*{name}*"), context(" · ".join(facts))]
ordered = sorted(group, key=lambda job: (not SENIOR.search(job.get("title") or ""), job.get("postedAt") or ""), reverse=False)
ordered = [job for job in ordered if SENIOR.search(job.get("title") or "")] + sorted(
[job for job in ordered if not SENIOR.search(job.get("title") or "")], key=lambda job: job.get("postedAt") or "", reverse=True)
blocks += [section(job_line(job)) for job in ordered[:SHOWN]]
if len(group) > SHOWN:
dataset = f"{CONSOLE}/storage/datasets/{run.default_dataset_id}"
blocks.append(context(f"+{len(group) - SHOWN} more in the <{dataset}|run's dataset>"))
return blocks
def job_line(job):
"""One line per role: a marker for senior titles, team, where, pay when stated, link."""
mark = "🔺 " if SENIOR.search(job.get("title") or "") else "• "
parts = [f"{mark}*{esc(clip(job.get('title') or '?', 90))}*"]
where = job.get("location") or ("Remote" if job.get("remote") else None)
if job.get("remote") and where and "remote" not in where.lower():
where += " (remote)"
for value in (job.get("department") or job.get("team"), where, job.get("salaryText"), job.get("employmentType")):
if value:
parts.append(esc(clip(value, 60)))
line = " · ".join(parts)
if job.get("url"):
line += f" · <{job['url']}|open>"
if job.get("postedAt"):
line += f"\n_posted {job['postedAt'][:10]}_"
return line
def pack(header, sections, fallback, limit=50):
"""Slack takes at most 50 blocks per message: split between companies, never inside."""
messages, blocks = [], list(header)
for part in sections:
if len(blocks) + len(part) > limit:
messages.append(blocks)
blocks = []
blocks += part
messages.append(blocks)
return [{"text": fallback, "blocks": b} for b in messages]
def post(webhook, message):
"""Posts one message. Retries rate limits, server errors and network failures."""
data = json.dumps(message).encode()
for attempt in range(4):
request = urllib.request.Request(
webhook, data=data, headers={"Content-Type": "application/json"}
)
try:
with urllib.request.urlopen(request, timeout=30):
return
except urllib.error.HTTPError as e:
if (e.code != 429 and e.code < 500) or attempt == 3:
reason = e.read().decode()[:200]
raise RuntimeError(f"Slack answered HTTP {e.code}: {reason}") from None
time.sleep(int(e.headers.get("Retry-After") or 2**attempt))
except urllib.error.URLError as e:
if attempt == 3:
raise RuntimeError(f"Slack unreachable: {e.reason}") from None
time.sleep(2**attempt)
def section(text):
return {"type": "section", "text": mrkdwn(text)}
def context(text):
return {"type": "context", "elements": [mrkdwn(text)]}
def mrkdwn(text):
return {"type": "mrkdwn", "text": text}
def esc(text):
return str(text).replace("&", "&").replace("<", "<").replace(">", ">")
def clip(text, limit):
return text if len(text) <= limit else text[:limit].rsplit(" ", 1)[0] + " …"
def main():
token, webhook, dry_run = (os.environ.get(k) for k in
("APIFY_TOKEN", "SLACK_WEBHOOK_URL", "DRY_RUN"))
if not token or not (webhook or dry_run): # checked before paying for a run
sys.exit("Set APIFY_TOKEN and SLACK_WEBHOOK_URL (or DRY_RUN=1) first.")
run, rows = fetch(ApifyClient(token))
messages = build_messages(run, rows)
print(f"run {run.id}: {len(rows)} rows, {len(messages)} message(s)", file=sys.stderr)
if dry_run:
print(json.dumps(messages, indent=2, ensure_ascii=False))
return
for message in messages:
try:
post(webhook, message)
except RuntimeError as e:
sys.exit(f"{e}\nNothing was skipped: REPLAY_RUN_ID={run.id} uv run hiring_signals.py")
if __name__ == "__main__":
main()The parts worth a second look
Starting the run. call() starts the actor and blocks until it finishes. The spending cap and the run timeout bound the worst case. Any status other than SUCCEEDED exits non-zero with a link to the run, so the scheduler marks the job failed and GitHub emails you.
def fetch(client):
"""Starts the actor and waits, or loads an earlier run. Returns run and rows."""
replay = os.environ.get("REPLAY_RUN_ID")
if replay:
run = client.run(replay).get()
else:
run = client.actor(ACTOR).call(
run_input=RUN_INPUT,
max_total_charge_usd=MAX_CHARGE_USD,
run_timeout=timedelta(minutes=15),
)
if run is None:
sys.exit(f"Run {replay} not found")
if run.status != "SUCCEEDED":
sys.exit(f"Actor run ended {run.status}: {run_url(run)}")
return run, list(client.dataset(run.default_dataset_id).iterate_items(clean=True))Grouping and the senior marker. One group per board, busiest first. The group's header takes the open-role count and the top departments from the company row; inside the group, titles that match SENIOR come first and carry the marker, the rest follow newest first. Change the pattern to what counts as a signal for you.
def company_blocks(company, group, run):
name = company.get("companyName") or group[0].get("company") or "?"
name = esc(name.capitalize() if name.islower() else name) # boards without a company name give their slug
facts = [f"{len(group)} new"]
if company.get("jobsOnBoard"):
facts.append(f"{company['jobsOnBoard']} open on the board")
teams = [f"{d['name']} {d['count']}" for d in (company.get("departments") or [])[:3] if d.get("name")]
if teams:
facts.append(", ".join(teams))
blocks = [section(f"*{name}*"), context(" · ".join(facts))]
ordered = sorted(group, key=lambda job: (not SENIOR.search(job.get("title") or ""), job.get("postedAt") or ""), reverse=False)
ordered = [job for job in ordered if SENIOR.search(job.get("title") or "")] + sorted(
[job for job in ordered if not SENIOR.search(job.get("title") or "")], key=lambda job: job.get("postedAt") or "", reverse=True)
blocks += [section(job_line(job)) for job in ordered[:SHOWN]]
if len(group) > SHOWN:
dataset = f"{CONSOLE}/storage/datasets/{run.default_dataset_id}"
blocks.append(context(f"+{len(group) - SHOWN} more in the <{dataset}|run's dataset>"))
return blocks
def job_line(job):
"""One line per role: a marker for senior titles, team, where, pay when stated, link."""
mark = "🔺 " if SENIOR.search(job.get("title") or "") else "• "
parts = [f"{mark}*{esc(clip(job.get('title') or '?', 90))}*"]
where = job.get("location") or ("Remote" if job.get("remote") else None)
if job.get("remote") and where and "remote" not in where.lower():
where += " (remote)"
for value in (job.get("department") or job.get("team"), where, job.get("salaryText"), job.get("employmentType")):
if value:
parts.append(esc(clip(value, 60)))
line = " · ".join(parts)
if job.get("url"):
line += f" · <{job['url']}|open>"
if job.get("postedAt"):
line += f"\n_posted {job['postedAt'][:10]}_"
return linePosting. Slack takes at most 50 blocks per message and 3,000 characters per section, so titles are clipped, six roles are shown per company, and a long digest is split between companies, never inside one. Rate limits, server errors and network failures are retried with the delay Slack asks for; anything else fails the job at once, with the run's ID in the error.
def post(webhook, message):
"""Posts one message. Retries rate limits, server errors and network failures."""
data = json.dumps(message).encode()
for attempt in range(4):
request = urllib.request.Request(
webhook, data=data, headers={"Content-Type": "application/json"}
)
try:
with urllib.request.urlopen(request, timeout=30):
return
except urllib.error.HTTPError as e:
if (e.code != 429 and e.code < 500) or attempt == 3:
reason = e.read().decode()[:200]
raise RuntimeError(f"Slack answered HTTP {e.code}: {reason}") from None
time.sleep(int(e.headers.get("Retry-After") or 2**attempt))
except urllib.error.URLError as e:
if attempt == 3:
raise RuntimeError(f"Slack unreachable: {e.reason}") from None
time.sleep(2**attempt)3Run it on your machine
export APIFY_TOKEN=apify_api_... # Console > Settings > API & Integrations
DRY_RUN=1 uv run hiring_signals.py > messages.json # real run, nothing postedThe dry run prints the messages to messages.json and the run's ID to the terminal, and posts nothing. Paste one message into Slack's Block Kit Builder to see it rendered.
It is still a real run, so it moves the checkpoint forward: running again would find nothing new. To post exactly what you just inspected, replay that run instead:
export SLACK_WEBHOOK_URL=https://hooks.slack.com/services/...
REPLAY_RUN_ID=<run id from the dry run> uv run hiring_signals.py # posts that run's rolesThe checkpoint moves when the run completes, before Slack sees anything. If Slack is down, the job fails, and its log prints the exact REPLAY_RUN_ID=… command that posts the same run later. The rows stay in the run's dataset in your Apify account for your plan's retention period, so no role is lost.
4Schedule it
Put the workflow next to the script:
name: Hiring signals
on:
schedule:
- cron: "41 6 * * 1-5" # weekdays 06:41 UTC, off the busy full hour
workflow_dispatch: # the "Run workflow" button, for tests
# Two overlapping runs would read one checkpoint and post the same roles twice.
concurrency: hiring-signals
jobs:
signals:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v10
- run: uv run hiring_signals.py
env:
APIFY_TOKEN: ${{ secrets.APIFY_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}Add the two secrets and start a first run without waiting for tomorrow:
gh secret set APIFY_TOKEN # paste the token when asked
gh secret set SLACK_WEBHOOK_URL
gh workflow run "Hiring signals" # first digest now instead of tomorrow morning- 06:41, not 07:00. GitHub delays scheduled jobs at the top of the hour, when most of them start.
- Weekdays only. Boards change on working days; a Monday run covers the weekend because the checkpoint does not care about dates.
concurrencykeeps two runs from overlapping. Two runs would read the same checkpoint and post the same roles twice.- Public repositories: GitHub disables scheduled workflows after 60 days without activity in a public repository. Keep the job in a private one, or re-enable it when GitHub emails you.
What it costs
You pay per job the actor returns. Company records and errors are free, filtered-out roles are never fetched, and the first 25 jobs each month are free for every account. For a watchlist of ten accounts that open about three roles a day each:
| Rows | Count | Price | Per month |
|---|---|---|---|
| New roles, ten accounts, weekdays | ≈ 650 | $0.0009 | $0.59 |
| First run: the last 30 days of postings, up to 100 per account | ≤ 1,000 | $0.0009 | ≤ $0.90 once |
| Company records, errors, start fee | 22 a day | free / $0.00005 | $0.00 |
| Total | ≈ $1 |
GitHub Actions needs about a minute a day, inside the free minutes of any plan. Paid Apify plans pay less per row, up to 40% less on Gold. A watchlist of a hundred accounts costs roughly ten times this, and keywords or departments cut it further because the actor filters before it charges.
Running it for real
- A capped run re-sends rather than skips. When an account hits the spending cap, the actor marks it
PARTIALand leaves its checkpoint where it was. The next run walks from the old checkpoint again: you may see a few roles twice, but you never miss one. The message shows a warning so you can raiseMAX_CHARGE_USD. - Large boards. A company with thousands of open roles (Bosch has about 5,000) is read newest first; with
keywordsordepartmentsset the actor pages through the whole board to apply them, which takes a minute.maxJobsPerCompanykeeps the first run bounded. - Unsupported systems. Companies on Workday, Teamtailor, Jobvite, iCIMS, SuccessFactors or Taleo come back as a warning line: those systems publish no documented public job API and the actor does not reverse-engineer private ones.
- One checkpoint store per watchlist. Two digests sharing a
checkpointStoreNamewould split each other's roles.
Variations
- Discord or Microsoft Teams:
build_messages()andpost()are the only Slack-specific parts; swap them for the other webhook format. - Only engineering, only remote: set
"departments": ["Engineering"]or"remoteOnly": trueinRUN_INPUT; the actor filters before it charges. - Different lists for different teams: run the script once per watchlist, each with its own
checkpointStoreNameand webhook. - A hiring tracker instead of a digest: drop the checkpoint, keep
maxJobsPerCompany: 1, and write the freecompanyrows (open roles, top departments, remote share) to a sheet with Apify's Google Sheets integration.
Troubleshooting
Nothing gets posted
Either there were no new roles (the log says so) or the checkpoint is further ahead than you expect, for example after a dry run. To start over, delete the key-value store named in checkpointStoreName under Storage → Key-value stores in the Apify Console.
"no careers page or job board was found"
The site does not link to its board and the board slug differs from the brand. Open the company's careers page, copy the board URL (for example https://boards.greenhouse.io/…) and put that in the watchlist instead of the domain.
A company shows under its board slug, not its name
Lever, Ashby, Personio and BambooHR boards publish no company name, so the slug is used. Rename it in the script if it bothers you, or pass the domain instead of the shorthand so companyDomain identifies it.
Slack answered HTTP 403, 404 or 410
The response names the reason: a revoked or mistyped webhook (invalid_token, no_service) or an archived channel (channel_is_archived). Create a new webhook, update the secret, then replay the failed run.
"stopped at the $1.00 cap"
An account delivered more roles than the cap allows in one run, usually on the first run. Raise MAX_CHARGE_USD or lower maxJobsPerCompany; nothing was skipped, the next run continues from the old checkpoint.