<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Cuesta Data]]></title><description><![CDATA[Cuesta Data]]></description><link>https://cuestadata.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6afe68a3f5feca6914ec6543/7a7f1993-346b-4043-bdf6-e705d376b3e8.png</url><title>Cuesta Data</title><link>https://cuestadata.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 21:22:54 GMT</lastBuildDate><atom:link href="https://cuestadata.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Check domain availability in bulk with RDAP and Python]]></title><description><![CDATA[Check which domains are free across .com, .io, .ai and more with DNS, RDAP and a WHOIS fallback. Tested Python code and real results.]]></description><link>https://cuestadata.hashnode.dev/check-domain-availability-in-bulk-with-rdap-and-python</link><guid isPermaLink="true">https://cuestadata.hashnode.dev/check-domain-availability-in-bulk-with-rdap-and-python</guid><category><![CDATA[Python]]></category><category><![CDATA[dns]]></category><category><![CDATA[domain]]></category><category><![CDATA[api]]></category><dc:creator><![CDATA[Cuesta Data]]></dc:creator><pubDate>Mon, 30 Nov 2026 16:02:25 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6afe68a3f5feca6914ec6543/2b6ca4c9-6402-4d13-912b-d74954679bec.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Naming something is hard enough without typing 40 name ideas into a registrar's search box one at a time, across five extensions each. Registrar APIs usually want an account and an API key. Old WHOIS scripts break on every registry's slightly different text format.</p>
<p>There's a better source: <strong>RDAP</strong>, the Registration Data Access Protocol. It's the official replacement for WHOIS, it's run by the registries themselves, and it returns JSON over HTTPS. This post builds a small bulk checker around it and covers the two gaps you'll hit in practice.</p>
<h2>The plan</h2>
<p>For each domain:</p>
<ol>
<li><strong>DNS lookup.</strong> If the domain has nameservers, it's registered. Done, and it costs nothing.</li>
<li><strong>RDAP lookup</strong> at the registry. A 404 means the registry has no record of it. A 200 means it's registered, and you get dates for free.</li>
<li><strong>WHOIS fallback</strong>, only for extensions that don't offer RDAP yet.</li>
</ol>
<p>The order matters. DNS is fast and cached, so it removes most taken names before you touch a registry's rate limit.</p>
<h2>Step 1: DNS can prove "taken", but never "free"</h2>
<p>Cloudflare's DNS-over-HTTPS endpoint returns JSON, so there's no DNS library to install:</p>
<pre><code class="language-python">import time
import requests

BOOTSTRAP = "https://data.iana.org/rdap/dns.json"
DOH = "https://cloudflare-dns.com/dns-query"


def has_nameservers(domain):
    """True if the domain has NS records. That proves it's registered (the reverse is not true)."""
    r = requests.get(DOH, params={"name": domain, "type": "NS"},
                     headers={"accept": "application/dns-json"}, timeout=15)
    answers = r.json().get("Answer", [])
    return any(a.get("type") == 2 for a in answers)
</code></pre>
<p>The catch is in the docstring. A domain can be registered and have no nameservers at all: parked without DNS, on hold, or simply never set up. In our test run, <code>openai.ai</code> had no NS records, but RDAP showed it's registered until 2029. So "no DNS" only means "go ask the registry".</p>
<h2>Step 2: find the right RDAP server</h2>
<p>Every registry runs its own RDAP server. IANA publishes a bootstrap file that maps each TLD to its server:</p>
<pre><code class="language-python">def load_rdap_servers():
    """Map each TLD to its registry's RDAP base URL, using IANA's bootstrap file."""
    data = requests.get(BOOTSTRAP, timeout=30).json()
    servers = {}
    for tlds, urls in data["services"]:
        base = next((u for u in urls if u.startswith("https://")), urls[0])
        for tld in tlds:
            servers[tld.lower()] = base.rstrip("/") + "/"
    return servers
