← Short.io

Domain Statistics. with Short.io API

Pipedream makes it easy to connect APIs for Short.io and 900+ other apps remarkably fast.

Trigger workflow on
HTTP requests, schedules and app events
Next, do this
Domain Statistics. with the Short.io API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

Create a workflow to Domain Statistics. with the Short.io API. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Configure the Domain Statistics. action
    1. Connect your Short.io account
    2. Select a Domain Id
    3. Optional- Select a Period
    4. Optional- Select a Clicks Chart Interval
    5. Optional- Configure Timezone offset
    6. Optional- Configure Start date
    7. Optional- Configure End date
  2. Select a trigger to run your workflow on HTTP requests, schedules or app events
  3. Deploy the workflow
  4. Send a test event to validate your setup
  5. Turn on the trigger

Integrations

Domain Statistics. with Short.io API on New Requests (Payload Only) from HTTP / Webhook API
HTTP / Webhook + Short.io
 
Try it
Domain Statistics. with Short.io API on New Message in Channel from Discord Bot API
Discord Bot + Short.io
 
Try it
Domain Statistics. with Short.io API on New Submission from Typeform API
Typeform + Short.io
 
Try it
Domain Statistics. with Short.io API on Custom Events from Zoom API
Zoom + Short.io
 
Try it
Domain Statistics. with Short.io API on New Submission (Instant) from Jotform API
Jotform + Short.io
 
Try it

Details

This is a pre-built, open source component from Pipedream's GitHub repo. The component is developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Domain Statistics. on Short.io
Description:Returns detailed statistics for domain in given period. [See the docs](https://developers.short.io/reference/getdomaindomainid).
Version:0.0.1
Key:short-domain-statistics

Code

import shortApp from "../../short.app.mjs";
import lodash from "lodash";

export default {
  key: "short-domain-statistics",
  name: "Domain Statistics.",
  description: "Returns detailed statistics for domain in given period. [See the docs](https://developers.short.io/reference/getdomaindomainid).",
  version: "0.0.1",
  type: "action",
  props: {
    shortApp,
    domainId: {
      propDefinition: [
        shortApp,
        "domainId",
      ],
    },
    period: {
      propDefinition: [
        shortApp,
        "period",
      ],
    },
    clicksChartInterval: {
      propDefinition: [
        shortApp,
        "clicksChartInterval",
      ],
    },
    tzOffset: {
      propDefinition: [
        shortApp,
        "tzOffset",
      ],
    },
    startDate: {
      propDefinition: [
        shortApp,
        "startDate",
      ],
    },
    endDate: {
      propDefinition: [
        shortApp,
        "endDate",
      ],
    },
  },
  async run({ $ }) {
    const param = lodash.pick(this, [
      "period",
      "clicksChartInterval",
      "tzOffset",
      "startDate",
      "endDate",
    ]);
    const statistics = await this.shortApp.getDomainStatistics($, this.domainId, param);
    $.export("$summary", `Successfully fetched domain statistics for: ${this.domainId}`);
    return statistics;
  },
};

Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Short.ioshortAppappThis component uses the Short.io app.
Domain IddomainIdintegerSelect a value from the drop down menu.
PeriodperiodstringSelect a value from the drop down menu:totalcustomtodayyesterdayweekmonthlastmonthlast7last30
Clicks Chart IntervalclicksChartIntervalstringSelect a value from the drop down menu:hourdayweekmonth
Timezone offsettzOffsetinteger

Timezone offset, in minutes.

Start datestartDatestring

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

Required if period is custom.

End dateendDatestring

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

Required if period is custom.

Authentication

Short.io uses API keys for authentication. When you connect your Short.io account, Pipedream securely stores the keys so you can easily authenticate to Short.io APIs in both code and no-code steps.

Get your secret key here.

About Short.io

White label URL Shortener

More Ways to Use Short.io

Triggers

New event for each link created. from the Short.io API

Emit new event when a link is created.

 
Try it

Actions

Create a Short Link with the Short.io API

Create a Short Link. See the docs.

 
Try it
Delete a Short Link with the Short.io API

Delete a Short Link. See the docs.

 
Try it
Expire a Link. with the Short.io API

Expire a link by id. See the docs.

 
Try it
Update a Short Link. with the Short.io API

Update original url, title or path for existing URL by id. See the docs.

 
Try it