🤖
BotTalk Docs
  • BotTalk Documentation
  • Video Tutorials
  • Onboarding
    • 🔐Create BotTalk Account
    • 🏢Create an Organization
    • 📂Create a Project
  • Text-to-Speech
    • Configure your Project
      • Organization Access Settings
      • Voice Selection
      • Parser Settings
      • Extractor Rules
    • Integrate Web Player
      • Create a Web Player
      • Configure your Web Player
      • Integrate Web Player into your website
    • Automation Rules
      • Create Custom Rule
    • Analytics
    • Reporting
  • Features
    • Dictionaries
      • SSML-Tags
      • Regular Expressions
      • Contextual Preview
    • Playlist Player
      • Set up a Playlist
      • Create a Playlist Player
      • Configure your Playlist Player
      • Integrate Playlist Player into your website
  • MONETIZATION
    • Paywall Integration
    • Audio Advertising
  • CUSTOM VOICE
    • Create a Custom Voice
    • Preparation of recordings
    • Recording platform
    • Technical guidelines
  • Integration
    • ⚙️BotTalk API
      • 🔑Authorization
      • 🛑Error Handling
      • 🚦Webhooks
    • API Reference
      • 📰Articles
      • 📊Reports
  • Help
    • ❓FAQs
      • ❔General
      • 💰Billing
Powered by GitBook
On this page
  • Get the list of available reports
  • Available reports
  • Get an individual report
  • Fetch the report data
  1. Integration
  2. API Reference

Reports

Retrieve statistics on audio articles usage programmatically

Get the list of available reports

Available reports

GET https://bottalk.io/api/reports

Fetches a list of available report

{
  "result": "ok",
  "reports": [
    {
      "name": "AvgListen",
      "title": "Average Listen Report",
      "params": {
        "date_start": "today",
        "date_end": "tomorrow"
      },
      "columns": {
        "d": "Date",
        "vg": "Average Listen Length (% of article)",
        "project_id": "Project"
      }
    },
    {
      "name": "ActiveUsers",
      "title": "Playback Started Report",
      "params": {
        "date_start": "today",
        "date_end": "tomorrow"
      },
      "columns": {
        "d": "Date",
        "au": "Active Users",
        "project_id": "Project"
      }
    },
    {
      "name": "UniqueShows",
      "title": "Unique Shows Report",
      "params": {
        "date_start": "today",
        "date_end": "tomorrow"
      },
      "columns": {
        "d": "Date",
        "imp": "Unique Users",
        "project_id": "Project"
      }
    },
    {
      "name": "CTR",
      "title": "CTR Report",
      "params": {
        "date_start": "today",
        "date_end": "tomorrow"
      },
      "columns": {
        "d": "Date",
        "imp": "Impressions",
        "au": "Clicks",
        "ctr": "CTR",
        "project_id": "Project"
      }
    },
    {
      "name": "UsersMoreThanTime",
      "title": "UsersMoreThanTime Report",
      "params": {
        "date_start": "today",
        "date_end": "tomorrow",
        "time": 60
      },
      "columns": {
        "d": "Date",
        "nu": "Number of users",
        "perc": "Percent of users",
        "project_id": "Project"
      }
    },
    {
      "name": "UsersMoreThan",
      "title": "UsersMoreThan Report",
      "params": {
        "date_start": "today",
        "date_end": "tomorrow",
        "percent": 50
      },
      "columns": {
        "d": "Date",
        "nu": "Number of users",
        "perc": "Percent of users",
        "project_id": "Project"
      }
    },
    {
      "name": "CohortListenPercent",
      "title": "Cohort average listeners report",
      "params": {
        "date_start": "today",
        "date_end": "tomorrow"
      },
      "columns": {
        "p": "Percent of article",
        "users": "Number of Users",
        "percent": "Percent of Users",
        "project_id": "Project"
      }
    },
    {
      "name": "PopularArticles",
      "title": "Popular Articles Report",
      "params": {
        "date_start": "today",
        "date_end": "tomorrow"
      },
      "columns": {
        "cnt": "Number of listeners",
        "title": "Title"
      }
    },
    {
      "name": "CohortArticles",
      "title": "Cohort Articles Report",
      "params": {
        "date_start": "today",
        "date_end": "tomorrow"
      },
      "columns": {
        "cnt": "Number of listeners",
        "title": "Title"
      }
    }
  ]
}

Get an individual report

Fetch the report data

GET https://bottalk.io/api/reports

{
  "result": "ok",
  "headers": {
    "p": "Percent of article",
    "users": "Number of Users",
    "percent": "Percent of Users",
    "project_id": "Project"
  },
  "title": "Users listening more than X% of article (2019-12-09 00:00:00 - 2019-12-10 23:59:59)",
  "report": [
    {
      "p": 0,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    },
    {
      "p": 10,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    },
    {
      "p": 20,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    },
    {
      "p": 30,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    },
    {
      "p": 40,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    },
    {
      "p": 50,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    },
    {
      "p": 60,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    },
    {
      "p": 70,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    },
    {
      "p": 80,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    },
    {
      "p": 90,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    },
    {
      "p": 100,
      "users": 0,
      "percent": "0%",
      "project_id": "My test project"
    }
  ]
}

PreviousArticlesNextFAQs

Last updated 2 years ago

Get the data for individual report by name. The parameters vary from one report to another. See section to the the parameters needed for the request.

📊
available reports