<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Donglin Li</title>
    <description>The latest articles on DEV Community by Donglin Li (@realjons).</description>
    <link>https://dev.to/realjons</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4239415%2Fcee21429-f54c-400a-b9fe-9db69870b292.jpg</url>
      <title>DEV Community: Donglin Li</title>
      <link>https://dev.to/realjons</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/realjons"/>
    <language>en</language>
    <item>
      <title>Invoice Ledger Design — Immutable Invoice &amp; VAT Invoice Audit for Shopify</title>
      <dc:creator>Donglin Li</dc:creator>
      <pubDate>Mon, 30 Nov 2026 12:48:23 +0000</pubDate>
      <link>https://dev.to/realjons/invoice-ledger-design-immutable-invoice-vat-invoice-audit-for-shopify-1bcd</link>
      <guid>https://dev.to/realjons/invoice-ledger-design-immutable-invoice-vat-invoice-audit-for-shopify-1bcd</guid>
      <description>&lt;h2&gt;
  
  
  Why invoice data integrity matters
&lt;/h2&gt;

&lt;p&gt;If you sell across borders, invoice errors don't announce themselves. A discount quietly rewrites a unit price. A tax rate drifts. A VAT ID ends up in a shop tag instead of on the invoice. By the time anyone notices, the record has already been issued — and in most systems it can be silently rewritten afterward.&lt;/p&gt;

&lt;p&gt;An &lt;strong&gt;Invoice Ledger&lt;/strong&gt; built as an append-only, tamper-evident record changes that. Here's the approach and where the honest limits are.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an Immutable Invoice actually means
&lt;/h2&gt;

&lt;p&gt;An Immutable Invoice is a SHA256 hash-chain entry: each invoice references the one before it. Change a unit price or a tax field and every subsequent hash breaks, so tampering becomes visible.&lt;/p&gt;

&lt;p&gt;The precise claim matters. A hash chain makes records &lt;em&gt;tamper-evident&lt;/em&gt;, not physically unchangeable. It detects alterations after the fact rather than preventing an authorized-but-wrong entry. Calling it "immutable" without that caveat would be misleading.&lt;/p&gt;

&lt;h2&gt;
  
  
  Field-by-field VAT Invoice Audit
&lt;/h2&gt;

&lt;p&gt;Visual checks miss data errors. A real VAT Invoice Audit compares unit price, discount, tax and total against the source order with Decimal precision — before the invoice goes out.&lt;/p&gt;

&lt;p&gt;Using fixed-point Decimal rather than floating point is what prevents phantom mismatches and catches a discount that rewrote a unit price. VAT IDs belong in structured invoice fields, not loose tags, especially in cross-border B2B sales.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cross-border rules without false promises
&lt;/h2&gt;

&lt;p&gt;The system applies tax rules for 31 jurisdictions (EU27 + US/GB/CA/AU) and renders invoices in 7 languages. But rates are &lt;strong&gt;not hardcoded&lt;/strong&gt; — they are data flagged for legal review.&lt;/p&gt;

&lt;p&gt;That distinction is deliberate: this is a data-integrity convenience, &lt;strong&gt;not tax or legal advice&lt;/strong&gt;. Charging VAT-inclusive consumer prices at checkout is normal and lawful; the concern is VAT IDs being mishandled in cross-border B2B sales.&lt;/p&gt;

&lt;h2&gt;
  
  
  Migration and ownership
&lt;/h2&gt;

&lt;p&gt;Switching accounting systems should not cost you your history. Three import paths — public data, admin exports, competitor exports — plus full export keep the ledger portable. Invoices are billed per document actually generated, not per store order, and recipients confirm receipt before delivery.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Does a hash chain make invoices truly immutable?&lt;/strong&gt;&lt;br&gt;
No. It makes them tamper-evident: any change breaks the chain and is visible. It does not prevent an authorized entry that is simply wrong.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are the tax rates authoritative?&lt;/strong&gt;&lt;br&gt;
No. Rates are data flagged for legal review, not hardcoded constants. A professional should sign off on cross-border tax treatment.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I move my existing invoices in?&lt;/strong&gt;&lt;br&gt;
Yes — via public data, admin exports, or competitor exports, with full export and no lock-in.&lt;/p&gt;

&lt;h2&gt;
  
  
  The boundary we hold to
&lt;/h2&gt;

