---
title: "Count Link Scripts"
method: GET
path: "/links/{link_id}/scripts/count"
tags: ["Scripts"]
---

# Count Link Scripts

`GET /links/{link_id}/scripts/count`

## Request

- Base URL: `https://api.rebrandly.com/v1`
- URL: `https://api.rebrandly.com/v1/links/{link_id}/scripts/count`
- Auth: API key in header `apikey`

Get count of scripts attached to a link.

**Requires:** Authenticated user with workspace access.

**Blocked by:** Link deleted (status=3).

## Path parameters

- `link_id` string, required

## Headers

- `Workspace` string
- `apikey` string, required

## Response `200`

Script count

- object
  - `count` integer: Number of scripts attached

---

[API](https://skmtc.dev/rebrandly/apis/rebrandly-api.md) - [All operations](https://skmtc.dev/rebrandly/apis/rebrandly-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rebrandly/apis/rebrandly-api/revisions/b098bf9fb684?raw)
