# get_usage

**Read API usage** · Read-only, idempotent

Read the account's current allowance cycle: the credits object (credit allowance, credits used, credits held for unfinished exports and reports, credit balance, and credits used per action with each action's readable name and billing group), plus current project, keyword and ASIN consumption against plan limits.

- Held credits reduce the balance but are not counted as used.
- The request, error, endpoint and exported-record fields are deprecated and blank (null or 0) for this account; they are removed one month after credits go live.
- Use it before large work or after `insufficient_credits`.

**Cost and limits:** Costs no credits.

## Input

_No fields._

## Output

Read this object from the result's `structuredContent`. The result's `content` carries a text version for the model, which is not always the same JSON.

Fields of `data`:

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `period_start` | `string (date)` | Required | First day of the usage period, as a UTC date. |
| `period_end` | `string (date)` | Required | Last day of the usage period, as a UTC date. The credit allowance resets after it. |
| `credits` | `object` | Optional | Your credits for this allowance cycle, shared by the app, the User API and MCP. Present when your account is charged in credits. The balance resets to the full allowance when the cycle ends, on the UTC date in `period_end`; `402 insufficient_credits` gives the exact time in `resets_at`. |
| `request_limit` | `integer \| null` | Required | Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits. |
| `requests_remaining` | `integer \| null` | Required | Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits. |
| `request_count` | `integer` | Required | Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits. |
| `error_count` | `integer` | Required | Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits. |
| `export_record_allowance` | `integer \| null` | Required | Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits. Minimum 0. |
| `export_records_used` | `integer` | Required | Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits. Minimum 0. |
| `endpoint_counts` | `UsageEndpointCounts` | Required | Deprecated: blank (every count 0) when the account is charged in credits; removed one month after credits go live. Use credits. |
| `resource_usage` | `ResourceUsage` | Required | Current plan consumption, calculated when the request is handled. |
| `updated_at` | `string \| null (date-time)` | Required | When this period's usage record was last updated. This timestamp does not apply to `resource_usage`, which is calculated when the request is handled. |

### `data.credits`

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `allowance` | `integer` | Required | Credits granted for this cycle: your plan's credit allowance, raised by any mid-cycle upgrade or adjustment. Minimum 0. |
| `used` | `integer` | Required | Credits consumed this cycle by successful actions in the app, the User API and MCP. Held credits are not included. Minimum 0. |
| `held` | `integer` | Required | Credits reserved for exports and reports still running. They are consumed or released when the work finishes. Minimum 0. |
| `balance` | `integer` | Required | Credits left to spend: allowance less used and held, never below 0. Minimum 0. |
| `used_by_action` | `object[]` | Required | Credits used this cycle per action, ordered by group then by credits (most first). Actions with no credits used are omitted. |

### `data.endpoint_counts`

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `project_create` | `integer` | Required | Minimum 0. |
| `project_delete` | `integer` | Required | Minimum 0. |
| `project_label_update` | `integer` | Required | Minimum 0. |
| `item_label_update` | `integer` | Required | Minimum 0. |
| `keywords` | `integer` | Required |  |
| `projects` | `integer` | Required |  |
| `project_detail` | `integer` | Required |  |
| `project_asins` | `integer` | Required |  |
| `project_asins_update` | `integer` | Required | Minimum 0. |
| `project_asins_add` | `integer` | Required | Successful `POST /v0/projects/{projectId}/asins` requests. Missing counters in older usage rows map to zero. |
| `project_asins_remove` | `integer` | Required | Successful `DELETE /v0/projects/{projectId}/asins` requests. Missing counters in older usage rows map to zero. |
| `project_keywords` | `integer` | Required |  |
| `project_keywords_update` | `integer` | Required | Minimum 0. |
| `project_keywords_add` | `integer` | Required | Successful `POST /v0/projects/{projectId}/keywords` requests. |
| `project_keywords_remove` | `integer` | Required | Successful `DELETE /v0/projects/{projectId}/keywords` requests. |
| `project_ranks_by_asin` | `integer` | Required |  |
| `project_labels` | `integer` | Required | Minimum 0. |
| `project_label_delete` | `integer` | Required | Minimum 0. |
| `item_label_delete` | `integer` | Required | Minimum 0. |
| `project_label_create` | `integer` | Required | Minimum 0. |
| `item_labels` | `integer` | Required | Minimum 0. |
| `item_label_create` | `integer` | Required | Minimum 0. |
| `project_update` | `integer` | Required | Minimum 0. |
| `export_create` | `integer` | Required | Minimum 0. |
| `exports` | `integer` | Required | Minimum 0. |
| `export_detail` | `integer` | Required | Minimum 0. |
| `export_download` | `integer` | Required | Minimum 0. |
| `project_notes` | `integer` | Required | Minimum 0. |
| `project_note_detail` | `integer` | Required | Minimum 0. |
| `project_note_create` | `integer` | Required | Minimum 0. |
| `project_note_delete` | `integer` | Required | Successful project note deletion requests, including absent-note retries. |
| `project_note_update` | `integer` | Required | Minimum 0. |
| `live_search` | `integer` | Required | Minimum 0. |
| `asin_family` | `integer` | Required | Successful MCP `get_asin_family` calls. The tool has no User API endpoint but is charged from the same credit balance. Minimum 0. |