&lt;p&gt;We don't claim to replace an accountant or lawyer. Being explicit about what a data-integrity layer can and cannot do is part of shipping something merchants and their advisors can trust.&lt;/p&gt;

&lt;p&gt;Learn more: &lt;a href="https://realjons.github.io/pixelcart-legal/" rel="noopener noreferrer"&gt;https://realjons.github.io/pixelcart-legal/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>shopify</category>
      <category>invoicing</category>
      <category>api</category>
      <category>ecommerce</category>
    </item>
    <item>
      <title>Federal Register API Scraper — US Rules &amp; Notices</title>
      <dc:creator>Donglin Li</dc:creator>
      <pubDate>Mon, 30 Nov 2026 12:30:09 +0000</pubDate>
      <link>https://dev.to/realjons/federal-register-api-scraper-us-rules-notices-h5f</link>
      <guid>https://dev.to/realjons/federal-register-api-scraper-us-rules-notices-h5f</guid>
      <description>&lt;p&gt;If you need to monitor Federal Register rules without an API key, a Federal Register API Scraper on Apify reads the official public Federal Register API and returns structured records you can filter by keyword, document type or agency. This guide walks through a no-key workflow: dry-run first, cap what each run writes, then automate the feed. You get document number, title, type, publication date, agencies and a source URL — built for regulatory monitoring, compliance alerts and policy research.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why monitor regulation instead of bulk-scraping it
&lt;/h2&gt;

&lt;p&gt;Federal rule changes are public, but they are buried in a firehose. Re-fetching the whole feed on a schedule wastes requests and, on pay-per-event platforms, credits. If you only care about &lt;em&gt;new&lt;/em&gt; rules matching a narrow topic, a monitored Actor is a better fit than a bulk scraper.&lt;/p&gt;

&lt;p&gt;Actor page: &lt;a href="https://apify.com/daj8/federal-register-scraper-incremental" rel="noopener noreferrer"&gt;https://apify.com/daj8/federal-register-scraper-incremental&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to monitor Federal Register rules without an API key
&lt;/h2&gt;

&lt;p&gt;The Federal Register API Scraper uses the official Federal Register public API — no API key, no login. You can narrow results server-side by &lt;code&gt;keyword&lt;/code&gt;, document &lt;code&gt;type&lt;/code&gt; and &lt;code&gt;agencies&lt;/code&gt;, so the Actor fetches only what matches. The &lt;code&gt;maxItems&lt;/code&gt; cap then refers to real matches, not a raw page you filter locally: it is honored by fetching whole 50-item API pages rather than truncating a single fixed page.&lt;/p&gt;

&lt;p&gt;To start:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the Store page and click &lt;strong&gt;Try it&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Run with &lt;code&gt;dryRun: true&lt;/code&gt; and a narrow query, for example &lt;code&gt;keyword: "lending"&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Inspect the dataset, then turn on the cost guard and schedule the Actor.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Use Apify Scheduler for the cadence. Connect the dataset to a webhook, a Slack channel, an email digest or a compliance database. Each run writes &lt;code&gt;LAST_RUN_SUMMARY&lt;/code&gt; to the key-value store with fetched and pushed counts.&lt;/p&gt;

&lt;h2&gt;
  
  
  Federal Register API scraper fields
&lt;/h2&gt;

&lt;p&gt;Each row from the Federal Register API Scraper contains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;document number&lt;/li&gt;
&lt;li&gt;title&lt;/li&gt;
&lt;li&gt;type (rules, proposed rules, notices)&lt;/li&gt;
&lt;li&gt;publication date&lt;/li&gt;
&lt;li&gt;agencies&lt;/li&gt;
&lt;li&gt;source HTML URL&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is the field set this Actor returns. It does not attempt CFR references, RINs or full document text — if you need those, a different tool is a better fit.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing and cost control
&lt;/h2&gt;

&lt;p&gt;Two inputs keep the bill predictable:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;maxChargeItems&lt;/code&gt; caps dataset writes per run.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;dryRun: false&lt;/code&gt; commits results and advances the checkpoint.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Seen-document tracking uses a deterministic ordered queue: the oldest entries are trimmed first, and documents with no usable timestamp are skipped rather than re-emitted with a fabricated "now". That last point matters — a fallback timestamp turns every run into a "new" run and quietly doubles your bill.&lt;/p&gt;

&lt;p&gt;Check the Store page for current pricing before raising the cap.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest scope
&lt;/h2&gt;