</code></pre>
<p>When we ran this, the file covered 1,204 TLDs. Download it once per run, not once per domain.</p>
<h2>Step 3: ask the registry</h2>
<p>An RDAP domain lookup is a plain GET to <code>&lt;server&gt;domain/&lt;name&gt;</code>:</p>
<pre><code class="language-python">def rdap_lookup(domain, servers, retries=3):
    tld = domain.rsplit(".", 1)[-1].lower()
    base = servers.get(tld)
    if not base:
        return {"domain": domain, "status": "unknown", "note": f".{tld} has no RDAP server"}
    for attempt in range(retries):
        r = requests.get(base + "domain/" + domain, timeout=20,
                         headers={"accept": "application/rdap+json"})
        if r.status_code == 404:
            return {"domain": domain, "status": "available"}
        if r.status_code == 200:
            events = {e["eventAction"]: e["eventDate"] for e in r.json().get("events", [])}
            return {"domain": domain, "status": "registered",
                    "expires": events.get("expiration"), "created": events.get("registration")}
        if r.status_code == 429:  # slow down and retry
            time.sleep(2 ** attempt * 2)
            continue
        break
    return {"domain": domain, "status": "unknown", "note": f"RDAP HTTP {r.status_code}"}
</code></pre>
<p>The <code>events</code> list is where the useful dates live: <code>registration</code>, <code>expiration</code>, <code>last changed</code>. That makes the same function handy for watching when your own domains expire.</p>
<h2>Step 4: the gap, and the WHOIS fallback</h2>
<p>Some popular extensions still aren't in the bootstrap file. In our run, <code>.io</code> and <code>.de</code> were both missing, so RDAP can't answer for them. Their registries still run WHOIS on port 43, which is plain text over a socket. Each registry phrases "not registered" differently, so you match a marker per TLD:</p>
<pre><code class="language-python">import socket

# TLDs without RDAP still answer WHOIS on port 43. Each registry words "not found" differently.
WHOIS = {
    "io": ("whois.nic.io", "domain not found"),
    "de": ("whois.denic.de", "status: free"),
}


def whois_available(domain):
    tld = domain.rsplit(".", 1)[-1].lower()
    host, free_marker = WHOIS[tld]
    query = f"-T dn {domain}\r\n" if tld == "de" else f"{domain}\r\n"
    with socket.create_connection((host, 43), timeout=15) as s:
        s.sendall(query.encode())
        chunks = []
        while data := s.recv(4096):
            chunks.append(data)
    text = b"".join(chunks).decode("utf-8", "replace").lower()
    return free_marker in text, text[:300]