### `data.resource_usage`

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `projects` | `ResourceUsageDimension` | Required | Project groups compared with the plan's project limit. |
| `keywords` | `ResourceUsageDimension` | Required | Distinct normalized keyword and marketplace pairs compared with the plan's keyword limit. Not the sum of attachments. |
| `asins` | `ResourceUsageDimension` | Required | Distinct ASIN and marketplace pairs compared with the plan's ASIN limit. Not the sum of attachments. |

<details>
<summary>Full input and output JSON Schema</summary>

```json
{
  "inputSchema": {
    "type": "object",
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {},
    "additionalProperties": false
  },
  "outputSchema": {
    "type": "object",
    "required": [
      "data"
    ],
    "properties": {
      "data": {
        "type": "object",
        "required": [
          "period_start",
          "period_end",
          "request_limit",
          "requests_remaining",
          "request_count",
          "error_count",
          "endpoint_counts",
          "resource_usage",
          "updated_at",
          "export_record_allowance",
          "export_records_used"
        ],
        "properties": {
          "period_start": {
            "type": "string",
            "format": "date",
            "description": "First day of the usage period, as a UTC date."
          },
          "period_end": {
            "type": "string",
            "format": "date",
            "description": "Last day of the usage period, as a UTC date. The credit allowance resets after it."
          },
          "credits": {
            "type": "object",
            "description": "Your credits for this allowance cycle, shared by the app, the User API and MCP. Present when your account is charged in credits. The balance resets to the full allowance when the cycle ends, on the UTC date in `period_end`; `402 insufficient_credits` gives the exact time in `resets_at`.",
            "required": [
              "allowance",
              "used",
              "held",
              "balance",
              "used_by_action"
            ],
            "properties": {
              "allowance": {
                "type": "integer",
                "minimum": 0,
                "description": "Credits granted for this cycle: your plan's credit allowance, raised by any mid-cycle upgrade or adjustment."
              },
              "used": {
                "type": "integer",
                "minimum": 0,
                "description": "Credits consumed this cycle by successful actions in the app, the User API and MCP. Held credits are not included."
              },
              "held": {
                "type": "integer",
                "minimum": 0,
                "description": "Credits reserved for exports and reports still running. They are consumed or released when the work finishes."
              },
              "balance": {
                "type": "integer",
                "minimum": 0,
                "description": "Credits left to spend: allowance less used and held, never below 0."
              },
              "used_by_action": {
                "type": "array",
                "description": "Credits used this cycle per action, ordered by group then by credits (most first). Actions with no credits used are omitted.",
                "items": {
                  "type": "object",
                  "required": [
                    "action",
                    "name",
                    "group",
                    "credits"
                  ],
                  "properties": {
                    "action": {
                      "type": "string",
                      "description": "The action, for example `live_search`, `keywords`, `keywords_for_keyword` (Keyword Spy searches and reports, in the app or the API) or `keywords_for_asin` (ASIN Insights searches and reports). `research_combined` holds Keyword Spy and ASIN Insights credits recorded before they were reported separately."
                    },
                    "name": {
                      "type": "string",
                      "description": "A readable name for the action, for example `ASIN Insights (keywords for an ASIN)`."
                    },
                    "group": {
                      "type": "string",
                      "enum": [
                        "reports",
                        "exports",
                        "live_searches",
                        "keyword_data",
                        "standard_requests"
                      ],
                      "description": "The billing page group the action's credits are shown under."
                    },
                    "credits": {
                      "type": "integer",
                      "minimum": 1,
                      "description": "Credits the action used this cycle."
                    }
                  }
                }
              }
            }
          },
          "request_limit": {
            "type": [
              "integer",
              "null"
            ],
            "deprecated": true,
            "description": "Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits."
          },
          "requests_remaining": {
            "type": [
              "integer",
              "null"
            ],
            "deprecated": true,
            "description": "Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits."
          },
          "request_count": {
            "type": "integer",
            "deprecated": true,
            "description": "Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits."
          },
          "error_count": {
            "type": "integer",
            "deprecated": true,
            "description": "Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits."
          },
          "export_record_allowance": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 0,
            "deprecated": true,
            "description": "Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits."
          },
          "export_records_used": {
            "type": "integer",
            "minimum": 0,
            "deprecated": true,
            "description": "Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits."
          },
          "endpoint_counts": {
            "$ref": "#/$defs/UsageEndpointCounts",
            "deprecated": true,
            "description": "Deprecated: blank (every count 0) when the account is charged in credits; removed one month after credits go live. Use credits."
          },
          "resource_usage": {
            "$ref": "#/$defs/ResourceUsage"
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "When this period's usage record was last updated. This timestamp does not apply to resource_usage, which is calculated when the request is handled."
          }
        }
      }
    },
    "$defs": {
      "UsageEndpointCounts": {
        "type": "object",
        "properties": {
          "project_create": {
            "type": "integer",
            "minimum": 0
          },
          "project_delete": {
            "type": "integer",
            "minimum": 0
          },
          "project_label_update": {
            "type": "integer",
            "minimum": 0
          },
          "item_label_update": {
            "type": "integer",
            "minimum": 0
          },
          "keywords": {
            "type": "integer"
          },
          "projects": {
            "type": "integer"
          },
          "project_detail": {
            "type": "integer"
          },
          "project_asins": {
            "type": "integer"
          },
          "project_asins_update": {
            "type": "integer",
            "minimum": 0
          },
          "project_asins_add": {
            "type": "integer",
            "description": "Successful `POST /v0/projects/{projectId}/asins` requests. Missing counters in older usage rows map to zero."
          },
          "project_asins_remove": {
            "type": "integer",
            "description": "Successful `DELETE /v0/projects/{projectId}/asins` requests. Missing counters in older usage rows map to zero."
          },
          "project_keywords": {
            "type": "integer"
          },
          "project_keywords_update": {
            "type": "integer",
            "minimum": 0
          },
          "project_keywords_add": {
            "type": "integer",
            "description": "Successful `POST /v0/projects/{projectId}/keywords` requests."
          },
          "project_keywords_remove": {
            "type": "integer",
            "description": "Successful `DELETE /v0/projects/{projectId}/keywords` requests."
          },
          "project_ranks_by_asin": {
            "type": "integer"
          },
          "project_labels": {
            "type": "integer",
            "minimum": 0
          },
          "project_label_delete": {
            "type": "integer",
            "minimum": 0
          },
          "item_label_delete": {
            "type": "integer",
            "minimum": 0
          },
          "project_label_create": {
            "type": "integer",
            "minimum": 0
          },
          "item_labels": {
            "type": "integer",
            "minimum": 0
          },
          "item_label_create": {
            "type": "integer",
            "minimum": 0
          },
          "project_update": {
            "type": "integer",
            "minimum": 0
          },
          "export_create": {
            "type": "integer",
            "minimum": 0
          },
          "exports": {
            "type": "integer",
            "minimum": 0
          },
          "export_detail": {
            "type": "integer",
            "minimum": 0
          },
          "export_download": {
            "type": "integer",
            "minimum": 0
          },
          "project_notes": {
            "type": "integer",
            "minimum": 0
          },
          "project_note_detail": {
            "type": "integer",
            "minimum": 0
          },
          "project_note_create": {
            "type": "integer",
            "minimum": 0
          },
          "project_note_delete": {
            "type": "integer",
            "description": "Successful project note deletion requests, including absent-note retries."
          },
          "project_note_update": {
            "type": "integer",
            "minimum": 0
          },
          "live_search": {
            "type": "integer",
            "minimum": 0
          },
          "asin_family": {
            "type": "integer",
            "minimum": 0,
            "description": "Successful MCP `get_asin_family` calls. The tool has no User API endpoint but is charged from the same credit balance."
          }
        },
        "required": [
          "keywords",
          "projects",
          "project_detail",
          "project_asins",
          "project_asins_add",
          "project_asins_update",
          "project_asins_remove",
          "project_keywords",
          "project_keywords_add",
          "project_keywords_update",
          "project_keywords_remove",
          "project_ranks_by_asin",
          "project_create",
          "project_delete",
          "project_label_update",
          "item_label_update",
          "project_labels",
          "project_label_create",
          "project_label_delete",
          "item_label_delete",
          "item_labels",
          "item_label_create",
          "project_update",
          "project_notes",
          "project_note_detail",
          "project_note_create",
          "project_note_delete",
          "project_note_update",
          "live_search",
          "asin_family",
          "export_create",
          "exports",
          "export_detail",
          "export_download"
        ]
      },
      "ResourceUsage": {
        "type": "object",
        "required": [
          "projects",
          "keywords",
          "asins"
        ],
        "properties": {
          "projects": {
            "$ref": "#/$defs/ResourceUsageDimension",
            "description": "Project groups compared with the plan's project limit."
          },
          "keywords": {
            "$ref": "#/$defs/ResourceUsageDimension",
            "description": "Distinct normalized keyword and marketplace pairs compared with the plan's keyword limit. Not the sum of attachments."
          },
          "asins": {
            "$ref": "#/$defs/ResourceUsageDimension",
            "description": "Distinct ASIN and marketplace pairs compared with the plan's ASIN limit. Not the sum of attachments."
          }
        },
        "description": "Current plan consumption, calculated when the request is handled."
      },
      "ResourceUsageDimension": {
        "type": "object",
        "required": [
          "current",
          "limit"
        ],
        "properties": {
          "current": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 0
          }
        }
      }
    }
  }
}
```

</details>
