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

# Count Link Rules

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

## Request

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

Get the total number of routing rules for 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`

Rule count

- object
  - `count` integer

---

[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)