</code></pre>
<p>Read the terms printed in those responses before you scale this up. The <code>.io</code> WHOIS output, for example, says you may not use it to "enable high volume, automated, electronic processes" except as reasonably necessary to register domain names, and that queries are throttled. Checking a shortlist before you register is exactly that use. Hammering it with a million names is not.</p>
<h2>Results from a real run</h2>
<table>
<thead>
<tr>
<th>Domain</th>
<th>Result</th>
<th>Answered by</th>
</tr>
</thead>
<tbody><tr>
<td><code>brightquokka-tools.com</code></td>
<td>available</td>
<td>RDAP 404</td>
</tr>
<tr>
<td><code>brightquokka-tools.dev</code></td>
<td>available</td>
<td>RDAP 404</td>
</tr>
<tr>
<td><code>brightquokka-tools.ai</code></td>
<td>available</td>
<td>RDAP 404</td>
</tr>
<tr>
<td><code>brightquokka-tools.io</code></td>
<td>available</td>
<td>WHOIS</td>
</tr>
<tr>
<td><code>brightquokka-tools.de</code></td>
<td>available</td>
<td>WHOIS</td>
</tr>
<tr>
<td><code>stripe.com</code></td>
<td>registered</td>
<td>DNS (has nameservers)</td>
</tr>
<tr>
<td><code>notion.io</code></td>
<td>registered</td>
<td>DNS (has nameservers)</td>
</tr>
<tr>
<td><code>openai.ai</code></td>
<td>registered, expires 2029-11-03</td>
<td>RDAP 200 (no NS records)</td>
</tr>
</tbody></table>
<h2>What "available" really means</h2>
<p>A 404 from the registry means there's no registration record. It doesn't always mean you can buy the name at the normal price:</p>
<ul>
<li><strong>Premium names</strong> are unregistered but priced far above standard.</li>
<li><strong>Reserved names</strong> are blocked by the registry and may not show up in RDAP at all.</li>
<li><strong>Recently expired names</strong> can sit in a redemption or pending-delete period before they're released.</li>
</ul>
<p>Treat the script's output as a shortlist, then confirm the final pick at your registrar before you print the business cards.</p>
<h2>Be a good citizen</h2>
<p>Registries throttle both RDAP and WHOIS and answer with HTTP 429 or dropped connections when you go too fast. Keep one or two requests in flight per registry, back off when you see a 429, cache results, and let DNS filter out the obvious taken names first. Never store or publish registrant contact data. You don't need it to answer "is it free?"</p>
<h2>The shortcut</h2>
<p>If you'd rather not maintain per-registry WHOIS quirks, we built this into <a href="https://apify.com/cuestadata/domain-availability-checker">Bulk Domain Availability Checker</a> on Apify. You give it name ideas and a list of extensions (or full domains), and it runs the same DNS, RDAP and WHOIS sequence with per-registry rate limits. It returns available or registered with a confidence level, plus registrar, created and expiry dates, days until expiry and status codes for taken names. It's priced per domain checked, and inconclusive results aren't charged. To be upfront: we built it and maintain it.</p>
<p>Either way, check the whole shortlist across every extension you care about before you fall in love with a name.</p>
<p><em>Written with AI assistance. Every code sample in this post was run before publishing, and the numbers come from those runs.</em></p>
]]></content:encoded></item><item><title><![CDATA[How to check Core Web Vitals for every page in your sitemap]]></title><description><![CDATA[Measure LCP, CLS and TBT for every URL in a sitemap with Lighthouse and Python, then add real-user CrUX data. Tested code included.]]></description><link>https://cuestadata.hashnode.dev/how-to-check-core-web-vitals-for-every-page-in-your-sitemap</link><guid isPermaLink="true">https://cuestadata.hashnode.dev/how-to-check-core-web-vitals-for-every-page-in-your-sitemap</guid><category><![CDATA[web performance]]></category><category><![CDATA[Core Web Vitals]]></category><category><![CDATA[Python]]></category><category><![CDATA[SEO]]></category><category><![CDATA[Lighthouse]]></category><dc:creator><![CDATA[Cuesta Data]]></dc:creator><pubDate>Mon, 23 Nov 2026 16:01:37 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6afe68a3f5feca6914ec6543/05465374-2aa8-47a3-b57e-99622140aea3.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>PageSpeed Insights is great for one URL. It's painful for 300. If you want to know which templates on your site are slow, you need every page in the sitemap measured the same way, in one table you can sort.</p>
<p>This post walks through a small Python script that does that with Lighthouse, explains which numbers you can and can't get from a lab test, and covers the rate-limit trap with the PageSpeed Insights API.</p>
<h2>First, lab data vs field data</h2>
<p>Core Web Vitals are three metrics:</p>
<table>
<thead>
<tr>
<th>Metric</th>
<th>Measures</th>
<th>"Good" at the 75th percentile</th>
</tr>
</thead>
<tbody><tr>
<td>LCP (Largest Contentful Paint)</td>
<td>loading</td>
<td>2.5 s or less</td>
</tr>
<tr>
<td>INP (Interaction to Next Paint)</td>
<td>responsiveness</td>
<td>200 ms or less</td>
</tr>
<tr>
<td>CLS (Cumulative Layout Shift)</td>
<td>visual stability</td>
<td>0.1 or less</td>
</tr>
</tbody></table>
<p>Google ranks with <strong>field data</strong>: real Chrome users, collected in the Chrome UX Report (CrUX). A Lighthouse run is <strong>lab data</strong>: one simulated page load on a throttled device.</p>
<p>That difference matters for one metric in particular. Lighthouse can measure LCP and CLS, but it <strong>can't measure INP</strong>, because nobody clicks anything during a lab run. Total Blocking Time (TBT) is the usual lab stand-in: a page with a lot of main-thread blocking during load tends to respond slowly to clicks too.</p>
<p>So the practical plan is:</p>
<ol>
<li>Run Lighthouse on every page to get LCP, CLS and TBT, and find slow templates.</li>
<li>Where Google has enough traffic data, pull field LCP, INP and CLS from CrUX to see what users actually experience.</li>
</ol>
<h2>Why not just loop over the PageSpeed Insights API?</h2>
<p>You can. The endpoint is <code>https://www.googleapis.com/pagespeedonline/v5/runPagespeed?url=...&amp;strategy=mobile&amp;category=performance</code> and it runs Lighthouse for you on Google's servers.</p>
<p>The catch is quota. Without an API key you share a quota with everyone else calling the API without one. When we tried a single keyless request while writing this, it came back with HTTP 429 and <code>Quota exceeded for quota metric 'Queries' and limit 'Queries per day'</code>. With your own free key from Google Cloud it works, but you still have daily and per-minute limits, and each call takes several seconds because it runs a full page load. For a few hundred URLs that's fine if you throttle. For thousands, or if you want to run it every week, running Lighthouse yourself is often simpler.</p>
<h2>Step 1: get the URLs from the sitemap</h2>
<p>Sitemaps are either a list of pages (<code>&lt;urlset&gt;</code>) or an index pointing at more sitemaps (<code>&lt;sitemapindex&gt;</code>). This handles both:</p>
<pre><code class="language-python">import json
import subprocess
import xml.etree.ElementTree as ET

