![]() ![]() Formatsīy default, only html is returned, however each post and page in Ghost has 2 available formats: html and plaintext. Use the Accept-Version header to indicate the minimum version of Ghost’s API to operate with. Obtain the Content API URL and key by creating a new Custom Integration under the Integrations screen in Ghost Admin. Sites in private mode should consider where they share any keys they create. These keys are safe for use in browsers and other insecure environments, as they only ever provide access to public data. ![]() ![]() KeyĬontent API keys are provided via a query parameter in the URL. All Ghost(Pro) blogs have a *.ghost.io domain as their admin domain and require https. Using the correct domain and protocol are critical to getting consistent behaviour, particularly when dealing with CORS in the browser. Your admin domain can be different to your site domain. The client is an advanced wrapper on top of our REST API - everything that can be done with the Content API can be done using the client, with no need to deal with the details of authentication or the request & response format. We’ve developed an API client for JavaScript that will allow you to quickly and easily interact with the Content API. The Content API is designed to be fully cachable, meaning you can fetch data as often as you like without limitation. Ghost’s RESTful Content API delivers published content to the world and can be accessed in a read-only manner by any client to render in a website, app, or other embedded media.Īccess control is managed via an API key, and even the most complex filters are made simple with our SDK. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |