Actor Costs avatar

Actor Costs

Try for free

No credit card required

View all Actors
Actor Costs

Actor Costs

lukaskrivka/actor-costs
Try for free

No credit card required

Get costs and usage stats for your actor use aggregated daily. The actor also provides summary stats for the whole period.

Get costs and usage stats for your actor use aggregated daily. The actor also provides summary stats for the whole period.

It extends data available on https://console.apify.com/billing/usage with

  1. Daily usage breakdown
  2. Arbitrary time period with summary stats for the whole period
  3. Other useful stats - runCount, buildNumbers, statuses, origins

Important: Run costs are attributed to a specific date based on the start time of the run. The actor does not exactly report the costs per day or month. E.g. if your run runs for 2 days, this actor will report its cost fully to the first day while https://console.apify.com/billing/usage will correctly split the usage into 2 days. The overall usage for a period should be the same.

Example output

1[{
2    "date": "2024-02-24",
3    "runCount": 1,
4    "cost": 0.0086,
5    "firstRunDate": "2024-02-24T20:59:22.127Z",
6    "lastRunDate": "2024-02-24T20:59:22.127Z",
7    "buildNumbers": {
8        "0.14.259": 1
9    },
10    "statuses": {
11        "SUCCEEDED": 1
12    },
13    "origins": {
14        "WEB": 1
15    }
16},
17{
18    "date": "2024-02-16",
19    "runCount": 4,
20    "cost": 0.0838,
21    "firstRunDate": "2024-02-16T10:02:35.200Z",
22    "lastRunDate": "2024-02-16T16:16:02.125Z",
23    "buildNumbers": {
24        "0.14.258": 2,
25        "0.14.257": 2
26    },
27    "statuses": {
28        "SUCCEEDED": 1,
29        "FAILED": 1,
30        "ABORTED": 2
31    },
32    "origins": {
33        "WEB": 4
34    }
35}]
Developer
Maintained by Community

Actor Metrics

  • 2 monthly users

  • 3 stars

  • Created in May 2024

  • Modified 2 months ago