import requests

NS = {"sm": "http://www.sitemaps.org/schemas/sitemap/0.9"}


def sitemap_urls(sitemap_url, limit=500):
    """Return page URLs from a sitemap, following sitemap index files."""
    queue, pages = [sitemap_url], []
    while queue and len(pages) &lt; limit:
        xml = requests.get(queue.pop(0), timeout=30).content
        root = ET.fromstring(xml)
        locs = [el.text.strip() for el in root.findall(".//sm:loc", NS)]
        if root.tag.endswith("sitemapindex"):
            queue.extend(locs)
        else:
            pages.extend(locs)
    return pages[:limit]
</code></pre>
<h2>Step 2: run Lighthouse on each page</h2>
<p>Install the CLI with <code>npm install -g lighthouse</code> (it needs Chrome on the machine). Then call it once per URL and keep only the numbers you need:</p>
<pre><code class="language-python">def lighthouse(url):
    """Run one Lighthouse performance audit (mobile, simulated throttling) and return lab metrics."""
    out = subprocess.run(
        ["lighthouse", url, "--only-categories=performance", "--output=json",
         "--output-path=stdout", "--quiet", "--chrome-flags=--headless=new"],
        capture_output=True, text=True, timeout=180,
    )
    report = json.loads(out.stdout)
    audits = report["audits"]
    return {
        "url": url,
        "score": round(report["categories"]["performance"]["score"] * 100),
        "lcp_ms": round(audits["largest-contentful-paint"]["numericValue"]),
        "cls": round(audits["cumulative-layout-shift"]["numericValue"], 3),
        "tbt_ms": round(audits["total-blocking-time"]["numericValue"]),
    }


rows = [lighthouse(u) for u in sitemap_urls("https://example.com/sitemap.xml", limit=50)]
rows.sort(key=lambda r: r["lcp_ms"], reverse=True)
for r in rows[:10]:
    print(r)
