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
- Daily usage breakdown
- Arbitrary time period with summary stats for the whole period
- 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.
[{
"date": "2024-02-24",
"runCount": 1,
"cost": 0.0086,
"firstRunDate": "2024-02-24T20:59:22.127Z",
"lastRunDate": "2024-02-24T20:59:22.127Z",
"buildNumbers": {
"0.14.259": 1
},
"statuses": {
"SUCCEEDED": 1
},
"origins": {
"WEB": 1
}
},
{
"date": "2024-02-16",
"runCount": 4,
"cost": 0.0838,
"firstRunDate": "2024-02-16T10:02:35.200Z",
"lastRunDate": "2024-02-16T16:16:02.125Z",
"buildNumbers": {
"0.14.258": 2,
"0.14.257": 2
},
"statuses": {
"SUCCEEDED": 1,
"FAILED": 1,
"ABORTED": 2
},
"origins": {
"WEB": 4
}
}]
If you select getCostBreakdown
, you will receive a detailed breakdown of the costs associated, it can be both platform resources or charged events.
{
"costDetail": {
"ACTOR_COMPUTE_UNITS": 1.1774,
"DATASET_READS": 0,
"DATASET_WRITES": 0.01,
"KEY_VALUE_STORE_READS": 0,
"KEY_VALUE_STORE_WRITES": 0.1006,
"KEY_VALUE_STORE_LISTS": 0,
"REQUEST_QUEUE_READS": 0.2793,
"REQUEST_QUEUE_WRITES": 0.0997,
"DATA_TRANSFER_INTERNAL_GBYTES": 0.0051,
"DATA_TRANSFER_EXTERNAL_GBYTES": 0.0036,
"PROXY_RESIDENTIAL_TRANSFER_GBYTES": 0,
"PROXY_SERPS": 0
},
"usageDetail": {
"ACTOR_COMPUTE_UNITS": 2.9434,
"DATASET_READS": 0,
"DATASET_WRITES": 2000,
"KEY_VALUE_STORE_READS": 2,
"KEY_VALUE_STORE_WRITES": 2011,
"KEY_VALUE_STORE_LISTS": 0,
"REQUEST_QUEUE_READS": 69833,
"REQUEST_QUEUE_WRITES": 4983,
"DATA_TRANSFER_INTERNAL_GBYTES": 0.1014,
"DATA_TRANSFER_EXTERNAL_GBYTES": 0.0179,
"PROXY_RESIDENTIAL_TRANSFER_GBYTES": 0,
"PROXY_SERPS": 0
}
}
{
"accountedChargedEventCounts": {
"actor-start": 33,
"place-scraped": 553255,
"filter-applied": 247260,
"place-details-scraped": 139469,
"contact-details-scraped": 53091,
"lead-scraped": 256234,
"review-scraped": 0,
"image-scraped": 0
},
"chargedEventsCosts": {
"actor-start": 0.231,
"place-scraped": 2213.02,
"filter-applied": 247.26,
"place-details-scraped": 278.938,
"contact-details-scraped": 106.182,
"lead-scraped": 1281.17,
"review-scraped": 0,
"image-scraped": 0
}
}