# Get the content API key in handlebars?

**URL:** <https://forum.ghost.org/t/get-the-content-api-key-in-handlebars/39431>\
**Category:** Developer help\
**Created:** [June 24, 2023, 2:54pm UTC](https://forum.ghost.org/t/get-the-content-api-key-in-handlebars/39431 "2023-06-24T14:54:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 24, 2023, 2:54pm UTC](https://forum.ghost.org/t/get-the-content-api-key-in-handlebars/39431/1 "2023-06-24T14:54:12Z")

</div>

Is there a way to get the content API key in handlebars? I logged @site, but I don’t see it there. I’ve sometimes resorted to javascript to read the value getting set for comments & sodo-search, but maybe there’s a more direct way that’s accessible to the theme?

(Yes, I could use a custom field and require the user to copy it over, but that seems sub-optimal, and I only have 15 custom fields…)

I think that’s the only field needed to recreate {ghost\_head} that isn’t accessible.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [June 28, 2023, 2:15pm UTC](https://forum.ghost.org/t/get-the-content-api-key-in-handlebars/39431/2 "2023-06-28T14:15:21Z")

</div>

Anyone got an answer to this one? I suspect it’s no?

---

<div class="post-metadata">

**Author:** ![markstos](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/markstos/32/18182_2.png) [@markstos](https://forum.ghost.org/u/markstos)\
**Post date:** [June 28, 2023, 8:41pm UTC](https://forum.ghost.org/t/get-the-content-api-key-in-handlebars/39431/3 "2023-06-28T20:41:44Z")

</div>

@Kevin Do you know the answer to this one?

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [October 4, 2024, 11:14am UTC](https://forum.ghost.org/t/get-the-content-api-key-in-handlebars/39431/4 "2024-10-04T11:14:02Z")

</div>

I did a thing.

Introducing the Content API Key helper! {{content\_api\_key}}

> **[Meet the {{content\_api\_key}} helper for Ghost](https://www.spectralwebservices.com/blog/introducing-a-new-helper/)**
>
> Your theme now has direct access to the Content API key. Integrators, rejoice!

Live with the 5.96 release. (Later today for self-hosters, Monday/Tuesday for Ghost Pro.)
