<?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[AGI Tools]]></title><description><![CDATA[Engineering notes from AGI Tools on detecting hiring changes in Greenhouse, Lever and Ashby job boards, with tested Clay, n8n and Make recipes.]]></description><link>https://agitools.hashnode.dev</link><image><url>https://cdn.hashnode.com/uploads/logos/6b07aeb0a0212d491803e5d1/672a89f3-6005-421d-b600-a7a3b673eceb.png</url><title>AGI Tools</title><link>https://agitools.hashnode.dev</link></image><generator>RSS for Node</generator><lastBuildDate>Fri, 04 Dec 2026 22:10:01 GMT</lastBuildDate><atom:link href="https://agitools.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Watching EU public tenders without reading TED every morning]]></title><description><![CDATA[A working TED search API request and three pitfalls of daily EU tender watches: corrections, missing deadlines and full-text noise, with real numbers.]]></description><link>https://agitools.hashnode.dev/watching-eu-public-tenders-without-reading-ted-every-morning</link><guid isPermaLink="true">https://agitools.hashnode.dev/watching-eu-public-tenders-without-reading-ted-every-morning</guid><category><![CDATA[api]]></category><category><![CDATA[automation]]></category><category><![CDATA[#OpenData]]></category><category><![CDATA[data]]></category><dc:creator><![CDATA[AGI TOOLS]]></dc:creator><pubDate>Fri, 27 Nov 2026 01:26:56 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b07aeb0a0212d491803e5d1/3c53dab4-3b26-4e33-86fb-ea3fb1af18a0.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p><em>Disclosure: we publish EU Tender Alerts, a hosted version of the approach below on Apify. Everything in this article works with the free, official TED API and a few lines of code.</em></p>
<p>TED (Tenders Electronic Daily) is the EU's official procurement journal. Every working day it publishes thousands of notices from public buyers across the EU and the EEA, in 24 languages, and its search API is open, documented and free to use without a key. That makes "send me the new IT tenders in France and Germany every morning" look like a ten-minute script.</p>
<p>It is, until you run it for a week. Below is the request we started from, then three things that made the naive version unreliable in our own test runs, with the numbers.</p>
<h2>The request</h2>
<p>The search endpoint takes an expert query, the fields you want back and a page:</p>
<pre><code class="language-bash">curl -s -X POST https://api.ted.europa.eu/v3/notices/search \
  -H 'Content-Type: application/json' \
  -d '{
    "query": "classification-cpv IN (72000000) AND buyer-country IN (FRA DEU) AND form-type IN (competition) AND publication-date&gt;=20261120",
    "fields": ["publication-number", "publication-date", "notice-title", "buyer-name",
               "buyer-country", "procedure-type", "deadline-receipt-tender-date-lot",
               "deadline-receipt-request-date-lot", "estimated-value-proc", "estimated-value-cur-proc"],
    "page": 1,
    "limit": 50,
    "paginationMode": "PAGE_NUMBER"
  }'
