Firecrawl credit usage
firecrawl_credit_usageCheck the authenticated Firecrawl team's remaining credits or review historical monthly credit usage, optionally broken down by API key, to support billing checks and usage trend analysis.
Instructions
Get the authenticated Firecrawl team's current credit balance or historical credit consumption. Use the current view to answer how many credits remain or to check billing-period boundaries. Use the historical view for monthly usage reporting and trend analysis.
The current view returns remainingCredits, planCredits, billingPeriodStart, and billingPeriodEnd. Extra purchased or granted credits can make remainingCredits greater than planCredits. Billing-period dates may be null when the upstream billing provider has no period metadata.
The historical view returns periods sorted by start date with startDate, endDate, and creditsUsed. Set byApiKey to include separate periods per API key, identified by the optional apiKey field. The newest period's endDate can be null.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "firecrawl_credit_usage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| view | No | Select current balance or historical monthly usage. Defaults to current. | |
| byApiKey | No | Break historical usage down by API key. When view is omitted, true selects the historical view; it cannot be combined with view "current". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Error message or error object when the call did not succeed. | |
| periods | No | Historical periods sorted by start date, each with `startDate`, `endDate`, `creditsUsed`, and `apiKey` when broken down by key. | |
| success | No | Whether the API call succeeded. | |
| planCredits | No | Credits included in the plan for the period. | |
| billingPeriodEnd | No | End of the current billing period; null when the billing provider reports no period. | |
| remainingCredits | No | Credits left in the current billing period; can exceed `planCredits` when extra credits were purchased or granted. | |
| billingPeriodStart | No | Start of the current billing period; null when the billing provider reports no period. |