Skip to content

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.

Paste it into your assistant. It tells you what it will send or change before it runs live.

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

  1. Once a day, ClickRuntime checks how many credits your ScrapingBee account has used and how many it has in total.

  2. It works out what share is left.

  3. 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

RunsDaily
Get warned before your scraping credits run outtoday, 9:00Succeeded
Email · ScrapingBee credits under 10%8,410 of 150,000 credits left (6%).

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • 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

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
credit_balance_warning.pyexample
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?
A common choice is 20 percent of the monthly plan remaining, which leaves time to react. If your jobs spike late in the month, pick a higher level. You can state the threshold as a number of credits or a percentage.
Does ScrapingBee have an endpoint for checking usage?
Yes. ScrapingBee provides a usage endpoint that returns credits used and the maximum for your plan, authenticated with your API key. ClickRuntime stores the key as a secret and calls the endpoint once a day.
Will I be emailed every day when I am below the threshold?
You can choose. By default it can warn each day while you are below the line, which keeps the problem in front of you. It can also be set to warn once and again only when the balance falls further.
What permissions does it need?
API key. Nothing else in your accounts is used.
Does it need AI?
No. It runs without AI, so it doesn't use your plan's AI allowance.
How many runs does it use?
One run each time it runs (daily). Checks that find nothing to do and stop right away aren't counted.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

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.