Contentstack is an API-first headless CMS platform; it provides the content backend (content repository and management), which is separate from the front-end (presentation).
You can fetch content from our repository using some powerful tools and resources. Let’s look at these resources in detail.
Fetch Content Using RESTful APIs
- Content Delivery APIs: This read-only set of APIs helps you fetch content from Contentstack, and deliver it to any external channel: websites, mobile devices, wearable devices, store displays, or any other media.
- GraphQL Content Delivery APIs: This read-only set of APIs lets you fetch a customized response or retrieve data of nested or multiple resources via a single API request. Using a single endpoint, you can fetch both entries and assets across multiple content types.
- Synchronization APIs: This read-only set of APIs makes use of Sync APIs to sync content between Contentstack server and your local server, database, or device, and perform subsequent delta updates to fetch incremental updates.
- Image Delivery APIs: These read-only APIs enable you to retrieve images from your stack and manipulate them to deliver modified images to your digital property. You can perform basic operations such as setting height/width, crop, trim, modify device pixel ratio, change quality, etc. of images using these APIs.
- Content Management APIs: A set of read-write APIs that is primarily used to manage content i.e., create/edit/delete entries and assets, manage content types, invite users, and do a lot more. You can also use it to fetch published as well as draft content.
Fetch Content Using Content Delivery SDKs
Here’s the list of SDKs that Contentstack provides:
Fetch Content Using Other Resources
- Webhooks: You can set up webhooks where a server-side application can notify a client-side application (or any third-party app) whenever the specified event (for e.g., publish entry, delete asset) occurs on the server. You can send the payload carried by the webhook to any destination (URL).
- Data Sync: You can use Contentstack DataSync that lets you sync the published data of your site with your local database. You can serve content from your local database (e.g., MongoDB, Filesystem) to any device.