{"id":549,"date":"2026-06-11T00:00:00","date_gmt":"2026-06-11T00:00:00","guid":{"rendered":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/06\/11\/workers-track-dynamic-workers-usage-from-the-dashboard-and-graphql-api\/"},"modified":"2026-06-11T00:00:00","modified_gmt":"2026-06-11T00:00:00","slug":"workers-track-dynamic-workers-usage-from-the-dashboard-and-graphql-api","status":"publish","type":"post","link":"https:\/\/wordpress.securinsight.ca\/index.php\/2026\/06\/11\/workers-track-dynamic-workers-usage-from-the-dashboard-and-graphql-api\/","title":{"rendered":"Workers &#8211; Track Dynamic Workers usage from the dashboard and GraphQL API"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/developers.cloudflare.com\/_astro\/dynamic-workers-count.BcGsgQ0m_ZBdT2X.webp\" alt=\"Dynamic Workers usage on the Workers overview page\" \/><\/p>\n<p>Customers can now view the number of <a href=\"https:\/\/developers.cloudflare.com\/dynamic-workers\/\">Dynamic Workers<\/a> invoked during their billing period from the Workers overview page in the Cloudflare dashboard.<\/p>\n<p>This count reflects the number of Dynamic Workers that Cloudflare would bill for during the selected billing period. Dynamic Workers usage data only goes back to June 1, 2026.<\/p>\n<p>You can also query this count through the <a href=\"https:\/\/developers.cloudflare.com\/analytics\/graphql-api\/\">GraphQL Analytics API<\/a> by using <code>workersInvocationsByOwnerAndScriptGroups<\/code> and selecting <code>distinctDynamicWorkerCount<\/code>:<\/p>\n<div>\n<figure>\n<pre data-language=\"graphql\"><code class=\"language-graphql\"><div><div><span>query<\/span><span> <\/span><span>getDynamicWorkersCount<\/span><span>(<\/span><\/div><\/div><div><div><span>  <\/span><span>$accountTag<\/span><span>:<\/span><span> <\/span><span>string<\/span><span>!<\/span><\/div><\/div><div><div><span>  <\/span><span>$filter<\/span><span>:<\/span><span> <\/span><span>AccountWorkersInvocationsByOwnerAndScriptGroupsFilter_InputObject<\/span><\/div><\/div><div><div><span>) <\/span><span>{<\/span><\/div><\/div><div><div><span><span>  <\/span><\/span><span>viewer<\/span><span> <\/span><span>{<\/span><\/div><\/div><div><div><span><span>    <\/span><\/span><span>accounts<\/span><span>(<\/span><span>filter<\/span><span>:<\/span><span> { <\/span><span>accountTag<\/span><span>:<\/span><span> <\/span><span>$accountTag<\/span><span> }) <\/span><span>{<\/span><\/div><\/div><div><div><span><span>      <\/span><\/span><span>workersInvocationsByOwnerAndScriptGroups<\/span><span>(<\/span><span>limit<\/span><span>:<\/span><span> <\/span><span>10000<\/span><span>,<\/span><span> <\/span><span>filter<\/span><span>:<\/span><span> <\/span><span>$filter<\/span><span>) <\/span><span>{<\/span><\/div><\/div><div><div><span><span>        <\/span><\/span><span>uniq<\/span><span> <\/span><span>{<\/span><\/div><\/div><div><div><span><span>          <\/span><\/span><span>distinctDynamicWorkerCount<\/span><\/div><\/div><div><div><span>        <\/span><span>}<\/span><\/div><\/div><div><div><span>      <\/span><span>}<\/span><\/div><\/div><div><div><span>    <\/span><span>}<\/span><\/div><\/div><div><div><span>  <\/span><span>}<\/span><\/div><\/div><div><div><span>}<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<div><\/div>\n<\/figure>\n<\/div>\n<p>Use variables to set the account and billing-period date range:<\/p>\n<div>\n<figure>\n<pre data-language=\"json\"><code class=\"language-json\"><div><div><span>{<\/span><\/div><\/div><div><div><span>  <\/span><span>\"<\/span><span>accountTag<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>\"&lt;ACCOUNT_ID&gt;\"<\/span><span>,<\/span><\/div><\/div><div><div><span>  <\/span><span>\"<\/span><span>filter<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>{<\/span><\/div><\/div><div><div><span>    <\/span><span>\"<\/span><span>date_geq<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>\"2026-06-01\"<\/span><span>,<\/span><\/div><\/div><div><div><span>    <\/span><span>\"<\/span><span>date_leq<\/span><span>\"<\/span><span>:<\/span><span> <\/span><span>\"2026-06-30\"<\/span><\/div><\/div><div><div><span>  <\/span><span>}<\/span><\/div><\/div><div><div><span>}<\/span><\/div><\/div><\/code><\/pre>\n<div>\n<div><\/div>\n<\/div>\n<\/figure>\n<\/div>\n<p>For more information, refer to <a href=\"https:\/\/developers.cloudflare.com\/dynamic-workers\/pricing\/\">Dynamic Workers pricing<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Customers can now view the number of Dynamic Workers invoked during their billing period from the Workers overview page in the Cloudflare dashboard. This count reflects the number of Dynamic Workers that Cloudflare would bill for during the selected billing period. Dynamic Workers usage data only goes back to June 1, 2026. You can also [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-549","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/549","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/comments?post=549"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/posts\/549\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/media?parent=549"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/categories?post=549"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.securinsight.ca\/index.php\/wp-json\/wp\/v2\/tags?post=549"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}