Agility CMS Sneak Peek: Content SDKs and APIs
All about programmatically accessing content from Agility CMS
Agility CMS provides a comprehensive set of methods for accessing the data in your Instance.
What is API?
API is an abbreviation for an Application Programming Interface. As the name suggests, it is a request-based, programmable interface that relays data between the server and the client based on calls/requests. In the context of a Headless CMS, over the years, developers have envisioned novel ways to use custom APIs to extend the features and functions of Headless CMSs. But, the primary task of an API in all essentiality is to deliver content from your CMS service/platform (server) responsively to 3rd party applications and device platforms (client).
What is an SDK?
An SDK or a Software Development Kit is a veritable tool chest for developers that provides them every ingredient necessary for platform-specific programming. SDKs provide developers with an Integrated Development Environment that helps configure the Headless CMS as per bespoke requirements.
One of the main benefits of the Agility CMS Content API and the accompanying SDKs is Page Management. This doesn't refer to HTML pages on a website, but rather the JSON objects that represent all of the information on a page. Agility CMS allows your content editors to assemble the page object based on a template and set of modules, and then you can render that content using components in code. These components are reusable, allowing your developers to spend more time coding new functionality instead of re-creating existing features in new pages.
Another benefit is the way content relationships are handled in the API. We call this content architecture, and the way that it's represented in the JSON output makes things a lot easier.
For example, if you request a content list of articles, and the articles on that list are linked to an authors list, you can specify a "depth" parameter to pull the author information as well.
Each method call requires you to provide a GUID and API Key as authentications. You can also specify which language code you need content in, making multi-lingual sites easy to build.
Ready to try? Try our Gatsby and Next.js blog starters here.
If you want to learn more about Headless CMS, make sure you read these articles: