• Document Up to Date
  • Updated On 4.1.0

Content Retrieval APIs

CrafterCMS requires you use one of the following APIs to gain access to your content:

Project Type

API

Description

Link

Headless

Javascript SDK

The JavaScript SDK allows access to CrafterCMS services from any SPA framework or direct JavaScript. The SDK also enables Experience Builder (In-Content Editing capabilities) for any project, including SPA projects.

JavaScript SDK

GraphQL

The GraphQL API allows content retrieval and control over the shape of the response.

GraphQL

REST API

The REST API allows content retrieval using the default REST API endpoints, and also allows the developer to define custom endpoints with full control over the shape of the response. To create custom endpoints, see the Groovy API indicated below.

REST Content Retrieval APIs

Search

The search API allows full text search, filtering, ranking and boosting across the entire project.

Search

Groovy

The Groovy API allows for writing server-side code that can perform business logic, content operations, and more. This layer also allows the developer to create custom REST endpoints with full control over the shape of the response.

Groovy/Java API

Static Asset Access

The Static Asset Access allows the developer to access static assets (images, videos, etc.) from internally managed or externally managed repositories.

Static Content Access

Templated

FreeMarker

The FreeMarker API allows access to CrafterCMS services from FreeMarker templates for server-side rendered projects.

FreeMarker (Templating) API

Search

The search API allows full text search, filtering, ranking and boosting across the entire project.

Search

Groovy

The Groovy API allows for writing server-side code that can perform business logic, content operations, and more. This layer also allows the developer to create custom REST endpoints with full control over the shape of the response.

Groovy/Java API

Static Asset Access

The Static Asset Access allows the developer to access static assets (images, videos, etc.) from internally managed or externally managed repositories.

Static Content Access

Note

You can use the REST API in Templated projects to perform content operations via JavaScript as needed