• Tools
Tools
  • Tools
loading...
No Results
  • ActiveCampaign
  • AirDroid Business
    • Index
    • Clear app data and cache
    • Create a group
    • Delete groups
    • Disable lost mode
    • Error codes
    • Enable lost mode
    • Field reference
    • Get average screen time
    • Get account activities
    • Get a group
    • Get a group id by group name
    • Get a device by name
    • Get a device app by name
    • Get an activity log
    • Get all devices
    • Get all device apps
    • Get all devices with filter
    • Get device info push
    • Get device location report
    • Get device network connection history
    • Get device application usage duration
    • Get device application report
    • Get device online status report
    • Get device remote access report
    • Get data usage overview and trends
    • Get tag ids by tag names
    • Get top 10 apps by usage duration
    • Get top 10 data usage apps
    • Lock a device
    • Move devices to a group
    • Open app to foreground
    • Power off a device
    • Reboot device
    • Remote operation
    • Set tags
    • Turn off device screen
    • Unenroll a device
    • Update a device name
    • Update a device remark
    • Update a group name
    • Update a group remark
  • Asana
  • AWS-S3
  • AWS Lambda
  • Appstore
  • BambooHR
  • Bitbucket
  • Brevo
  • Coda
  • Code
  • ConvertKit
  • CSV
  • Crypto
  • Clockify
  • Data Shaping
  • Date & Time
  • Delay
  • DingTalk
  • Discourse
  • Discord
  • Dropbox
  • Elastic Security
  • FeiShu
  • Freshdesk
  • Freshservice
  • Freshworks CRM
  • Gerrit
  • Gitlab
  • Github
  • Grafana
  • Google Ads
  • Google Docs
  • Google Drive
  • Google Gmail
  • Google Sheets
  • Google Analytics
  • Google Calendar
  • Google Developer
  • Harvest
  • HaloPSA
  • Hacker News
  • Hubspot
  • Help Scout
  • Intercom
  • Jira
  • Jenkins
  • Kafka
  • Lemlist
  • MySQL
  • Monday
  • Metabase
  • MailChimp
  • Microsoft Excel
  • Microsoft Outlook
  • Notion
  • Nextcloud
  • Odoo
  • Ortto
  • Okta
  • PayPal
  • Paddle
  • Pipedrive
  • PostHog
  • PostgreSQL
  • Qdrant
  • QRCode
  • QuickBooks
  • Redis
  • Stripe
  • Splunk
  • Shopify
  • Segment
  • ServiceNow
  • Search&Crawl
  • Text
  • Trello
  • Twilio
  • Todoist
  • Wikipedia
  • WordPress
  • WooCommerce
  • Xml
  • YouTube
  • Zulip
  • Zoom
  • Zendesk
  • Zammad
  • Zoho CRM
Home > Tools > AirDroid Business

Get average screen time

Tool Name: airdroid_business_get_average_screen_time

Risk Level: 🟢 Low Risk

Execution Mode: ⚡ Synchronous

Category: Reports & Analytics

Quick Start (Copy & Use)

In one sentence: Get average screen time trend data and overview statistics for devices

What you need: StartDate (start date), EndDate (end date)

Success criteria: StatusCode=200 and ErrorMessage="" and ScreenTrendOverview contains overview_data and trend_data

What to do next: Analyze screen time trends, or combine with Get Top 10 Apps by Usage Duration to understand specific app usage

Minimal request example:

{
  "StartDate": "2026-01-01",
  "EndDate": "2026-01-31"
}

Minimal response example:

{
  "ScreenTrendOverview": {
    "overview_data": {
      "average_duration": 3500
    },
    "trend_data": [
      {
        "collect_date": "2026-01-01",
        "duration": 3500
      }
    ]
  },
  "StatusCode": 200,
  "ErrorMessage": ""
}

Recipes (Common Recipes)

Recipe 1: Query Last 30 Days Screen Time Trends

Scenario: Understand overall device screen usage trends

{
  "StartDate": "2026-01-05",
  "EndDate": "2026-02-03",
  "GroupIds": [0]
}

Recipe 2: Filter Screen Time by Group

Scenario: View screen usage for a specific group only (e.g., Sales department)

{
  "StartDate": "2026-01-01",
  "EndDate": "2026-01-31",
  "GroupIds": [100]
}

GroupIds can be obtained via the Get a Group ID by Group Name tool

Recipe 3: Filter Devices by Keyword

Scenario: Only calculate screen time for Samsung devices

{
  "StartDate": "2026-01-01",
  "EndDate": "2026-01-31",
  "Keyword": "Samsung"
}

1. Overview

1.1 Description

Retrieve average screen time statistics for devices, including overview data (average for the date range) and daily trend data.

1.2 When to Use

  • Usage trend analysis: Understand trends in device screen time changes
  • Device management decisions: Evaluate device usage efficiency based on screen time
  • Compliance monitoring: Monitor whether devices comply with usage policy requirements

1.3 Execution Mode & Response