</code></pre>
<p>A few things worth knowing before you build on it:</p>
<ul>
<li><strong>CPV codes are hierarchical.</strong> <code>72000000</code> (IT services: consulting, software development, Internet and support) includes its sub-codes, so one code covers a whole market.</li>
<li><strong>Countries are three-letter codes</strong> in the query (<code>FRA</code>, <code>DEU</code>), and <code>form-type IN (competition)</code> limits results to calls for tenders. Use <code>result</code> for contract awards.</li>
<li><strong>Text fields are multilingual.</strong> <code>notice-title</code> comes back as an object keyed by language (<code>eng</code>, <code>fra</code>, <code>deu</code> and up to 21 more). Pick the language you need and fall back to the buyer's own.</li>
<li><strong>Every field name is checked.</strong> One misspelt field and the whole request is rejected. There is also a limit on fields per page, so a long field list means smaller pages.</li>
</ul>
<p>On 27 November this query returned <strong>158 notices</strong> published since 20 November.</p>
<h2>1. A date filter is not a change feed</h2>
<p>The obvious daily job is "everything published since yesterday". It finds new notices, but it cannot tell you what they mean for a tender you already know about.</p>
<p>Buyers correct tenders. A deadline moves, a value changes, a lot is added, and the correction is published as a <strong>new notice with a new publication number</strong>. In one of our test runs, an open tender received a correction a few days later that changed only its deadline. A date-filtered feed shows that correction as just another notice, and your team either reads the same tender twice or misses that the deadline moved.</p>
<p>What you actually need is memory per <strong>procedure</strong>, not per notice: TED gives every notice a procedure identifier, so you can recognise "a notice about a tender I already have" and report what changed (the previous and the new deadline) instead of a second copy.</p>
<h2>2. The deadline you want is not always there</h2>
<p><code>deadline-receipt-tender-date-lot</code> looks like "the deadline". In the 50 notices of the request above, <strong>19 had no tender deadline at all</strong>, and 18 of those had only <code>deadline-receipt-request-date-lot</code>: the deadline for <strong>requests to participate</strong>.</p>
<p>That is normal for restricted and negotiated procedures. First, suppliers ask to take part; only the shortlisted ones receive the tender documents and a tender deadline later. If your script reads only the tender deadline, it reports these opportunities with no date, or drops them, and the request deadline (the one that actually matters to you) passes unnoticed.</p>
<p>Ask for both fields, keep the deadline type next to the date, and note that deadlines are per lot: the earliest lot deadline is usually the one to show.</p>
<h2>3. Full-text search matches boilerplate</h2>
<p>TED has a full-text field, <code>FT</code>. It is tempting: <code>FT~"cloud"</code> finds every notice that mentions cloud anywhere.</p>
<p>For buyers in France, Belgium and Luxembourg, notices published since 20 November:</p>
<table>
<thead>
<tr>
<th>Query</th>
<th>Notices</th>
</tr>
</thead>
<tbody><tr>
<td><code>FT~"cloud"</code></td>
<td>175</td>
</tr>
<tr>
<td><code>cloud</code> in titles and descriptions (<code>notice-title</code>, <code>title-proc</code>, <code>description-proc</code>, <code>title-lot</code>, <code>description-lot</code>)</td>
<td>9</td>
</tr>
</tbody></table>
<p>The full-text matches are mostly not about cloud services. When we looked at a similar run, most of them came from one buyer platform whose document links contain the word "cloud" in their host name. They were URLs and standard clauses, not the subject of the tender.</p>
<p>Search keywords in titles and descriptions, and keep full text as an explicit option for the rare case where you really want it.</p>
<h2>What we built on it</h2>
<p>These three findings shaped <a href="https://apify.com/agitools/eu-tender-alerts">EU Tender Alerts</a>, an Apify Actor that runs this kind of watch:</p>
<ul>
<li>one memory per watch (a <code>monitorId</code>), so each run returns only <strong>new tenders</strong>, <strong>updates</strong> to tenders it already reported (with the previous deadline or value) and <strong>awards</strong> with the winners;</li>
<li>keywords matched in titles and descriptions by default, CPV codes and buyer countries as filters;</li>
<li>both deadline types, the earliest lot deadline and the days left;</li>
<li>a summary record per run, so an empty week is visibly empty rather than silently broken.</li>
</ul>
<p>It runs on a schedule in your own Apify account, or from an AI agent through Apify's MCP server. If you prefer to build your own, the request above and the three rules (remember procedures, read both deadlines, scope your keywords) are most of the work.</p>
<p><em>Tender data: TED, © European Union. We are not affiliated with the European Union or the Publications Office.</em></p>
]]></content:encoded></item><item><title><![CDATA[How to detect hiring changes from public job-board APIs (and the three mistakes that make them useless)]]></title><description><![CDATA[A dependency-free snapshot diff for Greenhouse, Lever and Ashby job boards, and the three mistakes that make naive diffs lie.]]></description><link>https://agitools.hashnode.dev/how-to-detect-hiring-changes-from-public-job-board-apis-and-the-three-mistakes-that-make-them-useless</link><guid isPermaLink="true">https://agitools.hashnode.dev/how-to-detect-hiring-changes-from-public-job-board-apis-and-the-three-mistakes-that-make-them-useless</guid><category><![CDATA[Python]]></category><category><![CDATA[api]]></category><category><![CDATA[automation]]></category><category><![CDATA[web scraping]]></category><dc:creator><![CDATA[AGI TOOLS]]></dc:creator><pubDate>Thu, 26 Nov 2026 04:05:24 GMT</pubDate><enclosure url="https://cdn.hashnode.com/uploads/covers/6b07aeb0a0212d491803e5d1/a9ea8443-1fd6-46ca-bdfa-446ecdc0f774.png" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Most hiring-signal tools boil down to one question: <em>what changed on this company's job board since yesterday?</em> Greenhouse, Lever and Ashby all publish the open jobs of their customers through public, documented job-board endpoints, so you can answer that question with a few dozen lines of code. This post shows a small, dependency-free version, then the three mistakes that quietly ruin it once you run it on a schedule.</p>
<p>Disclosure: I work on AGI Tools, which publishes a hosted version of this idea as an Apify Actor. The code below does not need it. The last section says honestly when a hosted version is worth paying for and when it is not.</p>
<h2>1. The endpoints</h2>
<p>Each vendor documents a public read endpoint for a company's job board:</p>
<table>
<thead>
<tr>
<th>Vendor</th>
<th>Endpoint (public, read-only)</th>
<th>Reference</th>
</tr>
</thead>
<tbody><tr>
<td>Greenhouse</td>
<td><code>GET https://boards-api.greenhouse.io/v1/boards/&lt;board_token&gt;/jobs</code></td>
<td><a href="http://docs.greenhouse.io/job-board.html">docs.greenhouse.io/job-board.html</a></td>
</tr>
<tr>
<td>Lever</td>
<td><code>GET https://api.lever.co/v0/postings/&lt;site&gt;?mode=json</code> (EU: <code>api.eu.lever.co</code>)</td>
<td>Lever Postings API (<a href="http://github.com/lever/postings-api">github.com/lever/postings-api</a>)</td>
</tr>
<tr>
<td>Ashby</td>
<td><code>GET https://api.ashbyhq.com/posting-api/job-board/&lt;board_name&gt;</code></td>
<td><a href="http://developers.ashbyhq.com/docs/public-job-posting-api">developers.ashbyhq.com/docs/public-job-posting-api</a></td>
</tr>
</tbody></table>
<p>The board token or name is the last part of the company's careers URL, for example <code>boards.greenhouse.io/stripe</code>. These endpoints return what the company has chosen to publish; they are meant for career pages and job aggregators. Read the vendor's terms and be polite: one request per board per run, a descriptive <code>User-Agent</code>, no hammering.</p>
<h2>2. The naive diff</h2>
<p>Save yesterday's list of job ids, fetch today's, and compare:</p>
<ul>
<li>ids that are new → "new job"</li>
<li>ids that disappeared → "job closed"</li>
<li>ids present in both but with different content → "job changed"</li>
</ul>
<p>That is the whole idea, and it works for a week. Then it starts lying to you.</p>
<h2>3. Mistake one: treating timestamps as changes</h2>
<p>Greenhouse returns an <code>updated_at</code> per job. It is tempting to say "updated_at moved, so the job changed". On many boards it moves for every job at once, because someone re-saved the board or a template changed. You get a "wave of changes" that is noise.</p>
<p>Fix: fingerprint only the fields a human would call a change (title, location, posting URL; add the department if you track it) and ignore timestamps.</p>
<h2>4. Mistake two: letting a bad answer close jobs</h2>
<p>A request fails halfway, the vendor returns an error object, or a paginated read stops early. Your script sees a short list and concludes that fifty jobs closed. If that feeds a job board, you just unpublished fifty live listings.</p>
<p>Fix: treat the answer as untrusted until it checks out. It needs a <code>jobs</code> list, every job needs an id and a title, and when the API reports a total it must match what you received. If anything is off, stop, keep the old snapshot and try again next time. Never close anything from an answer you do not trust.</p>
<h2>5. Mistake three: closing on the first miss</h2>
<p>Even a valid answer can omit a job for a moment: a posting being republished, a board mid-edit. Closing on the first miss produces flapping "closed, then new again" noise.</p>
<p>Fix: require the job to be missing from two consecutive complete reads, and be extra careful when a board that had jobs suddenly lists none at all.</p>
<h2>6. The code</h2>
<p>Here is the core, about thirty-five lines, with the three fixes in place (the full script, with a command-line wrapper and fifteen offline tests, is <a href="https://github.com/seskosouha2222-star/ats-job-change-recipes/blob/main/python/greenhouse_snapshot_diff.py"><code>greenhouse_snapshot_diff.py</code></a> in the open-source recipes repository):</p>
<pre><code class="language-python">CONFIRM_READS = 2

