Daily
Get warned before your scraping credits run out
A daily check emails you once your remaining ScrapingBee credits fall under 10%.
- Runs
- Daily
- Apps
- ScrapingBee
- AI
- Not needed
- Access
- API key
Send this to your assistant
Create a ClickRuntime automation: every morning, check how many ScrapingBee credits I have left and email me if it's under 10% of my plan.
First time? Adding ClickRuntime to your assistant takes about two minutes.
Why use it
Why teams use this automation
ScrapingBee charges in API credits, and a JavaScript-rendered request costs several times what a plain request costs. A scraper that works perfectly in testing can burn through a month of credits in a weekend once a retry loop or a larger URL list kicks in. When credits hit zero, requests start failing, the price tracker or lead enrichment job built on top of it stops, and the first sign of it is a data gap that someone notices on Monday morning.
Once a day the automation asks ScrapingBee for your current usage, compares the credits used against the credits available, and emails you if the balance has fallen below the threshold you set. It stays quiet when things are fine. Developers and growth teams who rely on scraping for monitoring or enrichment use it as an early warning before jobs begin to fail.
What you get out of it
Scrapers keep running through the month
A warning with days of runway lets you top up or slow down jobs, so the price monitor does not go blind on the last Thursday of the month. A plan with 250,000 credits can be spent by the 20th if a crawl is left on.
Runaway jobs are caught
A sudden jump in daily consumption shows in the numbers. If a retry loop is hammering a blocked site, you will see it in the warning before it consumes the entire plan.
Budget decisions made with data
Seeing credits trend downward helps you decide whether to upgrade the plan or reduce how often you scrape. That prevents both surprise overages and paying for capacity you do not use.
Missing data gaps are avoided
When requests fail because credits are exhausted, downstream reports show empty rows that look like real zero values. A warning in advance stops those silent gaps from entering your analysis.
No one has to check the dashboard
Usage pages are only looked at when something has already gone wrong. A daily check that speaks up only when needed replaces a habit nobody keeps. Nobody opens the usage page when everything is working, which is exactly when credits drain.
How it works
What happens, step by step
Once a day, ClickRuntime checks how many credits your ScrapingBee account has used and how many it has in total.
It works out what share is left.
When less than 10% remains, you get an email with the credits left and the percentage, so you can top up before your scrapers stop.
Before it runs live
- Connect ScrapingBee
What you get
Build your own
Need it to work differently?
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
Changes you can ask for
- Run it at a different time, more or less often, or only on weekdays
- Add an AI step, for example to summarize, sort or draft a reply
- Add another app, for example also send it to Slack
- Combine it with other ScrapingBee steps into one automation
Under the hood
The code that runs this automation
from datetime import date
from clickruntime import on_trigger, credentials, http, state, notify
@on_trigger
def run(event):
usage = http.get("https://app.scrapingbee.com/api/v1/usage",
params={"api_key": credentials.secret("SCRAPINGBEE_KEY")}).json()
left = usage["max_api_credit"] - usage["used_api_credit"]
share = left / usage["max_api_credit"]
if share < 0.10 and state.get("warned_on") != usage.get("renewal_subscription_date"):
notify.email_me("ScrapingBee credits under 10%",
f"{left:,} of {usage['max_api_credit']:,} credits left ({share:.0%}).")
state.set("warned_on", usage.get("renewal_subscription_date") or str(date.today()))
return {"left": left, "share": round(share, 3)}FAQ
Common questions
What threshold should I use for the warning?
Does ScrapingBee have an endpoint for checking usage?
Will I be emailed every day when I am below the threshold?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Get an email when a product price drops
When a watched product falls below your target price, you hear about it within hours.
See how it worksKnow the moment your website goes down
Your team hears in Slack when the site stops responding or slows down, and again when it's back.
See how it worksPost a morning briefing to Slack
Your team starts the day with the weather, a reminder or anything else you'd like in #general.
See how it worksKeep exploring
Set up “Get warned before your scraping credits run out” from your assistant
Copy the prompt above, or connect your assistant first. Free plan, no credit card.