&lt;p&gt;Deduplication is within a run. Cross-run checkpointing is not reliable on this account because each API run gets a fresh key-value store; if you need persistent state, configure a persistent KV store at the platform level and feed the high-water mark back in.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Do I need an API key for the Federal Register API?&lt;/strong&gt;&lt;br&gt;
No. The Federal Register API Scraper uses the official public API — no key, no login.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which document types can I monitor?&lt;/strong&gt;&lt;br&gt;
Rules, proposed rules and notices, filtered by keyword, type or agency.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How does it avoid duplicate documents?&lt;/strong&gt;&lt;br&gt;
Within a run it deduplicates; seen documents follow a deterministic ordered queue. Cross-run state needs a persistent key-value store you configure yourself.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get full document text or CFR references?&lt;/strong&gt;&lt;br&gt;
No. The output is metadata-level: document number, title, type, publication date, agencies and source URL.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where to go next
&lt;/h2&gt;

&lt;p&gt;The same pattern works for SEC filings (&lt;code&gt;10-K/10-Q/8-K&lt;/code&gt; by CIK) and ClinicalTrials.gov status changes. Both are public APIs with no key, and both are available as Actors in the same family.&lt;/p&gt;

&lt;p&gt;Actor page: &lt;a href="https://apify.com/daj8/federal-register-scraper-incremental" rel="noopener noreferrer"&gt;https://apify.com/daj8/federal-register-scraper-incremental&lt;/a&gt;&lt;/p&gt;

</description>
      <category>apify</category>
      <category>api</category>
      <category>regulation</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Hacker News Scraper API — New Stories &amp; Scores</title>
      <dc:creator>Donglin Li</dc:creator>
      <pubDate>Mon, 30 Nov 2026 12:30:06 +0000</pubDate>
      <link>https://dev.to/realjons/hacker-news-scraper-api-new-stories-scores-4m11</link>
      <guid>https://dev.to/realjons/hacker-news-scraper-api-new-stories-scores-4m11</guid>
      <description>&lt;p&gt;If you need to scrape Hacker News stories without managing credentials, a Hacker News Scraper API built on the official public Firebase API is the simplest route: no API key, no login, no proxy. This guide shows how to collect new stories as structured JSON, control what a run costs, and stay honest about where incremental state ends. You will get story id, title, url, score, author and timestamp — and a repeatable monitoring workflow you can schedule.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why monitor instead of re-scraping
&lt;/h2&gt;

&lt;p&gt;Every time a scheduled scraper fetches a whole feed, it pays for rows it has already seen. On pay-per-event platforms that is not just wasted requests — it is wasted credits. I built a small Apify Actor to watch Hacker News incrementally and added a cost guard after reading the same complaint in several scraper reviews: "it devoured my credits, an early warning would have saved me."&lt;/p&gt;

&lt;p&gt;Actor page: &lt;a href="https://apify.com/daj8/hackernews-scraper-incremental" rel="noopener noreferrer"&gt;https://apify.com/daj8/hackernews-scraper-incremental&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  How to scrape Hacker News without an API key
&lt;/h2&gt;

&lt;p&gt;The Hacker News Scraper API uses the official public Hacker News Firebase API, so there is nothing to register and no token to rotate. To try it:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Open the Store page and click &lt;strong&gt;Try it&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Start with &lt;code&gt;maxItems: 20&lt;/code&gt; so the first run finishes quickly.&lt;/li&gt;
&lt;li&gt;Inspect the dataset, then schedule the Actor for the cadence you need.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Use Apify Scheduler for repeat runs. Connect the dataset to a webhook, Slack, email, a database or a BI tool. Each run writes &lt;code&gt;LAST_RUN_SUMMARY&lt;/code&gt; to the key-value store with fetched and pushed counts — a cheap health signal.&lt;/p&gt;

&lt;h2&gt;
  
  
  Hacker News scraper fields
&lt;/h2&gt;

&lt;p&gt;Each row from the Hacker News Scraper API is structured JSON:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;id&lt;/code&gt; — the Hacker News story id&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;title&lt;/code&gt; — story headline&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;url&lt;/code&gt; — outbound link&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;score&lt;/code&gt; — points&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;by&lt;/code&gt; — submitting username&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;time&lt;/code&gt; — publication timestamp&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That is the honest field set. If you need full comment trees, user profiles or Algolia full-text search, this Actor is deliberately not that tool.&lt;/p&gt;

