# How to get steam publisher\_key from config in my code?

**URL:** <https://forum.heroiclabs.com/t/how-to-get-steam-publisher-key-from-config-in-my-code/5783>\
**Category:** Runtime Framework\
**Tags:** server-framework\
**Created:** [November 8, 2024, 9:09am UTC](https://forum.heroiclabs.com/t/how-to-get-steam-publisher-key-from-config-in-my-code/5783 "2024-11-08T09:09:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hexun80149128](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/hexun80149128/32/1395_2.png) [@hexun80149128](https://forum.heroiclabs.com/u/hexun80149128)\
**Post date:** [November 8, 2024, 9:09am UTC](https://forum.heroiclabs.com/t/how-to-get-steam-publisher-key-from-config-in-my-code/5783/1 "2024-11-08T09:09:44Z")

</div>

I saw in the source code that the publisher\_key in the configuration can be obtained through s.config.GetSocial().Steam.PublisherKey. In the code I am writing, how do I get the publisher\_key? Is there a way to obtain the ApiServer object? Thanks.  
@sesposito

---

<div class="post-metadata">

**Author:** ![sesposito](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/sesposito/32/2594_2.png) [@sesposito](https://forum.heroiclabs.com/u/sesposito)\
**Post date:** [November 8, 2024, 11:20am UTC](https://forum.heroiclabs.com/t/how-to-get-steam-publisher-key-from-config-in-my-code/5783/2 "2024-11-08T11:20:03Z")

</div>

At the moment there’s no way to fetch the config from the runtime, you’ll have to pass it via runtime envs.

We’re planning on adding a runtime function to get the configuration in the next release.

Best.