This is a synchronous operation that returns results immediately upon invocation.

  • Return value: ScreenTrendOverview object containing overview statistics and trend data
  • Data scope: Returns daily average screen time for the specified date range

1.4 Prerequisites

Condition Description How to Verify
Valid date range Cannot query data older than 30 days; date range cannot exceed 30 days Ensure StartDate and EndDate are within limits
Account permission Account must have report viewing permissions -

1.5 Prerequisite Tools

Dependency Tool Purpose Necessity
Get a Group ID by Group Name Get GroupId by group name If filtering by group is needed
Get All Devices Get device list to understand keyword filter scope Optional

2. Inputs

2.1 Parameter List

Parameter Type Required Default Description
StartDate string ✅ - Start date, format: YYYY-MM-DD
EndDate string ✅ - End date, format: YYYY-MM-DD
DeviceIds string-array ❌ - Device ID list for filtering
GroupIds number-array ❌ - Group ID list for filtering
Keyword string ❌ "" Search keyword for filtering devices

2.2 Parameter Details

`StartDate`

  • Type: string
  • Format: YYYY-MM-DD (e.g., 2026-01-01)
  • Constraints:
    • Cannot be a future date
    • Cannot query data older than 30 days
  • Example:
  "2026-01-01"

`EndDate`

  • Type: string
  • Format: YYYY-MM-DD (e.g., 2026-01-31)
  • Constraints:
    • Cannot be earlier than StartDate
    • Cannot be a future date
    • Date range with StartDate cannot exceed 30 days
  • Example:
  "2026-01-31"

`DeviceIds`

  • Type: string-array
  • How to obtain:
    1. Via the Get All Devices tool — returns device_id in the Devices array
    2. Via the Get A Device By Name tool — for exact device name match
  • Combination logic: When used with GroupIds, results are combined (OR/union)
  • Example:
  ["fa6edcff65ab444e8b5e0eb08df4175d"]

`GroupIds`

  • Type: number-array
  • How to obtain:
    1. Via the Get a Group ID by Group Name tool
    2. Via the Get All Devices tool — returns group_id in device info
  • Combination logic: When used with DeviceIds, results are combined (OR/union)
  • Example:
  [100, 101]

`Keyword`

  • Type: string
  • Search type: Fuzzy match (case-insensitive)
  • Searchable fields: device_id, device_name, group_name, note, snid, imei, imsi, mac, eth_mac, manu, model, android_id, tags
  • Example:
  "Samsung"

2.3 Parameter Combination Logic

  • GroupIds and Keyword are AND relationship: filter by group first, then filter by keyword
  • StartDate to EndDate determines the trend_data data range

3. Outputs

3.1 Response Examples

Success response:

{
  "ScreenTrendOverview": {
    "overview_data": {
      "average_duration": 9
    },
    "trend_data": [
      {
        "collect_date": "2025-12-23",
        "duration": 3500
      }
    ]
  },
  "StatusCode": 200,
  "ErrorMessage": ""
}

Error response:

{
  "ScreenTrendOverview": {},
  "StatusCode": -1,
  "ErrorMessage": "Invalid start_date. Must be a non-empty string."
}

3.2 Field Descriptions

Field Path Type Description
StatusCode number Status code. See 5.1 AB Three-Layer Error Codes
ErrorMessage string Error message. Empty string on success
ScreenTrendOverview object Screen usage trend overview object
ScreenTrendOverview.overview_data object Overview statistics
ScreenTrendOverview.overview_data.average_duration number Average screen time per device per day within the selected date range (seconds)
ScreenTrendOverview.trend_data array Daily trend data array
ScreenTrendOverview.trend_data[].collect_date string Date, format YYYY-MM-DD
ScreenTrendOverview.trend_data[].duration number Average screen time per device for that day (seconds)

3.3 Time Unit Notes

Important: All duration values are in seconds.

Conversion formulas:

  • To minutes: duration / 60
  • To hours: duration / 3600

4. Examples

4.1 Basic Example: Query Last 30 Days Screen Time Trends

Request parameters:

{
  "StartDate": "2026-01-05",
  "EndDate": "2026-02-03"
}

Response:

{
  "ScreenTrendOverview": {
    "overview_data": {
      "average_duration": 6500
    },
    "trend_data": [
      {
        "collect_date": "2026-01-05",
        "duration": 6200
      },
      {
        "collect_date": "2026-01-06",
        "duration": 6400
      }
    ]
  },
  "StatusCode": 200,
  "ErrorMessage": ""
}

4.2 Advanced Example: Filter by Group

Request parameters:

{
  "StartDate": "2026-01-01",
  "EndDate": "2026-01-31",
  "GroupIds": [100],
  "Keyword": "Sales"
}

4.3 Error Example: Missing Required Parameter

Request parameters:

{
  "StartDate": "2026-01-01"
}

Response:

{
  "ScreenTrendOverview": {},
  "StatusCode": -1,
  "ErrorMessage": "Invalid end_date. Must be a non-empty string."
}

