DEV Community

loserrrrrrrrrrrc
loserrrrrrrrrrrc

Posted on

Monetizing Web Scrapers on Apify: What Actually Works

Somebody published forty-two scrapers in three weeks and made $6.74.

One payment. Forty-two actors. That is the most useful number I have found on this platform: not a projection, not a competitor's price list — a full production run where most of the portfolio is dead weight and one actor carries everything.

I have twenty-nine actor directories, eleven of them through one batch where build, run, rows and pricing all verified together. Same shape, earlier stage.

Start with cost per thousand rows, not with a price

One sweep of my six Chinese-data actors produced 898 records in 45 seconds, 783,094 bytes of JSON — 2026-11-29, 03:19:53 to 03:20:38 UTC. The dominant job, 800 A-share rows, ran at 208.9 rows per second and wrote 879 bytes per row.

rows, seconds, nbytes = 800, 3.83, 703468

per_1k = {
    "rows_per_sec": round(rows / seconds, 1),        # 208.9
    "bytes_per_row": round(nbytes / rows, 1),        # 879.3
    "seconds_per_1k": round(1000 / (rows / seconds), 2),   # 4.79
    "kb_per_1k": round(nbytes / rows * 1000 / 1024, 1),    # 858.7
}
print(per_1k)
Enter fullscreen mode Exit fullscreen mode

Roughly 5 seconds and 860 KB per thousand rows, on a source where one request returns a page. Compare the Bilibili job in the same sweep: 18 records, 26,282 bytes, landing about 32 seconds after the previous source finished, because it makes one throttled HTTP call per object.

Same platform, same billing model, 100× difference in cost per row. Pricing both at "a few cents per thousand" guarantees the cheap one subsidises the expensive one.

Pay-per-event forces you to price the row, not the run

Apify bills per event you charge inside your actor — typically one actor-start plus one charge per result pushed. That maps well to scrapers, because cost scales with results.

# inside the actor, per pushed record
async def push(row):
    await Actor.push_data(row)
    try:
        await Actor.charge("result")      # one event per delivered row
    except Exception as exc:
        print(f"[charge] skipped: {exc}")  # no price configured yet — keep running
Enter fullscreen mode Exit fullscreen mode

The try/except is not defensive noise. During development there is no price on the event and charging raises; an actor that crashes on a missing price configuration is untestable. Charge after push_data, never before — no output, no charge.

Then the part that took a week: your own runs are free. Run your own actor with your own token and accountedChargedEventCounts sits at 0 forever while chargedEventCounts shows what your code fired. Two different fields, and mixing them up sends you hunting a billing bug that does not exist. Self-runs prove the charge point is wired. They never prove money arrives.

Also: chargedEventCounts lags. A run that just succeeded can read result: 0 while the log already says charges: result=3. I watched 0 → 3 and 2 → 3 on the same run id two minutes apart. Poll until it settles.

The wall is publishing, not scraping

Writing the actor took days. Getting it public took longer.

Free accounts can publish 5 actors a day — the sixth returns 429 daily-publication-limit-exceeded. You schedule around it.

Then four preconditions, each with its own error, and three of the four are Console-only — no API path:

Missing Error
Public profile not enabled 403 username-required
Store terms not accepted 403 store-terms-not-accepted
No payout/billing info 400 cannot-monetize-without-payout-billing-info
No output schema button greyed out: Add "Output" schema(s) to the source code and rebuild

The fourth one is code: an .actor/output_schema.json plus "output": "./output_schema.json" in actor.json. Miss it and the publish button stays grey with no error to search for.

Pricing has its own traps. PUT on pricingInfos is a change trajectory, not a replacement — send only the new object and you get 400 incorrect-pricing-modifier-prefix. On a brand-new actor there is no history, so sending two segments at once returns 400 cannot-add-multiple-pricing-infos; write the base segment alone first, then append. New segments must start later than every existing record or 400 cannot-add-pricing-info-that-alters-past. And an 80% discount on the top tier reads back as 87%, because the platform normalises PLATINUM and DIAMOND down to GOLD. Not a bug; not worth chasing.