&lt;h2&gt;
  
  
  Pricing and cost control
&lt;/h2&gt;

&lt;p&gt;Two input fields control what a run can spend:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;maxChargeItems&lt;/code&gt; (1–500) caps the number of dataset writes per run.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;dryRun: true&lt;/code&gt; previews results without pushing or advancing the checkpoint.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;When a run is truncated, only the highest story id that was actually pushed advances the watermark. The remaining stories stay eligible for the next run instead of being silently skipped.&lt;/p&gt;

&lt;p&gt;The registry lists $0.0003 per item (pay-per-event). Check the Store page for the current price. Dry-run first, then raise &lt;code&gt;maxChargeItems&lt;/code&gt; once you trust the output.&lt;/p&gt;

&lt;h2&gt;
  
  
  Honest limits of incremental state
&lt;/h2&gt;

&lt;p&gt;Deduplication happens &lt;strong&gt;within a run&lt;/strong&gt;. Cross-run checkpointing is not reliable on this account because each API run gets a fresh key-value store. If you need true incremental state across runs, configure a persistent KV store at the platform level and feed its high-water mark back as input.&lt;/p&gt;

&lt;h2&gt;
  
  
  FAQ
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Do I need an API key to scrape Hacker News?&lt;/strong&gt;&lt;br&gt;
No. This Hacker News Scraper API reads the official public Firebase API — no API key, no login, no proxy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Which Hacker News stories does it return?&lt;/strong&gt;&lt;br&gt;
New stories from the public feed, with id, title, url, score, author and timestamp. It is built for monitoring recent activity, not historical backfill or comment-tree analysis.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;How do I avoid surprise charges?&lt;/strong&gt;&lt;br&gt;
Start with &lt;code&gt;dryRun: true&lt;/code&gt;, set &lt;code&gt;maxChargeItems&lt;/code&gt; to a small number, and check &lt;code&gt;LAST_RUN_SUMMARY&lt;/code&gt; after each run before raising the cap.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Can I get comments or user profiles?&lt;/strong&gt;&lt;br&gt;
No. Those fields are outside the scope of this Actor; the output is story-level data only.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned
&lt;/h2&gt;

&lt;p&gt;A cheap scraper is not the same as a cheap &lt;em&gt;monitor&lt;/em&gt;. The difference is whether truncation loses data and whether a runaway loop can spend your credits before you notice. Building the cap and the dry-run first, then the scraping logic, saved me from both problems.&lt;/p&gt;

&lt;p&gt;If you want the source or want to tell me what fields you need next, the Actor page is the place: &lt;a href="https://apify.com/daj8/hackernews-scraper-incremental" rel="noopener noreferrer"&gt;https://apify.com/daj8/hackernews-scraper-incremental&lt;/a&gt;&lt;/p&gt;

</description>
      <category>apify</category>
      <category>webscraping</category>
      <category>api</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>I Studied 30 Top Apify Actors: Here's How They Price Scrapers (And What I Changed)</title>
      <dc:creator>Donglin Li</dc:creator>
      <pubDate>Thu, 26 Nov 2026 08:59:10 +0000</pubDate>
      <link>https://dev.to/realjons/i-studied-30-top-apify-actors-heres-how-they-price-scrapers-and-what-i-changed-1p27</link>
      <guid>https://dev.to/realjons/i-studied-30-top-apify-actors-heres-how-they-price-scrapers-and-what-i-changed-1p27</guid>
      <description>&lt;p&gt;I spent a day reading the real pricing data of 30 top-rated Actors on Apify Store. The goal: figure out how successful scrapers charge, so I could reprice my own 12 monitors. Here's what the data actually showed.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Almost nobody uses flat "per result" pricing anymore
&lt;/h2&gt;

&lt;p&gt;29 of the 30 actors I checked use &lt;strong&gt;PAY_PER_EVENT&lt;/strong&gt;, not the old flat per-dataset-item model. Apify's own docs confirm &lt;code&gt;PRICE_PER_DATASET_ITEM&lt;/code&gt; is no longer supported for new records.&lt;/p&gt;

