Analytics
Get comprehensive analytics across all sources
Returns unified analytics with friction scores, health metrics, and insights from all data sources
Get comprehensive analytics across all sources Returns unified analytics with friction scores, health metrics, and insights from all data sources GET https://api.appgram.dev/api/v1/analytics/comprehensive curl --request GET \ --url 'https://api.appgram.dev/api/v1/analytics/comprehensive' \ --header 'x-api-key: <api-key>' Authentication: x-api-key (header) 200: OK 400: Bad Request 401: Unauthorized 403: Forbidden 500: Internal Server Error
Authorizations
x-api-key (header)requiredRequest examples show the credential location. Use a server-side key with the permissions required by this operation.
Query parameters
end_datestringqueryinclude_insightsstringqueryinclude_scoresstringqueryinclude_timeseriesstringqueryperiodstringqueryproject_idstringquerysourcesstringquerystart_datestringqueryResponses
200OK
400Bad Request
401Unauthorized
403Forbidden
500Internal Server Error
curl --request GET \
--url 'https://api.appgram.dev/api/v1/analytics/comprehensive' \
--header 'x-api-key: <api-key>'const response = await fetch("https://api.appgram.dev/api/v1/analytics/comprehensive", {
method: "GET",
headers: {
"x-api-key": "<api-key>"
},
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.text());
import requests
response = requests.request(
"GET",
"https://api.appgram.dev/api/v1/analytics/comprehensive",
headers={"x-api-key": "<api-key>"},
timeout=30,
)
response.raise_for_status()
print(response.text)
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.appgram.dev/api/v1/analytics/comprehensive"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}import Foundation
var request = URLRequest(url: URL(string: "https://api.appgram.dev/api/v1/analytics/comprehensive")!)
request.httpMethod = "GET"
request.setValue("<api-key>", forHTTPHeaderField: "x-api-key")
let (data, _) = try await URLSession.shared.data(for: request)
print(String(decoding: data, as: UTF8.self))
// Requires OkHttp 4.x.
import okhttp3.OkHttpClient
import okhttp3.Request
import okhttp3.MediaType.Companion.toMediaType
import okhttp3.RequestBody.Companion.toRequestBody
fun main() {
val request = Request.Builder()
.url("https://api.appgram.dev/api/v1/analytics/comprehensive")
.method("GET", null)
.addHeader("x-api-key", "<api-key>")
.build()
OkHttpClient().newCall(request).execute().use { response ->
println(response.body?.string())
}
}
// Requires package:http in pubspec.yaml.
import 'package:http/http.dart' as http;
Future<void> main() async {
final request = http.Request("GET", Uri.parse("https://api.appgram.dev/api/v1/analytics/comprehensive"));
request.headers.addAll({
"x-api-key": "<api-key>",
});
final response = await request.send();
print(await response.stream.bytesToString());
}
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Get,
RequestUri = new Uri("https://api.appgram.dev/api/v1/analytics/comprehensive"),
Headers =
{
{ "x-api-key", "<api-key>" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}{
"data": {
"correlations": [
{
"correlation": 0,
"description": "string",
"metric_1": "string",
"metric_2": "string",
"source_1": "string",
"source_2": "string"
}
],
"date_range": {
"end_date": "string",
"start_date": "string"
},
"engagement_score": {
"components": {
"feedback_volume": 0,
"help_center_usage": 0,
"survey_participation": 0,
"voting_activity": 0
},
"score": 0,
"trend": "string"
},
"forms": {
"by_form": [
{}
],
"summary": {
"active_forms": 0,
"avg_submissions_per_form": 0,
"response_rate": 0,
"total_forms": 0,
"total_submissions": 0
},
"timeseries": [
{}
]
},
"friction_score": {
"components": {
"documentation_gaps": 0,
"feature_gaps": 0,
"onboarding_friction": 0,
"stability_issues": 0,
"support_friction": 0
},
"grade": "string",
"score": 0,
"trend": "string",
"trend_change": 0
},
"generated_at": "string",
"health_score": {
"components": {
"feature_velocity": 0,
"response_time": 0,
"uptime": 0,
"user_satisfaction": 0
},
"grade": "string",
"score": 0
},
"help_center": {
"summary": {
"published_articles": 0,
"total_articles": 0,
"total_flows": 0,
"total_searches": 0,
"total_views": 0
},
"timeseries": [
{}
],
"top_articles": [
{}
],
"top_searches": [
{}
]
},
"insights": [
{
"action": "string",
"description": "string",
"metric": "string",
"severity": "string",
"sources": [],
"threshold": 0,
"title": "string",
"type": "string",
"value": 0
}
],
"releases": {
"summary": {
"draft_releases": 0,
"published_releases": 0,
"total_releases": 0,
"total_views": 0
},
"timeseries": [
{}
],
"top_releases": [
{}
]
},
"roadmaps": {
"by_column": [
{}
],
"summary": {
"completion_rate": 0,
"items_with_target_date": 0,
"total_items": 0,
"total_roadmaps": 0,
"total_views": 0
},
"timeseries": [
{}
]
},
"sources": [
"string"
],
"status": {
"by_service": {},
"by_type": {},
"summary": {
"active_incidents": 0,
"avg_resolution_time_ms": 0,
"current_status": "string",
"resolved_incidents": 0,
"total_incidents": 0,
"uptime_percentage": 0
},
"timeseries": [
{}
]
},
"support": {
"avg_resolution_time_ms": 0,
"avg_response_time_ms": 0,
"summary": {
"open_tickets": 0,
"resolution_rate": 0,
"resolved_tickets": 0,
"total_tickets": 0,
"unassigned": 0,
"waiting_on_customer": 0
},
"tickets_by_category": {},
"tickets_by_priority": {},
"tickets_by_status": {},
"timeseries": [
{}
]
},
"surveys": {
"by_survey": [
{}
],
"summary": {
"active_surveys": 0,
"avg_completion_rate": 0,
"avg_response_rate": 0,
"avg_satisfaction": 0,
"total_responses": 0,
"total_surveys": 0
},
"timeseries": [
{}
]
},
"timeseries": {
"end_date": "string",
"forms": [
{}
],
"help_center": [
{}
],
"period": "string",
"releases": [
{}
],
"start_date": "string",
"status": [
{}
],
"support": [
{}
],
"surveys": [
{}
],
"wishes": [
{}
]
},
"wishes": {
"by_category": {},
"by_status": {},
"summary": {
"active_wishes": 0,
"completion_rate": 0,
"total_votes": 0,
"total_wishes": 0
},
"timeseries": [
{}
],
"top_voted": [
{}
]
}
},
"success": true
}