View .md

Analytics endpoints (Admin API)

2 FeatherPanel Admin API endpoints from admin/analytics.php: methods, paths, auth, permissions, rate limits, parameters and responses.

Last synced from FeatherPanel 15b94e9 on .

On this page

Defined in backend/app/routes/admin/analytics.php. Authentication used here: Admin. Read Authentication for how to send credentials and Rate limits and errors for the response envelope.

Paths, methods, permissions and rate limits come from the route file. Summaries, parameters and response codes come from the OpenAPI annotations on the controllers; endpoints without annotations show only what the route file declares.

Endpoints

GET/api/admin/analytics/languages

Auth: AdminPermission: admin.statistics.viewRoute name: admin-analytics-languagesController: LanguageAnalyticsController::indexroute source

Get language usage analytics Get a breakdown of user language preferences with counts and percentages.

Response data fieldTypeDescription
languagesLanguageStat[]
total_usersintegerTotal number of users
curl -X GET "$PANEL_URL/api/admin/analytics/languages" \
  -H "Authorization: Bearer $FEATHERPANEL_API_KEY" \
  -H "Accept: application/json"

Responses: 200 Language statistics retrieved successfully · 401 Unauthorized · 403 Forbidden - Insufficient permissions