# URL Parameter Value

{% hint style="info" %}
**Block Information**

Available in: Page Flow

Toolbox Category: Html/DOM

Block Type: [Output](https://docs.zingy.ai/app-editor/block-anatomy#output-block)

Output Type: [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types)
{% endhint %}

**`URL Parameter Value`** is an [output block](https://docs.zingy.ai/app-editor/block-anatomy#output-block) that retrieves the value of a [URL query string parameter](https://en.wikipedia.org/wiki/Query_string) via it's name. The output is of type [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) and is compatible with [Value Parameters](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) of type [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) or of type [*any*](https://docs.zingy.ai/app-editor/page-flow/references/value-types).

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2FdBj2HIQ3uUCVWVXoHYzZ%2Fimage.png?alt=media&#x26;token=e8a488b5-8fa7-4ea2-8b98-83b0cb3ef241" alt="" width="371"><figcaption><p>URL Parameter Value block</p></figcaption></figure></div>

The block consists of *Name* a [Value Parameter](https://docs.zingy.ai/app-editor/block-anatomy#value-parameters) that accepts a [*text*](https://docs.zingy.ai/app-editor/page-flow/references/value-types) value representing the [name](https://docs.zingy.ai/page-editor/page-element-settings#name) of the URL parameter.

***

## Usage Example

The image below shows an example of the URL Parameter Value block where the variable str is set to the value of the URL Parameter named *page\_index*.

<div align="left"><figure><img src="https://3401585094-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FmnBepgycwgisXr9ya1N4%2Fuploads%2F518Is95a6ETVb38Ns9LE%2Fimage.png?alt=media&#x26;token=05c9827d-5b78-400b-959e-831615dd3f54" alt="" width="563"><figcaption><p>Example of the URL Parameter Value block</p></figcaption></figure></div>