&lt;p&gt;The top actors split charges into multiple named events:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;apify/instagram-scraper&lt;/code&gt;: one &lt;code&gt;result&lt;/code&gt; event, $0.0027 per item at FREE tier&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;compass/crawler-google-places&lt;/code&gt;: &lt;code&gt;place-scraped&lt;/code&gt;, &lt;code&gt;filter-applied&lt;/code&gt;, &lt;code&gt;lead-scraped&lt;/code&gt; (lead at $0.10 — deliberately expensive to discourage abuse)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;apify/google-search-scraper&lt;/code&gt;: AI add-on events priced at $0.20 on FREE but $0.001–0.009 on GOLD&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. The discount tiers are real — and steep
&lt;/h2&gt;

&lt;p&gt;Every high-rated actor I checked has tiered pricing (&lt;code&gt;eventTieredPricingUsd&lt;/code&gt;), not a flat price:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Actor&lt;/th&gt;
&lt;th&gt;FREE&lt;/th&gt;
&lt;th&gt;GOLD&lt;/th&gt;
&lt;th&gt;Drop&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;instagram-scraper&lt;/td&gt;
&lt;td&gt;$0.0027&lt;/td&gt;
&lt;td&gt;$0.0015&lt;/td&gt;
&lt;td&gt;-44%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;google-places&lt;/td&gt;
&lt;td&gt;$0.004&lt;/td&gt;
&lt;td&gt;$0.0015&lt;/td&gt;
&lt;td&gt;-62%&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;facebook-posts&lt;/td&gt;
&lt;td&gt;$0.005&lt;/td&gt;
&lt;td&gt;$0.002&lt;/td&gt;
&lt;td&gt;-60%&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Apify's official quality-score docs literally say: "Consider offering discounts for Bronze, Silver, and Gold subscription tiers — these incentives can increase your Actor's adoption among engaged customers."&lt;/p&gt;

&lt;h2&gt;
  
  
  3. What I changed
&lt;/h2&gt;

&lt;p&gt;My 12 monitors were all priced flat. I migrated every one to tiered PPE pricing (FREE full price → GOLD 50%) using the &lt;code&gt;eventTieredPricingUsd&lt;/code&gt; field, which is mutually exclusive with the flat &lt;code&gt;eventPriceUsd&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;One gotcha: the API rejects a pricing change unless you submit the full history of pricing objects first, then append exactly one new object. For two actors with long histories, the SDK call timed out but the write had actually succeeded — always re-read the actor before retrying.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Other quality-score details I fixed
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Example input&lt;/strong&gt;: every one of my actors had the template default &lt;code&gt;{"helloWorld": 123}&lt;/code&gt;. Users clicking "Try it" saw garbage. Replaced with real inputs like &lt;code&gt;{"query": "CRISPR"}&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;README structure&lt;/strong&gt;: Apify recommends Introduction / Tutorial / Pricing / Use cases / FAQ, 300+ words. Mine were 150–250 words with no Use cases section.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Automated testing&lt;/strong&gt;: Apify runs your actor daily with the schema's &lt;code&gt;prefill&lt;/code&gt; values and requires a non-empty dataset within 5 minutes. One of my actors had a required input with no prefill — it would have been flagged "Under maintenance".&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Takeaway
&lt;/h2&gt;

&lt;p&gt;If you publish on Apify: the pricing model and the metadata are not "set and forget" — they're ranking signals. Tiered PPE + real example inputs + a proper README cost a few hours and may be worth more than another feature.&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the pricing migration in the comments.&lt;/p&gt;

</description>
      <category>apify</category>
      <category>webscraping</category>
      <category>jobs</category>
      <category>python</category>
    </item>
    <item>
      <title>12 Public APIs You Can Monitor Without an API Key (Hacker News, SEC, PubMed &amp; More)</title>
      <dc:creator>Donglin Li</dc:creator>
      <pubDate>Wed, 25 Nov 2026 14:21:15 +0000</pubDate>
      <link>https://dev.to/realjons/12-public-apis-you-can-monitor-without-an-api-key-hacker-news-sec-pubmed-more-1jba</link>
      <guid>https://dev.to/realjons/12-public-apis-you-can-monitor-without-an-api-key-hacker-news-sec-pubmed-more-1jba</guid>
      <description>&lt;p&gt;Monitoring public data usually means signing up for a commercial API, getting a key, and watching usage bills. I spent the last two weeks building a different kind of scraper: ones that read from &lt;strong&gt;official public endpoints&lt;/strong&gt; and require no key at all.&lt;/p&gt;

