View as Markdown
Short.io icon

Short.io ACTION

Get Domain Statistics

Returns detailed statistics for a domain in given period. See the documentation.
  • Action
  • Read only
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Short.io account once, then configure and run Get Domain Statistics from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "short-domain-statistics",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    short: { authProvisionId: "apn_xxxxxxx" },
    domainId: 10,
    period: "Period",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Get Domain Statistics inputs
Property Type Description
domainId Domain Id integer
Your domain's unique identifier.
Required Dynamic
period Period string
One of predefined time intervals. Select custom to provide custom dates.
Optional
clicksChartInterval Clicks Chart Interval string
One of predefined time intervals.
Optional
tzOffset Timezone offset integer
Timezone offset, in minutes.
Optional
startDate Start date string

Returns statistics for clicks after given date, format: yyyy-mm-dd.

Required if period is custom.

Optional
endDate End date string

Returns statistics for clicks before given date, format: yyyy-mm-dd.

Required if period is custom.

Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
short-domain-statistics
Version
0.0.3
App
Short.io
Authentication
API key
Read-only
Yes
Destructive
No
Open world
Yes