# Dynamic parameter on deploy

**URL:** <https://discourse.gohugo.io/t/dynamic-parameter-on-deploy/39983>\
**Category:** support\
**Created:** [August 13, 2022, 4:18pm UTC](https://discourse.gohugo.io/t/dynamic-parameter-on-deploy/39983 "2022-08-13T16:18:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![limmat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/limmat/32/17520_2.png) [@limmat](https://discourse.gohugo.io/u/limmat)\
**Post date:** [August 13, 2022, 4:18pm UTC](https://discourse.gohugo.io/t/dynamic-parameter-on-deploy/39983/1 "2022-08-13T16:18:32Z")

</div>

Hi there,

I’d like to display the temperature of a particular river on my Hugo website. There’s a simple API call I can make which returns me some JSON with this information. So what I’m looking for is a way to make this HTTP request once the website is deployed. I guess this would have to be saved as some of dynamic parameter which I could then just print on the header template file.

Would this be possible? Thanks!

---

<div class="post-metadata">

**Author:** ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)\
**Post date:** [August 13, 2022, 4:24pm UTC](https://discourse.gohugo.io/t/dynamic-parameter-on-deploy/39983/2 "2022-08-13T16:24:07Z")

</div>

You can obtain a static value (updated on each Hugo build) with `resources.GetRemote` or `getJSON`.

To obtain the value dynamically (each time a page is refreshed) you’ll need to use JS.

---

<div class="post-metadata">

**Author:** ![limmat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/limmat/32/17520_2.png) [@limmat](https://discourse.gohugo.io/u/limmat)\
**Post date:** [August 13, 2022, 4:45pm UTC](https://discourse.gohugo.io/t/dynamic-parameter-on-deploy/39983/3 "2022-08-13T16:45:05Z")

</div>

Thank you! I will just set the blog to be deployed periodically, so getJSON works just fine.

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)\
**Post date:** [August 15, 2022, 4:45pm UTC](https://discourse.gohugo.io/t/dynamic-parameter-on-deploy/39983/4 "2022-08-15T16:45:44Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