def parse_board(payload):
    if not isinstance(payload, dict) or not isinstance(payload.get("jobs"), list):
        raise IncompleteRead("answer has no 'jobs' list")
    jobs = {}
    for item in payload["jobs"]:
        if not isinstance(item, dict) or item.get("id") is None or not item.get("title"):
            raise IncompleteRead("a job without an id or a title")
        loc = (item.get("location") or {}).get("name") or ""
        rec = {"title": item["title"].strip(), "location": loc.strip(),
               "url": item.get("absolute_url") or ""}
        rec["fingerprint"] = hash_of(rec["title"], rec["location"], rec["url"])  # no updated_at
        jobs[str(item["id"])] = rec
    total = (payload.get("meta") or {}).get("total")
    if isinstance(total, int) and total != len(jobs):
        raise IncompleteRead("partial answer")
    return jobs

def diff(previous, current):
    old, missing, changes = previous.get("jobs", {}), dict(previous.get("missing", {})), []
    for job_id, rec in current.items():
        missing.pop(job_id, None)
        if job_id not in old:
            changes.append(("new", job_id, rec))
        elif old[job_id]["fingerprint"] != rec["fingerprint"]:
            changes.append(("changed", job_id, rec))
    needed = CONFIRM_READS + 1 if (old and not current) else CONFIRM_READS
    for job_id, rec in old.items():
        if job_id not in current:
            missing[job_id] = missing.get(job_id, 0) + 1
            if missing[job_id] &gt;= needed:
                changes.append(("closed", job_id, rec))
    return changes, missing
