<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [ibm-cloud-sdk-core](./ibm-cloud-sdk-core.md) &gt; [getQueryParam](./ibm-cloud-sdk-core.getqueryparam.md)

## getQueryParam() function

Return a query parameter value from a URL

**Signature:**

```typescript
export declare function getQueryParam(urlStr: string, param: string): string;
```

## Parameters

<table><thead><tr><th>

Parameter


</th><th>

Type


</th><th>

Description


</th></tr></thead>
<tbody><tr><td>

urlStr


</td><td>

string


</td><td>

the url string.


</td></tr>
<tr><td>

param


</td><td>

string


</td><td>

the name of the query parameter whose value should be returned


</td></tr>
</tbody></table>
**Returns:**

string

the value of the "param" query parameter

