# Retrieve a URL parameter for a session

**URL:** <https://community.weweb.io/t/retrieve-a-url-parameter-for-a-session/1827>\
**Category:** How do I?\
**Created:** [February 8, 2023, 2:54pm UTC](https://community.weweb.io/t/retrieve-a-url-parameter-for-a-session/1827 "2023-02-08T14:54:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jb-jetpulp](https://avatars.discourse-cdn.com/v4/letter/j/7feea3/32.png) [@jb-jetpulp](https://community.weweb.io/u/jb-jetpulp)\
**Post date:** [February 8, 2023, 2:54pm UTC](https://community.weweb.io/t/retrieve-a-url-parameter-for-a-session/1827/1 "2023-02-08T14:54:07Z")

</div>

Hey !

Here’s my problem : my users will come from our website (wich is a wordpress btw). I want to put an api-key in an URL parameter and keep it for the whole session (in order to make my API calls with a variable).

How can I do that ??

---

<div class="post-metadata">

**Author:** ![Joyce](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/joyce/32/13232_2.png) [@Joyce](https://community.weweb.io/u/Joyce)\
**Post date:** [February 22, 2023, 6:42pm UTC](https://community.weweb.io/t/retrieve-a-url-parameter-for-a-session/1827/2 "2023-02-22T18:42:26Z")

</div>

Hey @jb-jetpulp 👋

I think you’ll be able to do this with a query string:

 ![CleanShot 2023-02-22 at 19.41.13@2x](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/4/4b9a9a9ee7d2b031274547041be03b672d8a8812.png)

Let me know if that works for you 🙂