</code></pre>
<p>Two operational details matter more than the code: write the snapshot only after the changes were produced (and write it atomically), and treat the very first run as a baseline, so you do not announce 400 "new" jobs on day one.</p>
<h2>7. What you still have to build</h2>
<p>The script covers one vendor and one board. Running it for real means: Lever and Ashby parsers; a list of boards and a way to find the right board for a company name; state per watch list when several people or tables share it; delivery to Slack, a sheet or a CRM; retries and rate limits; and a way to notice when a vendor changes its response. Teams that want a signal rather than a job feed also add company-level logic on top ("first role in a new department", "unusual hiring burst").</p>
<h2>8. When a hosted version is worth it</h2>
<p>Lists of open jobs are becoming a commodity: several data tools now give them away. What a list does not give you is the difference since your last look, with closures you can trust. That is the part this post is about.</p>
<p>If you watch a handful of boards for yourself, run the script from a cron job and enjoy a free tool. If you need hundreds of boards across the three vendors, per-list memory, confirmed closures, no charge for unchanged jobs or for boards that failed to load, and output that plugs into Clay, n8n, Make or an API, the Apify Actor <a href="https://apify.com/agitools/ats-jobs-delta">ATS Job Changes Feed</a> (<code>agitools/ats-jobs-delta</code>) does exactly that, pay per event, in your own Apify account. The <a href="https://github.com/seskosouha2222-star/ats-job-change-recipes">recipes</a> (Python, SQL, n8n, Make) are open source under the MIT licence.</p>
<p>Not affiliated with Greenhouse, Lever, Ashby or Apify.</p>
]]></content:encoded></item></channel></rss>