FastGPT icon

FastGPT

AI智能客服平台

应用 → 获取应用总体数据统计

AI-generated

Summary

Fetches overall statistics for a single FastGPT app by sending a GET request to the commercial-edition endpoint /proApi/core/app/logs/getTotalData with the app ID as a query parameter.

Inputs

  • 应用ID (appId) (required) — The FastGPT App ID to get statistics for. Sent as the appId query parameter.
  • Request Options — Optional node settings: batching (items per batch, default 50, and interval in ms, default 1000), ignore SSL certificate issues, an HTTP proxy URL, and a request timeout in ms (default 10000).

Output shape

The JSON response body from the FastGPT API, returned as the node output for each input item. The source does not define its fields.

The call fails with a NodeApiError if the HTTP status is 4xx or 5xx, or if the response body's code field is anything other than 200. The error message comes from the response message. The endpoint is under /proApi, so it is likely available only on the FastGPT commercial edition. Requests use the base URL from the fastGPTApi credential.

Examples

Example 1: Pull overall usage stats for one app in a reporting workflow.

Resource: 应用; Operation: 获取应用总体数据统计; 应用ID: the app's ID, e.g. a 24-character ID copied from FastGPT.

Example 2: Get stats for many apps from an incoming list.

Set 应用ID to an expression such as {{ $json.appId }}. Use Request Options > Batching to throttle requests.

Links

Discussion