Skip to main content
Aggregate the number of requests and actual deducted quota for the current account by date and API, suitable for creating monthly reports, trend charts, and cost analysis. Use the Call Record List when you need to troubleshoot each record, and use Usage Export when you need complete offline details.

Preparation

  1. Log in to the AceDataCloud Platform.
  2. Create an account token in the Account Token Console, and save it immediately.
  3. To narrow the scope, obtain the corresponding IDs from the Service Application List, API Credential List, or API List.
For complete token instructions, see Manage Account Tokens. This API uses an Account Token, not a business Credential.

API Overview

Query Parameters

start_time / end_time can still be used as backward-compatible aliases for older clients. New integrations should consistently use created_at_from / created_at_to. The date form of created_at_to includes that calendar day, using midnight of the following day as the boundary.

Request Examples

Query daily/API aggregation for the current month in Beijing time, including model dimensions:
Query one week of usage for a specified Application:
Python example:

Response Example

Response Fields

The quota unit depends on service.unit of the related Application. If the query includes services with different units, first calculate them separately by service_id or application_id to avoid directly comparing or adding them. When the end time is not greater than the start time, the API returns a complete empty structure: items=[], total=0, apis={}, requests=0, models=[].

Error and Performance Recommendations

  • Do not enable include_models by default; enable it only when the report truly requires model-level breakdowns.
  • For large-range queries, prioritize separating them by service_id or application_id, which both avoids mixed units and reduces query cost.
  • Dates without calls are not automatically filled with zero; the client should complete the date axis before charting.

Next Steps