---
title: "target_port | Speedscale Docs"
description: "Extract the target port from an RRPair to modify request URLs during replay with Speedscale's target_port functionality for enhanced API testing."
canonical: "https://docs.speedscale.com/guides/transformation/extractors/target_port/"
---

[Documentation index](https://docs.speedscale.com/guides/llms.txt) | [Markdown](https://docs.speedscale.com/guides/transformation/extractors/target_port/index.md) | [Canonical page](https://docs.speedscale.com/guides/transformation/extractors/target_port/)

# target\_port

<a id="purpose"></a>

### Purpose

**target\_port** extracts the target port from the RRPair. Extracting the target port can be used to change the URL of a request during replay.

<a id="usage"></a>

### Usage

```json
"type": "target_port"
```

<a id="example"></a>

### Example

```json
"type": "target_port",
```
