Latenode

Automatically shorten URLs in Google Sheets with T.LY Link Shortener

This template watches a Google Sheet for new rows, reads the long URL from the column you pick, and asks T.LY for a short link from a JavaScript node. It then writes that short URL into the same row. Connect Google Sheets. Put the T.LY API key in that JavaScript node.

Updated Sep 16, 2026Est. run: 9sEst. cost: $0.0006
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Shortens each new spreadsheet URL with T.LY
  • Starts when a Google Sheets row is added
  • Calls T.LY from JavaScript
  • Writes the short link back into the same row

How it works

1
Trigger

Watch the spreadsheet

The scenario starts when a new row is added to the Google Sheet you choose.

2
Logic

Shorten the URL with T.LY

JavaScript sends the long URL to T.LY and returns the short link. Put the T.LY API key in that JavaScript node.

3
Action

Write the short link back

Google Sheets updates the same row with the T.LY URL.

Setup guide

1

Connect Google Sheets

Add a Google Sheets connection. Watch the tab that holds long URLs for new rows. Note the column with the source URL and the column that should receive the short link.

2

Call T.LY from JavaScript

Add a JavaScript node that posts the long URL to T.LY and returns the short link. Put the T.LY API key in that JavaScript node.

3

Update the row

Update the same Google Sheets row with the T.LY URL. Add a test row and confirm the short link appears in the destination column.

Requirements

A Google Sheet Latenode can read and update
A column with long URLs to shorten
A T.LY account and API key stored in the JavaScript node

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.