# Public Api gone in ghost version 2.11.0

**URL:** <https://forum.ghost.org/t/public-api-gone-in-ghost-version-2-11-0/5114>\
**Category:** Themes\
**Created:** [January 17, 2019, 3:45pm UTC](https://forum.ghost.org/t/public-api-gone-in-ghost-version-2-11-0/5114 "2019-01-17T15:45:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kingrayhan](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kingrayhan/32/1301_2.png) [@kingrayhan](https://forum.ghost.org/u/kingrayhan)\
**Post date:** [January 17, 2019, 3:45pm UTC](https://forum.ghost.org/t/public-api-gone-in-ghost-version-2-11-0/5114/1 "2019-01-17T15:45:13Z")

</div>

Yesterday I upgrate my `ghost-cli` to ghost 2.11.0. After upgrating I can’t find public api in `SETTINGS > Labs`.  
For that various things are not working like `{{#get }}...{{/get}}` tag.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/ghost2/original/2X/8/829efdecdbecb43eb16b3f7764d1600980b16c56.png)

---

<div class="post-metadata">

**Author:** ![egg](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/egg/32/1691_2.png) [@egg](https://forum.ghost.org/u/egg)\
**Post date:** [January 17, 2019, 3:57pm UTC](https://forum.ghost.org/t/public-api-gone-in-ghost-version-2-11-0/5114/2 "2019-01-17T15:57:43Z")

</div>

Hey @kingrayhan o/

The 2.11.0 release included a change to remove the Public API from the labs settings, if it had never been on before.

Were you using this previously?

The Public API has been deprecated in favor of our [Content API](https://docs.ghost.org/api/content/).

If you are to update the `package.json` in the theme you’re using, so that your API version is 2 [like here, in Casper](https://github.com/TryGhost/Casper/blob/master/package.json#L6-L9) you should have that functionality back.

I do wonder though, if you were using it before, how/why it has been removed, would you mind providing some more information about how your settings were previously configured?

---

<div class="post-metadata">

**Author:** ![kingrayhan](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/kingrayhan/32/1301_2.png) [@kingrayhan](https://forum.ghost.org/u/kingrayhan)\
**Post date:** [January 17, 2019, 4:25pm UTC](https://forum.ghost.org/t/public-api-gone-in-ghost-version-2-11-0/5114/3 "2019-01-17T16:25:28Z")

</div>

Thanks, @egg, I didn’t know that I can enable ghost-api from `package.json` engines key.  
Now it working fine.

---

<div class="post-metadata">

**Author:** ![luciandavidescu](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/luciandavidescu/32/2270_2.png) [@luciandavidescu](https://forum.ghost.org/u/luciandavidescu)\
**Post date:** [January 20, 2019, 1:44pm UTC](https://forum.ghost.org/t/public-api-gone-in-ghost-version-2-11-0/5114/4 "2019-01-20T13:44:20Z")

</div>

Is package.json the only thing that needs updated after upgrading to 2.11.0 or later? Because I did it and `get` still doesn’t work fully (`filter="page:true"` returns nothing while `include="authors,tags"` only fetches tags’ info, not the authors’). I can still see the Public API option, with a deprecation warning, but I’m not sure if it should be left on or off (it won’t help either way for now).

L.E. Solved both my issues by using the new `{{#get "pages"}}{{# foreach pages}}...` instead of `{{#get "posts" filter="page:true"}}{{# foreach posts}}...` and by changing the author handlebars to more specific ones, such as `{{primary_author.name}}` instead of `{{author}}`.

---

<div class="post-metadata">

**Author:** ![dyzm\_k](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/dyzm_k/32/3525_2.png) [@dyzm\_k](https://forum.ghost.org/u/dyzm_k)\
**Post date:** [May 28, 2019, 1:03pm UTC](https://forum.ghost.org/t/public-api-gone-in-ghost-version-2-11-0/5114/5 "2019-05-28T13:03:55Z")

</div>

This problem also occurred after I deployed with docker（[v2.22.1](https://hub.docker.com/_/ghost?tab=tags)）. I want to use ghostHunter, but I get an error “ **ghost is not defined** ”. I can’t find the relevant configuration in “[Configuration - Adapt your publication to suit your needs](https://docs.ghost.org/concepts/config/#section-running-ghost-with-config-env-variables)”, do you have any idea to solve this problem under docker?

---

<div class="post-metadata">

**Author:** ![afern247](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/afern247/32/10894_2.png) [@afern247](https://forum.ghost.org/u/afern247)\
**Post date:** [April 1, 2020, 8:56pm UTC](https://forum.ghost.org/t/public-api-gone-in-ghost-version-2-11-0/5114/6 "2020-04-01T20:56:55Z")

</div>

@dyzm_k did you ever find the solution? My search is also not working