5. Error Handling

5.1 AB Three-Layer Error Codes

StatusCode Meaning Usage Scenario Agent Response
-1 Parameter validation error Local validation failed (missing required params, format errors) ❌ Do not retry; fix parameters and call again
200 Business success or business error HTTP request succeeded; check ErrorMessage Empty ErrorMessage = success; non-empty = business error
500 Network/request exception Timeout, connection failure, DNS resolution failure ⚠️ May retry (up to 2 times, 5-second intervals)

5.2 Common Errors

StatusCode ErrorMessage Example Cause Fix Suggestion
-1 Invalid start_date. Must be a non-empty string. StartDate is empty Provide a valid date format
-1 Invalid end_date. Must be a non-empty string. EndDate is empty Provide a valid date
500 Request timeout after 60 seconds. Request timeout Retry later

5.3 Agent Self-Healing Decision Table

StatusCode Auto Retry Retry Strategy Manual Intervention
-1 ❌ - Fix parameters and call again
200 (non-empty ErrorMessage) ❌ - Fix based on error message
500 ⚠️ Up to 2 retries, 5-second intervals Escalate if persistent failure

6. Best Practices

6.1 Performance Optimization

  • Set reasonable date ranges: Smaller date ranges mean less returned data
  • Use group filtering: If only interested in specific groups, setting GroupIds reduces data volume
  • Correct date settings: Ensure dates are within the allowed 30-day range for accurate overview data

6.2 Security Notes

🟢 Read operation: No special security requirements

6.3 Data Interpretation Tips

  • overview_data values are based on the specified date range
  • trend_data duration values represent the daily per-device average
  • If average_duration is 0, it may indicate no devices reported data during the period

7. Related Tools

7.1 Prerequisite Tools

Tool Name Purpose
Get a Group ID by Group Name Get GroupId by group name
Get All Devices Get device list

7.2 Follow-up Tools

Tool Name Purpose
Get Top 10 Apps by Usage Duration View specific app usage durations
Get Top 10 Data Usage Apps View app data consumption

7.3 Similar Tools Comparison

Tool Name Use Case Difference
Get Average Screen Time View screen usage trends Returns overview and daily trends
Get Top 10 Apps by Usage Duration View app usage durations Statistics for Top 10 by app

8. Tool Chains

8.1 Device Usage Efficiency Analysis Pattern

Scenario: Comprehensive analysis of device usage efficiency

Tool chain:

Get Average Screen Time → Get Top 10 Apps by Usage Duration → Comparative analysis

Steps:

  1. Call Get Average Screen Time to get screen usage trends
  2. Call Get Top 10 Apps by Usage Duration to get app usage details
  3. Compare and analyze the relationship between screen time and specific app usage

8.2 Group Efficiency Comparison Pattern

Scenario: Compare device usage across different groups

Tool chain:

Get a Group ID by Group Name (Group A) → Get Average Screen Time →
Get a Group ID by Group Name (Group B) → Get Average Screen Time → Comparative analysis

Steps:

  1. Get Group A's GroupId and query screen usage time
  2. Get Group B's GroupId and query screen usage time
  3. Compare the usage trend differences between the two groups
Updated on: Feb 13, 2026
Was This Page Helpful?
Prev Field reference
Next Get account activities
Discussion

Leave a Reply. Cancel reply

Your email address will not be published. Required fields are marked*

Product-related questions?Contact Our Support Team to Get a Quick Solution>
On this page
  • Quick Start (Copy & Use)
  • Recipes (Common Recipes)
    • Recipe 1: Query Last 30 Days Screen Time Trends
    • Recipe 2: Filter Screen Time by Group
    • Recipe 3: Filter Devices by Keyword
  • 1. Overview
    • 1.1 Description
    • 1.2 When to Use
    • 1.3 Execution Mode & Response
    • 1.4 Prerequisites
    • 1.5 Prerequisite Tools
  • 2. Inputs
    • 2.1 Parameter List
    • 2.2 Parameter Details
    • 2.3 Parameter Combination Logic
  • 3. Outputs
    • 3.1 Response Examples
    • 3.2 Field Descriptions
    • 3.3 Time Unit Notes
  • 4. Examples
    • 4.1 Basic Example: Query Last 30 Days Screen Time Trends
    • 4.2 Advanced Example: Filter by Group
    • 4.3 Error Example: Missing Required Parameter
  • 5. Error Handling
    • 5.1 AB Three-Layer Error Codes
    • 5.2 Common Errors
    • 5.3 Agent Self-Healing Decision Table
  • 6. Best Practices
    • 6.1 Performance Optimization
    • 6.2 Security Notes
    • 6.3 Data Interpretation Tips
  • 7. Related Tools
    • 7.1 Prerequisite Tools
    • 7.2 Follow-up Tools
    • 7.3 Similar Tools Comparison
  • 8. Tool Chains
    • 8.1 Device Usage Efficiency Analysis Pattern
    • 8.2 Group Efficiency Comparison Pattern
loading...
No Results