</code></pre>
<p>On the Crawlee blog index this returned a performance score of 70, LCP of 1.9 s, CLS of 0 and TBT of 1.6 s. So loading was fine, but there was a lot of JavaScript work during load, which is the thing to look at for INP.</p>
<p>A few notes from running this at scale:</p>
<ul>
<li><strong>Run audits one at a time.</strong> Parallel Lighthouse runs on the same machine compete for CPU and inflate each other's numbers. If you need speed, use several machines, not several tabs.</li>
<li><strong>Mobile is the default.</strong> The CLI emulates a mid-range phone with simulated throttling. Add <code>--preset=desktop</code> for a desktop run.</li>
<li><strong>Expect variance.</strong> Scores move a few points between runs. For decisions, run each URL 3 times and take the median.</li>
<li><strong>Running as root or in Docker?</strong> Add <code>--no-sandbox</code> to the Chrome flags.</li>
</ul>
<h2>Step 3: add field data from CrUX</h2>
<p>The Chrome UX Report API gives you the real-user 75th percentile for a URL, or for the whole origin when a single page doesn't have enough traffic. It needs a free API key:</p>
<pre><code class="language-python">CRUX = "https://chromeuxreport.googleapis.com/v1/records:queryRecord?key=YOUR_API_KEY"
METRICS = ["largest_contentful_paint", "interaction_to_next_paint", "cumulative_layout_shift"]


def crux(url, form_factor="PHONE"):
    for scope, value in (("url", url), ("origin", url.split("/", 3)[0] + "//" + url.split("/", 3)[2])):
        r = requests.post(CRUX, json={scope: value, "formFactor": form_factor, "metrics": METRICS}, timeout=30)
        if r.status_code == 404:  # not enough real-user data at this level
            continue
        r.raise_for_status()
        m = r.json()["record"]["metrics"]
        p75 = lambda k: m.get(k, {}).get("percentiles", {}).get("p75")
        return {"scope": scope, "lcp_ms": p75("largest_contentful_paint"),
                "inp_ms": p75("interaction_to_next_paint"), "cls": p75("cumulative_layout_shift")}
    return None
