Coda
  1. Analytics
Coda
  • Permissions
    • Get sharing metadata
      GET
    • Delete permission
      DELETE
    • Search principals
      GET
    • Get ACL settings
      GET
    • Update ACL settings
      PATCH
    • List permissions
      GET
    • Add permission
      POST
  • Pages
    • Content export status
      GET
    • List pages
      GET
    • Create a page
      POST
    • Begin content export
      POST
    • Get a page
      GET
    • Delete a page
      DELETE
    • Update a page
      PUT
  • Tables
    • List tables
      GET
    • Get a table
      GET
  • Columns
    • List columns
      GET
    • Get a column
      GET
  • Rows
    • Push a button
    • List table rows
    • Insert/upsert rows
    • Delete multiple rows
    • Get a row
    • Delete row
    • Update row
  • Formulas
    • List formulas
    • Get a formula
  • Controls
    • List controls
    • Get a control
  • CustomDocDomains
    • List custom doc domains
    • Add custom domain
    • Deletes a custom domain
    • Updates a custom domain
    • Gets custom doc domains providers
  • Miscellaneous
    • Resolve browser link
    • Get mutation status
  • Automations
    • Trigger automation
  • Analytics
    • List doc analytics
      GET
    • List page analytics
      GET
    • Get doc analytics summary
      GET
    • List Pack analytics
      GET
    • Get Pack analytics summary
      GET
    • Get analytics last updated day
      GET
    • List Pack formula analytics
      GET
  • Workspaces
    • List workspace users
    • List workspace roles
    • Updates user role
  • Packs
    • List Packs
    • Create Pack
    • Gets the JSON Schema for Pack configuration.
    • List the versions for a Pack.
    • Get the next valid version for a Pack.
    • Get the difference between two pack versions.
    • Register Pack version
    • Pack version upload complete
    • Create a new Pack release.
    • List the releases for a Pack.
    • Update an existing Pack release.
    • Set the OAuth configurations of the Pack.
    • Retrieve the OAuth configuration of the Pack.
    • List permissions for a Pack
    • Add a permission for Pack
    • Delete a permission for Pack
    • List makers for Pack
    • Add a maker for Pack
    • Delete a maker for Pack
    • List categories for Pack
    • Add a category for Pack
    • Delete a category for Pack
    • Upload a Pack asset.
    • Upload Pack source code.
    • Pack asset upload complete
    • Pack source code upload complete
    • get the source code for a Pack version.
    • List the Pack listings accessible to a user.
    • Get detailed listing information for a Pack.
    • List featured docs for a Pack
    • Update featured docs for a Pack
    • Get a single Pack
    • Update Pack
    • Delete Pack
    • Set the system connection credentials of the Pack.
    • Patch the system connection credentials of the Pack.
    • Retrieve the system connection metadata of the Pack.
    • Retrieve the logs of a Pack.
    • Retrieve the grouped logs of a Pack.
  • Publishing
    • Get doc categories
    • Unpublish doc
    • Publish doc
  • Docs
    • Get info about a doc
    • Delete doc
    • Update doc
    • Create doc
    • List available docs
  • Account
    • Get user info
  1. Analytics

