# How get query parameter from URL by name

**URL:** <https://community.hubspot.com/t/how-get-query-parameter-from-url-by-name/61035>\
**Category:** CMS Development\
**Tags:** professional\
**Created:** [July 15, 2022, 8:10am UTC](https://community.hubspot.com/t/how-get-query-parameter-from-url-by-name/61035 "2022-07-15T08:10:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![VVolnitskyi](https://avatars.discourse-cdn.com/v4/letter/v/73ab20/32.png) [@VVolnitskyi](https://community.hubspot.com/u/VVolnitskyi)\
**Post date:** [July 15, 2022, 8:10am UTC](https://community.hubspot.com/t/how-get-query-parameter-from-url-by-name/61035/1 "2022-07-15T08:10:48Z")

</div>

[www.url.com/page?firstparam=smth&secparam=smth2](http://www.url.com/page?firstparam=smth&secparam=smth2)

how to get query parameter by name

in example i see {{ request.query }} but i want to use something like {{ request.query.firstparam }}

Someone know how to use this?

---

<div class="post-metadata">

**Author:** ![Brownstephen101](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/brownstephen101/32/52735_2.png) [@Brownstephen101](https://community.hubspot.com/u/Brownstephen101)\
**Post date:** [July 15, 2022, 2:27pm UTC](https://community.hubspot.com/t/how-get-query-parameter-from-url-by-name/61035/2 "2022-07-15T14:27:05Z")

</div>

Hi @VVolnitskyi ,  
You can get specific query parameters by accessing the request.query\_dict in hubl.  
For example, to get the first parameter, you would use {{ request.query\_dict.firstparam }}  
Hope this helps!