The build queue has a ceiling too. Six builds in parallel is 6 × 4,096 MB against a 16 GB free-plan limit; the fifth and sixth came back 402 actor-memory-limit-exceeded and serialising fixed it.

The arithmetic, with a placeholder price

I am not going to quote a revenue figure, because the honest version is "depends how many people run it". The structure is what matters:

gross_per_run   = rows × price_per_result
net_per_run     = gross_per_run × (1 − platform_fee)
your_margin     = net_per_run − compute_cost
Enter fullscreen mode Exit fullscreen mode

With rows = 800 and price_per_result = P, one board pull is 800P(1−F). Set P so a hundred runs a month is worth the maintenance, then check whether the market agrees by watching whether anyone runs it twice.

My measured cost side, for calibration: 13 runs plus 6 builds came to $0.0264649 — $0.0102378 of run usage and $0.0162271 of build usage. Self-testing is not the expense. Not shipping is.

The number I actually track is repeat runs per buyer. A scraper run once and abandoned is a support ticket with a price tag. Two runs from the same account means the schema worked; ten means you have a customer.

What sells, based on what I had to fix

Every improvement that mattered came from the data-quality pass, not from the code.

Columns that are null on every row had to go. Weibo category was 30/30 null. Amap rating and cost were 15/15 null in one city and 5/5 in another. Removed all three. A buyer who opens the dataset, sees a blank column, and concludes the whole product is sloppy is right — it means nobody looked.

Labels had to be mapped with the raw value kept. Douyin's label enum gave me 0, 1, 3, 9 and 16. Only 1 and 3 have confirmed meanings, so output is label: "new" | "hot" | null next to label_raw: 1 | 3 | 9 | 16. Guessing 9 would have been easier and would have made the dataset a liability.

Units had to be documented. volume_lots is 手, 100 shares. turnover is CNY. Eastmoney writes - for missing, and 239 of my 800 rows had a negative PE because those companies lose money.

The gap in the ranking had to be explained. Weibo skips paid slots, so ranks run 1–6, 8–30. A buyer who does not know that files a bug on day one, and you spend the reply explaining that your scraper is more accurate than their expectation.

None of it shows in a demo. All of it shows in whether someone runs your actor a second time.

Discovery is a search problem

Nobody browses a scraper marketplace for entertainment. They arrive with a question — "how do I get Bilibili video stats without cookies", "eastmoney api python", "amap poi api" — and click whatever answers it.

The actor page is not the marketing; the article that ranks for the question is. Match the phrasing people use when they are stuck. "Bilibili video data without cookies" is a question. "Bilibili Data Scraper Pro" is a label. The first one gets searched.

What does not work

  • Generic "scrape any site" actors. Nobody searches for that, and the ones who do want a framework, not a hosted actor.
  • Pricing per run on tiny data. A 30-row board pull priced like an 800-row pull gets run once and never again.
  • Hiding the schema. Buyers compare field lists. No exact JSON in the docs means they assume the worst.
  • Promising coverage you have not tested. I have Baidu POI runs, so I claim Baidu. Anything else stays out of the description.
  • Chasing quantity. Six actors with documented nulls beat forty that return whatever the endpoint gave. The 42-and-$6.74 case is the proof, not the counter-example.

And the objection I hear most: why not just requests and a proxy? Some buyers do — the ones with one requirement and an afternoon. The ones who pay have a different problem: they need the same six sources every day, with the same field names, and they do not want to be the person who notices that a column went 100% null at 3am. That is the product. Not the HTTP call — the schema stability, the null expectations, the enum mapping, the units, and somebody re-checking the endpoint when it changes shape without telling anyone.

If you want to see how the six are shaped before building your own: Eastmoney, Xueqiu, Bilibili, Weibo, Douyin, Amap.

Next step: take the one dataset you already pull, compute bytes_per_row and seconds_per_1k, and write both numbers next to your price. If the price is not at least a few multiples of the compute cost, you are selling hosting — and hosting is a race you lose to whoever arrives next month.

Top comments (0)