List Pack analytics

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
GET
/analytics/packs
Analytics
Returns analytics data for Packs the user can edit.
请求示例请求示例
Python
Shell
JavaScript
Java
curl --location --request GET 'http://dev-cn.your-api-server.com/analytics/packs'
响应示例响应示例
200 - 示例 1
{
    "nextPageToken": "eyJsaW1pd",
    "items": [
        {
            "pack": {
                "id": 1003,
                "name": "Cool Geometry Formulas",
                "logoUrl": "string",
                "createdAt": "2022-04-11T00:18:57.946Z"
            },
            "metrics": [
                {
                    "date": "2020-09-02",
                    "docInstalls": 100,
                    "workspaceInstalls": 10,
                    "numFormulaInvocations": 100,
                    "numActionInvocations": 100,
                    "numSyncInvocations": 100,
                    "numMetadataInvocations": 100,
                    "docsActivelyUsing": 50,
                    "docsActivelyUsing7Day": 100,
                    "docsActivelyUsing30Day": 200,
                    "docsActivelyUsing90Day": 300,
                    "docsActivelyUsingAllTime": 500,
                    "workspacesActivelyUsing": 10,
                    "workspacesActivelyUsing7Day": 15,
                    "workspacesActivelyUsing30Day": 20,
                    "workspacesActivelyUsing90Day": 30,
                    "workspacesActivelyUsingAllTime": 50,
                    "workspacesActivelyTrialing": 0,
                    "workspacesActivelyTrialing7Day": 0,
                    "workspacesActivelyTrialing30Day": 0,
                    "workspacesActivelyTrialing90Day": 0,
                    "workspacesActivelyTrialingAllTime": 0,
                    "workspacesNewlySubscribed": 0,
                    "workspacesWithActiveSubscriptions": 0,
                    "workspacesWithSuccessfulTrials": 0,
                    "revenueUsd": "string"
                }
            ]
        }
    ],
    "nextPageLink": "https://coda.io/apis/v1/analytics/packs?pageToken=xyz"
}

请求参数

Query 参数
packIds
array[integer]
可选
Which Pack IDs to fetch.
workspaceId
string 
可选
ID of the workspace.
示例值:
ws-1Ab234
query
string 
可选
Search term used to filter down results.
示例值:
Supercalifragilisticexpialidocious
sinceDate
string <date>
可选
Limit results to activity on or after this date.
示例值:
2020-08-01
untilDate
string <date>
可选
Limit results to activity on or before this date.
示例值:
2020-08-05
scale
enum<string> 
可选
Quantization period over which to view analytics. Defaults to daily.
枚举值:
dailycumulative
pageToken
string 
可选
An opaque token used to fetch the next page of results.
示例值:
eyJsaW1pd
orderBy
enum<string> 
可选
Use this parameter to order the Pack analytics returned.
枚举值:
datepackIdnamecreatedAtdocInstallsworkspaceInstallsnumFormulaInvocationsnumActionInvocationsnumSyncInvocationsnumMetadataInvocationsdocsActivelyUsingdocsActivelyUsing7DaydocsActivelyUsing30DaydocsActivelyUsing90DaydocsActivelyUsingAllTimeworkspacesActivelyUsingworkspacesActivelyUsing7DayworkspacesActivelyUsing30DayworkspacesActivelyUsing90DayworkspacesActivelyUsingAllTimeworkspacesWithActiveSubscriptionsworkspacesWithSuccessfulTrialsrevenueUsd
direction
enum<string> 
可选
Direction to sort results in.
枚举值:
ascendingdescending
isPublished
boolean 
可选
Limit results to only published items. If false or unspecified, returns all items including published ones.
limit
integer 
可选
Maximum number of results to return in this query.
>= 1<= 5000
默认值:
1000
示例值:
10

返回响应

🟢200Response of Coda Pack analytics.
application/json
Body
List of analytics for Coda Packs over a date range.
nextPageToken
string 
可选
If specified, an opaque token used to fetch the next page of results.
示例值:
eyJsaW1pd
items
array[object (PackAnalyticsItem) {2}] 
必需
pack
object (PackAnalyticsDetails) 
必需
Metadata about a Pack relevant to analytics.
metrics
array[object (PackAnalyticsMetrics) {26}] 
必需
nextPageLink
string <url>
可选
If specified, a link that can be used to fetch the next page of results.
示例值:
https://coda.io/apis/v1/analytics/packs?pageToken=xyz
🟠401401
🟠429429
修改于 2024-03-20 08:13:15
上一页
Get doc analytics summary
下一页
Get Pack analytics summary
Built with