Countly API
Overview
Countly is an open-source product analytics platform, and its REST API lets you query event data, session metrics, user counts, and custom dashboards you have set up in your Countly instance. It requires no special authentication for read access on public endpoints of self-hosted instances. It is useful if you are already using Countly for analytics and want to pull data into custom reports or dashboards.
Beginner Tip
If you are new to Countly, try the hosted demo at try.count.ly to explore the dashboard before setting up your own instance—the API structure will make much more sense once you see the data model visually.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Countly",
"description": "Countly web analytics",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
total_sessions Total number of sessions recorded in the specified time period. total_users Total number of unique users who used the app in the period. new_users Number of users who opened the app for the first time in the period. total_events Total count of all custom events triggered across all users. avg_session_duration Average session length in seconds across all sessions in the period. Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://api.count.ly/reference";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →Datamuse
⭐ Beginner's PickDatamuse is a free word-finding API that helps you discover words by meaning, sound, spelling, and context — no API key needed.
Drupal.org
The Drupal.org API gives you programmatic access to information about Drupal modules, projects, users, and releases hosted on drupal.org.
Evil Insult Generator
⭐ Beginner's PickThe Evil Insult Generator API returns randomly generated humorous (fictional) insults in multiple languages — no API key required.
GitHub Contribution Chart Generator
⭐ Beginner's PickThe GitHub Contribution Chart Generator API creates a visual representation of any GitHub user's contribution activity over the past year.
GitHub ReadMe Stats
⭐ Beginner's PickGitHub ReadMe Stats is an open-source API that generates dynamic SVG cards showing your GitHub statistics — repos, stars, commits, languages, and more.