&lt;p&gt;Here are 12 real data sources I verified (all returned HTTP 200 this week) and what you can build with them.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 12 sources (all keyless)
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Source&lt;/th&gt;
&lt;th&gt;Endpoint&lt;/th&gt;
&lt;th&gt;What changes&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;Hacker News&lt;/td&gt;
&lt;td&gt;Firebase API&lt;/td&gt;
&lt;td&gt;new top stories, score&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;SEC EDGAR&lt;/td&gt;
&lt;td&gt;data.sec.gov/submissions&lt;/td&gt;
&lt;td&gt;new filings (10-K/10-Q/8-K)&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Federal Register&lt;/td&gt;
&lt;td&gt;official API&lt;/td&gt;
&lt;td&gt;new US rules&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;StackExchange&lt;/td&gt;
&lt;td&gt;/2.3/questions&lt;/td&gt;
&lt;td&gt;new questions&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Product Hunt&lt;/td&gt;
&lt;td&gt;Atom RSS&lt;/td&gt;
&lt;td&gt;new launches&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Wikipedia&lt;/td&gt;
&lt;td&gt;MediaWiki recentchanges&lt;/td&gt;
&lt;td&gt;edits in 6 languages&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;PubMed&lt;/td&gt;
&lt;td&gt;NCBI E-utilities&lt;/td&gt;
&lt;td&gt;new papers by keyword&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Nasdaq&lt;/td&gt;
&lt;td&gt;api.nasdaq.com/api/calendar&lt;/td&gt;
&lt;td&gt;earnings events&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;YouTube&lt;/td&gt;
&lt;td&gt;channel RSS&lt;/td&gt;
&lt;td&gt;new videos&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ATS boards&lt;/td&gt;
&lt;td&gt;Greenhouse/Lever/Ashby&lt;/td&gt;
&lt;td&gt;new jobs&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Medium&lt;/td&gt;
&lt;td&gt;/feed/tag/&lt;/td&gt;
&lt;td&gt;new articles by topic&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;ClinicalTrials.gov&lt;/td&gt;
&lt;td&gt;API v2&lt;/td&gt;
&lt;td&gt;trial status changes&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The pattern I used
&lt;/h2&gt;

&lt;p&gt;Every monitor follows the same shape:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Fetch a documented public endpoint (with a descriptive User-Agent — Wikimedia and SEC both 403 the default httpx UA).&lt;/li&gt;
&lt;li&gt;Extract a stable id (story id, accession number, PMID, NCT id, video id).&lt;/li&gt;
&lt;li&gt;Filter out ids already seen in this batch, then push only fresh records.&lt;/li&gt;
&lt;li&gt;Cap the run with &lt;code&gt;dryRun&lt;/code&gt; and &lt;code&gt;maxChargeItems&lt;/code&gt; so a bad input can't produce an unbounded bill.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The full working code for all 12 is on the Apify Store — search &lt;strong&gt;"scraper"&lt;/strong&gt; plus any source name.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I learned the hard way
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;"HTTP 200" does not mean "usable data". A wholesale site returned 200 with a bot-punishment page. I dropped it.&lt;/li&gt;
&lt;li&gt;Some RSS feeds contain invalid CDATA that breaks strict XML parsers. A regex fallback saved the Medium monitor.&lt;/li&gt;
&lt;li&gt;Don't put &lt;code&gt;example.com&lt;/code&gt; in your User-Agent — Apify's quality gate flags it as a placeholder.&lt;/li&gt;
&lt;li&gt;Across-run checkpoints need a persistent KV store; API-triggered runs get a fresh default store. So treat each run as a snapshot with per-run de-duplication unless you configure persistence.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Who is this for?
&lt;/h2&gt;

&lt;p&gt;Developers who want change alerts without vendor lock-in. All 12 Actors are on the Apify Store with a free tier and per-result pricing — try &lt;code&gt;dryRun: true&lt;/code&gt; first to see exactly what would be pushed.&lt;/p&gt;

&lt;p&gt;Happy to answer questions about any specific source in the comments.&lt;/p&gt;

