---
updatedAt: 2026-06-18T19:49:53.000Z
agentTools:
  siteIndex: https://techdocs.akamai.com/llms.txt
  projectIndex: https://techdocs.akamai.com/linode-api/llms.txt
---

# Get a month's Linode statistics

Returns CPU, IO, IPv4, and IPv6 statistics for your Linode for a specific month. If the `{year}` and `{month}` are set to the current month, the API returns statistics for the past 30 days.


**Permissions and scopes**

To call this operation, you need the following:

- **Identity and access permissions**. Your user needs a role with these permissions assigned. [Learn more](https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles).
  - Permissions: `view_linode_monthly_stats`
- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).

  - Scopes: `linodes:read_only`

# OpenAPI definition

```json
{
  "components": {
    "securitySchemes": {
      "oauth": {
        "flows": {
          "authorizationCode": {
            "authorizationUrl": "https://login.linode.com/oauth/authorize",
            "scopes": {
              "account:read_only": "Allows access to GET information about your account.",
              "account:read_write": "Allows access to all endpoints related to your account.",
              "child_account:read_only": "Allows access to GET information about deprecated parent/child operations.",
              "child_account:read_write": "Allows access to deprecated parent/child operations.",
              "databases:read_only": "Allows access to GET information about databases.",
              "databases:read_write": "Allows access to all endpoints related to databases.",
              "domains:read_only": "Allows access to GET Domains on your account.",
              "domains:read_write": "Allows access to all Domain endpoints.",
              "events:read_only": "Allows access to GET your Events.",
              "events:read_write": "Allows access to all endpoints related to your Events.",
              "firewall:read_only": "Allows access to GET information about your Firewalls.",
              "firewall:read_write": "Allows access to all Firewall endpoints.",
              "images:read_only": "Allows access to GET your Images.",
              "images:read_write": "Allows access to all endpoints related to your Images.",
              "ips:read_only": "Allows access to GET your ips.",
              "ips:read_write": "Allows access to all endpoints related to your ips.",
              "linodes:read_only": "Allows access to GET Linodes on your account.",
              "linodes:read_write": "Allow access to all endpoints related to your Linodes.",
              "lke:read_only": "Allows access to GET LKE Clusters on your account.",
              "lke:read_write": "Allows access to all endpoints related to LKE Clusters on your account.",
              "longview:read_only": "Allows access to GET your Longview Clients.",
              "longview:read_write": "Allows access to all endpoints related to your Longview Clients.",
              "monitor:read_only": "Allows access to Monitor (Akamai Cloud Pulse) data.",
              "monitor:read_write": "Allows access to GET Monitor (Akamai Cloud Pulse) data.",
              "nodebalancers:read_only": "Allows access to GET NodeBalancers on your account.",
              "nodebalancers:read_write": "Allows access to all NodeBalancer endpoints.",
              "object_storage:read_only": "Allows access to GET information related to your Object Storage.",
              "object_storage:read_write": "Allows access to all Object Storage endpoints.",
              "stackscripts:read_only": "Allows access to GET your StackScripts.",
              "stackscripts:read_write": "Allows access to all endpoints related to your StackScripts.",
              "volumes:read_only": "Allows access to GET your Volumes.",
              "volumes:read_write": "Allows access to all endpoints related to your Volumes.",
              "vpc:read_write": "Allows access to all endpoints related to VPC and Subnet creation, updating, and deletion."
            },
            "tokenUrl": "https://login.linode.com/oauth/token"
          }
        },
        "type": "oauth2"
      },
      "personalAccessToken": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "externalDocs": {
    "description": "See documentation for Akamai's Linode API",
    "url": "https://techdocs.akamai.com/linode-api/reference"
  },
  "info": {
    "description": "\"[Read the API documentation](https://techdocs.akamai.com/linode-api/reference/api).\"",
    "license": {
      "name": "Apache 2.0",
      "url": "https://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Linode instances",
    "version": "4.229.1"
  },
  "openapi": "3.0.1",
  "paths": {
    "/{apiVersion}/linode/instances/{linodeId}/stats/{year}/{month}": {
      "get": {
        "description": "Returns CPU, IO, IPv4, and IPv6 statistics for your Linode for a specific month. If the `{year}` and `{month}` are set to the current month, the API returns statistics for the past 30 days.\n\n\n**Permissions and scopes**\n\nTo call this operation, you need the following:\n\n- **Identity and access permissions**. Your user needs a role with these permissions assigned. [Learn more](https://techdocs.akamai.com/cloud-computing/docs/identity-access-cm-available-roles).\n  - Permissions: `view_linode_monthly_stats`\n- **OAuth scopes**. Your user needs these scopes assigned. [Learn more](https://techdocs.akamai.com/linode-api/reference/get-started#oauth).\n\n  - Scopes: `linodes:read_only`",
        "externalDocs": {
          "description": "See documentation for this operation in Akamai's Linode API",
          "url": "https://techdocs.akamai.com/linode-api/reference/get-linode-stats-by-year-month"
        },
        "operationId": "get-linode-stats-by-year-month",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "cpu": [
                    [
                      [
                        1521483600000,
                        0.42
                      ]
                    ]
                  ],
                  "io": {
                    "io": [
                      [
                        [
                          1521484800000,
                          0.19
                        ]
                      ]
                    ],
                    "swap": [
                      [
                        [
                          1521484800000,
                          0
                        ]
                      ]
                    ]
                  },
                  "netv4": {
                    "in": [
                      [
                        [
                          1521484800000,
                          2004.36
                        ]
                      ]
                    ],
                    "out": [
                      [
                        [
                          1521484800000,
                          3928.91
                        ]
                      ]
                    ],
                    "private_in": [
                      [
                        [
                          1521484800000,
                          0
                        ]
                      ]
                    ],
                    "private_out": [
                      [
                        [
                          1521484800000,
                          5.6
                        ]
                      ]
                    ]
                  },
                  "netv6": {
                    "in": [
                      [
                        [
                          1521484800000,
                          0
                        ]
                      ]
                    ],
                    "out": [
                      [
                        [
                          1521484800000,
                          0
                        ]
                      ]
                    ],
                    "private_in": [
                      [
                        [
                          1521484800000,
                          195.18
                        ]
                      ]
                    ],
                    "private_out": [
                      [
                        [
                          1521484800000,
                          5.6
                        ]
                      ]
                    ]
                  },
                  "title": "linode.com - my-linode (linode123456) - day (5 min avg)"
                },
                "schema": {
                  "additionalProperties": false,
                  "description": "CPU, IO, IPv4, and IPv6 statistics. Graph data, if available, is in `[timestamp, reading]` array format. Timestamp is a UNIX timestamp in EST.",
                  "properties": {
                    "data": {
                      "additionalProperties": false,
                      "description": "CPU, IO, IPv4, and IPv6 statistics for this data set.",
                      "properties": {
                        "cpu": {
                          "description": "Percentage of CPU used.",
                          "example": [
                            0.42,
                            1521483600000
                          ],
                          "items": {
                            "items": {
                              "type": "number"
                            },
                            "type": "array"
                          },
                          "type": "array"
                        },
                        "io": {
                          "additionalProperties": false,
                          "description": "Input/Output statistics.",
                          "properties": {
                            "io": {
                              "description": "Block/s written.",
                              "example": [
                                1521484800000,
                                0.19
                              ],
                              "items": {
                                "items": {
                                  "type": "number"
                                },
                                "type": "array"
                              },
                              "type": "array"
                            },
                            "swap": {
                              "description": "Block/s written.",
                              "example": [
                                1521484800000,
                                0
                              ],
                              "items": {
                                "items": {
                                  "type": "number"
                                },
                                "type": "array"
                              },
                              "type": "array"
                            }
                          },
                          "type": "object"
                        },
                        "netv4": {
                          "additionalProperties": false,
                          "description": "IPv4 statistics.",
                          "properties": {
                            "in": {
                              "description": "Input stats for IPv4, measured in bits/s (bits/second).",
                              "example": [
                                1521484800000,
                                2004.36
                              ],
                              "items": {
                                "items": {
                                  "type": "number"
                                },
                                "type": "array"
                              },
                              "type": "array"
                            },
                            "out": {
                              "description": "Output stats for IPv4, measured in bits/s (bits/second).",
                              "example": [
                                1521484800000,
                                3928.91
                              ],
                              "items": {
                                "items": {
                                  "type": "number"
                                },
                                "type": "array"
                              },
                              "type": "array"
                            },
                            "private_in": {
                              "description": "Private IPv4 input statistics, measured in bits/s (bits/second).",
                              "example": [
                                1521484800000,
                                0
                              ],
                              "items": {
                                "items": {
                                  "type": "number"
                                },
                                "type": "array"
                              },
                              "type": "array"
                            },
                            "private_out": {
                              "description": "Private IPv4 output statistics, measured in bits/s (bits/second).",
                              "example": [
                                1521484800000,
                                5.6
                              ],
                              "items": {
                                "items": {
                                  "type": "number"
                                },
                                "type": "array"
                              },
                              "type": "array"
                            }
                          },
                          "type": "object"
                        },
                        "netv6": {
                          "additionalProperties": false,
                          "description": "IPv6 statistics.",
                          "properties": {
                            "in": {
                              "description": "Input stats for IPv6, measured in bits/s (bits/second).",
                              "example": [
                                1521484800000,
                                0
                              ],
                              "items": {
                                "items": {
                                  "type": "number"
                                },
                                "type": "array"
                              },
                              "type": "array"
                            },
                            "out": {
                              "description": "Output stats for IPv6, measured in bits/s (bits/second).",
                              "example": [
                                1521484800000,
                                0
                              ],
                              "items": {
                                "items": {
                                  "type": "number"
                                },
                                "type": "array"
                              },
                              "type": "array"
                            },
                            "private_in": {
                              "description": "Private IPv6 input statistics, measured in bits/s (bits/second).",
                              "example": [
                                1521484800000,
                                195.18
                              ],
                              "items": {
                                "items": {
                                  "type": "number"
                                },
                                "type": "array"
                              },
                              "type": "array"
                            },
                            "private_out": {
                              "description": "Private IPv6 output statistics, measured in bits/s (bits/second).",
                              "example": [
                                1521484800000,
                                5.6
                              ],
                              "items": {
                                "items": {
                                  "type": "number"
                                },
                                "type": "array"
                              },
                              "type": "array"
                            }
                          },
                          "type": "object"
                        }
                      },
                      "type": "object"
                    },
                    "title": {
                      "description": "The title for this data set.",
                      "example": "linode.com - my-linode (linode123456) - day (5 min avg)",
                      "type": "string"
                    }
                  },
                  "type": "object",
                  "x-akamai": {
                    "file-path": "schemas/linode-stats.yaml"
                  }
                }
              }
            },
            "description": "The Linode's statistics for the requested period."
          },
          "default": {
            "content": {
              "application/json": {
                "example": {
                  "errors": [
                    {
                      "reason": "Invalid JSON"
                    }
                  ]
                },
                "schema": {
                  "additionalProperties": false,
                  "properties": {
                    "errors": {
                      "description": "Any warnings associated with a response.",
                      "items": {
                        "additionalProperties": false,
                        "description": "An object for describing a single error that occurred during the processing of a request.",
                        "properties": {
                          "field": {
                            "description": "The field in the request that caused this error. This may be a path, separated by periods in the case of nested fields. In some cases this may come back as `null` if the error is not specific to any single element of the request.",
                            "example": "fieldname",
                            "type": "string"
                          },
                          "reason": {
                            "description": "What happened to cause this error. In most cases, this can be fixed immediately by changing the data you sent in the request, but in some cases you will be instructed to [Open a support ticket](https://techdocs.akamai.com/linode-api/reference/post-ticket) or perform some other action before you can complete the request successfully.",
                            "example": "fieldname must be a valid value",
                            "type": "string"
                          }
                        },
                        "type": "object",
                        "x-akamai": {
                          "file-path": "schemas/error-object.yaml"
                        }
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "See [Errors](https://techdocs.akamai.com/linode-api/reference/errors) for the range of possible error response codes."
          }
        },
        "security": [
          {
            "personalAccessToken": []
          },
          {
            "oauth": [
              "linodes:read_only"
            ]
          }
        ],
        "summary": "Get a month's Linode statistics",
        "tags": [
          "Linode statistics"
        ],
        "x-linode-cli-action": "stats-month",
        "x-linode-cli-skip": true,
        "x-linode-iam": [
          {
            "permissions": [
              "view_linode_monthly_stats"
            ]
          }
        ]
      },
      "parameters": [
        {
          "description": "__Enum__ Call either the `v4` URL, or `v4beta` for operations still in Beta.",
          "in": "path",
          "name": "apiVersion",
          "required": true,
          "schema": {
            "enum": [
              "v4",
              "v4beta"
            ],
            "example": "v4",
            "type": "string"
          },
          "x-akamai": {
            "file-path": "parameters/api-version-path.yaml"
          }
        },
        {
          "description": "ID of the Linode to look up.",
          "in": "path",
          "name": "linodeId",
          "required": true,
          "schema": {
            "example": 234,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/linode-id-path.yaml"
          }
        },
        {
          "description": "Numeric value representing the year to look up.",
          "in": "path",
          "name": "year",
          "required": true,
          "schema": {
            "example": 2024,
            "maximum": 2037,
            "minimum": 2000,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/year-path.yaml"
          }
        },
        {
          "description": "Numeric value representing the month to look up.",
          "in": "path",
          "name": "month",
          "required": true,
          "schema": {
            "example": 8,
            "maximum": 12,
            "minimum": 1,
            "type": "integer"
          },
          "x-akamai": {
            "file-path": "parameters/month-path.yaml"
          }
        }
      ],
      "x-akamai": {
        "file-path": "paths/linode-stats-month.yaml",
        "path-info": "/{apiVersion}/linode/instances/{linodeId}/stats/{year}/{month}"
      },
      "x-linode-cli-command": "linodes"
    }
  },
  "servers": [
    {
      "url": "https://api.linode.com"
    }
  ],
  "tags": [
    {
      "description": "Use these operations to review various statistics for your Linodes.",
      "name": "Linode statistics"
    }
  ],
  "x-akamai": {
    "auth-type": "OAUTH",
    "file-path": "linode-1.yaml"
  },
  "x-readme": {
    "explorer-enabled": false,
    "samples-languages": [
      "curl",
      "python",
      "node"
    ]
  }
}
```

# Sibling pages

* [Get daily Linode statistics](https://techdocs.akamai.com/linode-api/reference/get-linode-stats.md)
* [Get this month's network transfer stats](https://techdocs.akamai.com/linode-api/reference/get-linode-transfer.md)
* [Get monthly network transfer stats](https://techdocs.akamai.com/linode-api/reference/get-linode-transfer-by-year-month.md)