</code></pre>
<p>A 404 is normal for low-traffic pages. That's not an error, it just means Google doesn't have enough Chrome users on that URL to publish numbers. Falling back to the origin still tells you how the site does overall.</p>
<h2>What to do with the table</h2>
<p>Sort by LCP and TBT, then group by URL pattern (<code>/blog/*</code>, <code>/product/*</code>, <code>/docs/*</code>). Performance problems are almost always per template, not per page, so fixing the slowest template usually moves hundreds of URLs at once. In the Lighthouse JSON, the performance audits in the <code>insights</code> and <code>diagnostics</code> groups (unused JavaScript, image delivery, render-blocking requests and so on) carry estimated savings in <code>metricSavings</code>, so sorting by those tells you where to start.</p>
<h2>The shortcut</h2>
<p>If you don't want to babysit Chrome, we packaged this workflow as <a href="https://apify.com/cuestadata/pagespeed-lighthouse-audit">PageSpeed &amp; Lighthouse Bulk Audit</a> on Apify. You give it a sitemap or a list of URLs, it runs Lighthouse on each page in its own browser process, optionally pulls CrUX field data with your key, and returns scores, Core Web Vitals, the top fixes and an HTML report per page. It's priced per audit. To be upfront: we built and maintain it.</p>
<p>Whichever route you take, measure the whole sitemap, not just the homepage. The homepage is rarely where the slow pages are.</p>
<p><em>Written with AI assistance. Every code sample in this post was run before publishing, and the numbers come from those runs.</em></p>
]]></content:encoded></item><item><title><![CDATA[Pull every open job from Greenhouse, Lever and Ashby with three free APIs]]></title><description><![CDATA[Pull open jobs from Greenhouse, Lever and Ashby through their public JSON endpoints. No keys, no scraping. A tested Python script included.]]></description><link>https://cuestadata.hashnode.dev/pull-every-open-job-from-greenhouse-lever-and-ashby-with-three-free-apis</link><guid isPermaLink="true">https://cuestadata.hashnode.dev/pull-every-open-job-from-greenhouse-lever-and-ashby-with-three-free-apis</guid><category><![CDATA[Python]]></category><category><![CDATA[api]]></category><category><![CDATA[web scraping]]></category><category><![CDATA[automation]]></category><dc:creator><![CDATA[Cuesta Data]]></dc:creator><pubDate>Thu, 19 Nov 2026 03:34:48 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6afe68a3f5feca6914ec6543/2c1deb4d-fc36-48b9-a095-4b04f6e4722b.jpg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>If you are building a job board, tracking hiring at competitors, or just want an alert when a company you like posts a remote role, you probably assumed you'd need to scrape career pages. Most of the time you don't.</p>
<p>A large share of tech companies host their careers page on one of a few applicant tracking systems (ATS). Greenhouse, Lever and Ashby all publish the same job data through public JSON endpoints, so the company's own career widget can load it. No API key, no login, and the data is exactly what the company chose to make public.</p>
<p>Here is how each one works, and a small script that merges them into one feed.</p>
<h2>1. Find the company's board slug</h2>
<p>Every board has a short slug, usually the company name. The quickest way to find it is to open the company's careers page and look at where the job links point:</p>
<ul>
<li><code>boards.greenhouse.io/stripe</code> or <code>job-boards.greenhouse.io/stripe</code> means Greenhouse, slug <code>stripe</code></li>
<li><code>jobs.lever.co/palantir</code> means Lever, slug <code>palantir</code></li>
<li><code>jobs.ashbyhq.com/notion</code> means Ashby, slug <code>notion</code></li>
</ul>
<p>Some companies embed the board in their own site (Stripe's job links go to <code>stripe.com/jobs/...?gh_jid=...</code>). The <code>gh_jid</code> parameter is a Greenhouse giveaway. View the page source and search for <code>greenhouse</code>, <code>lever</code> or <code>ashby</code> and you'll usually find the slug.</p>
<h2>2. The three endpoints</h2>
<p><strong>Greenhouse</strong></p>
<pre><code>GET https://boards-api.greenhouse.io/v1/boards/{slug}/jobs
</code></pre>
<p>Returns <code>{"jobs": [...], "meta": {"total": N}}</code>. Each job has <code>title</code>, <code>absolute_url</code>, <code>location.name</code>, <code>first_published</code> and <code>updated_at</code>. Add <code>?content=true</code> if you also want the description HTML and departments, but the response gets much bigger.</p>
<p><strong>Lever</strong></p>
<pre><code>GET https://api.lever.co/v0/postings/{slug}?mode=json
</code></pre>
<p>Returns a plain JSON array. The title is in <code>text</code>, the link in <code>hostedUrl</code>, and location, team and commitment sit under <code>categories</code>. There's also <code>workplaceType</code> (<code>onsite</code>, <code>hybrid</code>, <code>remote</code>) and <code>createdAt</code>, which is a Unix timestamp in milliseconds. Some companies fill in <code>salaryRange</code>.</p>
<p><strong>Ashby</strong></p>
<pre><code>GET https://api.ashbyhq.com/posting-api/job-board/{slug}?includeCompensation=true
</code></pre>
<p>Returns <code>{"jobs": [...]}</code> with <code>title</code>, <code>location</code>, <code>department</code>, <code>team</code>, <code>isRemote</code>, <code>workplaceType</code>, <code>jobUrl</code> and <code>publishedAt</code>. With <code>includeCompensation=true</code> you get a <code>compensation</code> object, which contains a readable <code>compensationTierSummary</code> when the company publishes pay.</p>
<h2>3. One script, one shape</h2>
<p>The fields differ, so the useful part is normalizing them into a single record shape:</p>
<pre><code class="language-python">import json
import requests

HEADERS = {"User-Agent": "jobs-feed-example/1.0"}


def greenhouse(slug):
    url = f"https://boards-api.greenhouse.io/v1/boards/{slug}/jobs"
    data = requests.get(url, headers=HEADERS, timeout=30).json()
    for job in data.get("jobs", []):
        yield {
            "company": slug,
            "source": "greenhouse",
            "title": job["title"],
            "location": (job.get("location") or {}).get("name"),
            "url": job["absolute_url"],
            "posted": job.get("first_published") or job.get("updated_at"),
        }


def lever(slug):
    url = f"https://api.lever.co/v0/postings/{slug}?mode=json"
    for job in requests.get(url, headers=HEADERS, timeout=30).json():
        cats = job.get("categories") or {}
        yield {
            "company": slug,
            "source": "lever",
            "title": job["text"],
            "location": cats.get("location"),
            "team": cats.get("team"),
            "workplace": job.get("workplaceType"),
            "url": job["hostedUrl"],
            "posted": job.get("createdAt"),  # milliseconds since epoch
        }


def ashby(slug):
    url = f"https://api.ashbyhq.com/posting-api/job-board/{slug}?includeCompensation=true"
    data = requests.get(url, headers=HEADERS, timeout=30).json()
    for job in data.get("jobs", []):
        yield {
            "company": slug,
            "source": "ashby",
            "title": job["title"],
            "location": job.get("location"),
            "team": job.get("department"),
            "workplace": job.get("workplaceType"),
            "url": job["jobUrl"],
            "posted": job.get("publishedAt"),
            "salary": (job.get("compensation") or {}).get("compensationTierSummary"),
        }


BOARDS = [("greenhouse", "stripe"), ("lever", "palantir"), ("ashby", "notion")]
FETCH = {"greenhouse": greenhouse, "lever": lever, "ashby": ashby}

jobs = []
for ats, slug in BOARDS:
    jobs.extend(FETCH[ats](slug))

print(len(jobs), "jobs")
print(json.dumps(jobs[0], indent=2))
</code></pre>
<p>When we ran this in November 2026 it returned 1,259 open roles across those three companies in a few seconds.</p>
<h2>4. Filter it down</h2>
<p>A raw feed of every role is rarely what you want. A small filter goes a long way:</p>
<pre><code class="language-python">def matches(job, keywords=("engineer", "developer"), remote_only=False):
    title = job["title"].lower()
    if not any(k in title for k in keywords):
        return False
    if remote_only:
        where = f'{job.get("location") or ""} {job.get("workplace") or ""}'.lower()
        return "remote" in where
    return True

picked = [j for j in jobs if matches(j, remote_only=True)]
</code></pre>
<p>From the 1,259 jobs above, this kept 17 remote engineering roles.</p>
<h2>Things that will bite you</h2>
<ul>
<li><strong>Dates come in three formats.</strong> Greenhouse and Ashby use ISO 8601 strings, Lever uses epoch milliseconds. Convert them all to one format before you sort or diff.</li>
<li><strong>"Remote" is inconsistent.</strong> Lever and Ashby have a <code>workplaceType</code> field. Greenhouse usually only has free text in <code>location.name</code>, so you have to search the text.</li>
<li><strong>Slugs change.</strong> Companies rename boards or switch ATS. If an endpoint starts returning 404 or an empty list, check the careers page again.</li>
<li><strong>Be polite.</strong> These endpoints exist to power careers pages. Fetch each board once per run, cache the results, and don't hammer them every minute. Once or twice a day is plenty for most use cases.</li>
<li><strong>Many more ATSs exist.</strong> SmartRecruiters, Workable, Recruitee, Personio and Teamtailor all have public posting feeds too, each with its own quirks.</li>
</ul>
<h2>If you'd rather not maintain it</h2>
<p>The script above is fine for a handful of companies. Past that, most of the work is slug detection, eight different response formats, salary parsing and dates. We ran into exactly that, so we built <a href="https://apify.com/cuestadata/company-jobs-feed">Company Jobs Feed</a> on Apify. You give it company names or career page URLs, it finds the right board on the ATSs listed above and returns one normalized record per job, with salary and workplace type where the company publishes them. It's pay-per-job, and you can schedule it or call it from an API. Full disclosure: we're the team behind it.</p>
<p>Either way, the core idea stands. Before you scrape a careers page, check whether it is quietly loading a public JSON feed. It usually is.</p>
<p><em>Written with AI assistance. Every code sample in this post was run before publishing, and the numbers come from those runs.</em></p>
]]></content:encoded></item></channel></rss>