</description>
      <category>apify</category>
      <category>webscraping</category>
      <category>jobs</category>
      <category>python</category>
    </item>
    <item>
      <title>I Built 10 Incremental Scrapers That Only Push New Data (Here's What I Learned)</title>
      <dc:creator>Donglin Li</dc:creator>
      <pubDate>Mon, 23 Nov 2026 08:40:32 +0000</pubDate>
      <link>https://dev.to/realjons/i-built-10-incremental-scrapers-that-only-push-new-data-heres-what-i-learned-17ko</link>
      <guid>https://dev.to/realjons/i-built-10-incremental-scrapers-that-only-push-new-data-heres-what-i-learned-17ko</guid>
      <description>&lt;p&gt;Last week I built a small fleet of Apify Actors with one rule: &lt;strong&gt;never push the same record twice&lt;/strong&gt;. Here's the honest story, including what didn't work.&lt;/p&gt;

&lt;h2&gt;
  
  
  The problem with most scrapers
&lt;/h2&gt;

&lt;p&gt;Most scrapers re-scrape everything and dump the full result set on every run. If you're monitoring for &lt;em&gt;changes&lt;/em&gt;, that means:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;duplicate data you have to de-dupe downstream&lt;/li&gt;
&lt;li&gt;duplicate &lt;strong&gt;billing&lt;/strong&gt; (Apify charges per dataset item on PPE actors)&lt;/li&gt;
&lt;li&gt;no clean way to say "only give me what's new since last time"&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The pattern I landed on
&lt;/h2&gt;

&lt;p&gt;Each actor keeps a checkpoint in Apify's key-value store:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="n"&gt;state&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get_value&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ckpt_key&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="n"&gt;seen&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;get&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"seen"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="ow"&gt;or&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="nb"&gt;isinstance&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;state&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="kt"&gt;dict&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;else&lt;/span&gt; &lt;span class="kt"&gt;set&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;

&lt;span class="n"&gt;fresh&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;for&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;rows&lt;/span&gt; &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s2"&gt;"id"&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt; &lt;span class="ow"&gt;not&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="n"&gt;seen&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;span class="n"&gt;pushed&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nf"&gt;guarded_push&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;fresh&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;actor_input&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="n"&gt;pushed&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nc"&gt;Actor&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;set_value&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;ckpt_key&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"seen"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kt"&gt;list&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;new_seen&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="mi"&gt;500&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"version"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Key details that mattered:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Checkpoint key is tenant- and config-scoped&lt;/strong&gt; — a global key mixes users and languages. One actor monitors 6 Wikipedia languages; the key is &lt;code&gt;WIKI_CP-v2-&amp;lt;lang&amp;gt;-&amp;lt;tenant&amp;gt;&lt;/code&gt;. Without that, an &lt;code&gt;en&lt;/code&gt; run poisons the &lt;code&gt;zh&lt;/code&gt; watermark.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Advance the checkpoint only after a successful push&lt;/strong&gt; — I initially advanced it before pushing. A &lt;code&gt;dryRun&lt;/code&gt; then skipped the data but ate the watermark. Silent data loss.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Cost guard before push&lt;/strong&gt; — &lt;code&gt;dryRun&lt;/code&gt; and &lt;code&gt;maxChargeItems&lt;/code&gt; cap spend. A runaway input can't produce an unbounded bill.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Check User-Agent&lt;/strong&gt; — Wikimedia and SEC both return 403 to the default httpx UA. A descriptive UA isn't optional.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Data sources that actually worked (all keyless)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Hacker News Firebase API&lt;/li&gt;
&lt;li&gt;SEC &lt;code&gt;data.sec.gov/submissions&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Federal Register API&lt;/li&gt;
&lt;li&gt;StackExchange &lt;code&gt;/2.3/questions&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;Product Hunt Atom RSS&lt;/li&gt;
&lt;li&gt;MediaWiki API (6 languages)&lt;/li&gt;
&lt;li&gt;PubMed E-utilities&lt;/li&gt;
&lt;li&gt;Nasdaq's public calendar API (&lt;code&gt;api.nasdaq.com/api/calendar/earnings&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;YouTube channel RSS&lt;/li&gt;
&lt;li&gt;Greenhouse / Lever / Ashby public job boards&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What I got wrong
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;I trusted an actor that reported &lt;code&gt;SUCCEEDED&lt;/code&gt; with &lt;strong&gt;zero&lt;/strong&gt; dataset items. It had a missing import — the platform marked the run successful anyway. Now I check dataset counts, not just status.&lt;/li&gt;
&lt;li&gt;I assumed "HTTP 200" meant "usable data". A Chinese wholesale site returned 200 with a bot-punishment page, not results. That actor got cancelled.&lt;/li&gt;
&lt;li&gt;I used a &lt;code&gt;PRICE_PER_DATASET_ITEM&lt;/code&gt; pricing model that Apify silently rejects. PAY_PER_EVENT is the supported one.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where they are
&lt;/h2&gt;

&lt;p&gt;All 10 are on the Apify Store. Pick any one and try it with &lt;code&gt;dryRun: true&lt;/code&gt; first — no charge, and you'll see exactly what would be pushed.&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the checkpoint pattern or the pricing experiments in the comments.&lt;/p&gt;

</description>
      <category>apify</category>
      <category>webscraping</category>
      <category>jobs</category>
      <category>python</category>
    </item>
    <item>
      <title>I aggregated 3 ATS job boards (Greenhouse, Lever, Ashby) into one normalized dataset — here's what I learned</title>
      <dc:creator>Donglin Li</dc:creator>
      <pubDate>Wed, 11 Nov 2026 16:14:53 +0000</pubDate>
      <link>https://dev.to/realjons/i-aggregated-3-ats-job-boards-greenhouse-lever-ashby-into-one-normalized-dataset-heres-what-3f4e</link>
      <guid>https://dev.to/realjons/i-aggregated-3-ats-job-boards-greenhouse-lever-ashby-into-one-normalized-dataset-heres-what-3f4e</guid>
      <description>&lt;p&gt;Job postings data is messy. Every company uses a different ATS, and each ATS returns a completely different schema:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Greenhouse&lt;/strong&gt;: integer IDs, &lt;code&gt;location.name&lt;/code&gt; nested object, &lt;code&gt;departments&lt;/code&gt; array&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Lever&lt;/strong&gt;: UUIDs, flat &lt;code&gt;categories&lt;/code&gt; object, workplace type as separate field&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Ashby&lt;/strong&gt;: different ID format again, &lt;code&gt;isRemote&lt;/code&gt; boolean, 970KB responses that stream-truncate&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I built an Apify Actor to normalize all three into one schema. Technical notes:&lt;/p&gt;

&lt;h2&gt;
  
  
  The double-encoded HTML trap
&lt;/h2&gt;

&lt;p&gt;Greenhouse serves some boards with double-encoded HTML: &lt;code&gt;&amp;amp;lt;p&amp;amp;gt;Salary: $121,600...&amp;amp;lt;/p&amp;amp;gt;&lt;/code&gt; instead of &lt;code&gt;&amp;lt;p&amp;gt;...&amp;lt;/p&amp;gt;&lt;/code&gt;. One &lt;code&gt;html.unescape()&lt;/code&gt; pass isn't enough — you need two, and you need to unescape &lt;em&gt;before&lt;/em&gt; truncating, or a 400-char snippet becomes pure &lt;code&gt;&amp;amp;lt;&lt;/code&gt; entities.&lt;/p&gt;

&lt;h2&gt;
  
  
  Salary extraction is a regex problem, not an AI problem
&lt;/h2&gt;

&lt;p&gt;The biggest competitor in this space uses AI enrichment for salary fields — and has &lt;strong&gt;0% coverage&lt;/strong&gt; on the boards I tested. Plain regex with context windows ("salary range", "Salary:", "base pay", "Base pay: $85/hr") gets &lt;strong&gt;37.8%&lt;/strong&gt; overall and 77% on companies that publish ranges. Sometimes boring beats clever.&lt;/p&gt;

&lt;h2&gt;
  
  
  Rate limiting changes your architecture
&lt;/h2&gt;

&lt;p&gt;My home IP got SSL-reset by one ATS after heavy polling. The fix: automatic proxy fallback (direct first, then proxy on connection errors). Without this, your nightly cron silently dies.&lt;/p&gt;

&lt;h2&gt;
  
  
  Incremental monitoring beats full downloads
&lt;/h2&gt;

&lt;p&gt;Buyers don't want a 50k-row dataset re-downloaded daily. They want "alert me when tracked companies post new jobs". &lt;code&gt;sinceDays&lt;/code&gt; + fingerprint dedup (company+title+location hash) turns a data dump into a monitoring service.&lt;/p&gt;




&lt;p&gt;Live on the Apify Store: &lt;a href="https://apify.com/daj8/ats-jobs-aggregator" rel="noopener noreferrer"&gt;ATS Jobs Aggregator&lt;/a&gt; — normalized postings across 3 ATS platforms, salary extraction included.&lt;/p&gt;

</description>
      <category>apify</category>
      <category>webscraping</category>
      <category>jobs</category>
      <category>python</category>
    </item>
  </channel>
</rss>
