// Contentful Integration

AI ready structured data for
Contentful.

Contentful is a headless content management system with an API-first architecture. It operates as a cloud-based SaaS platform that separates content management from content presentation entirely. Content is managed in one place and pulled into each channel through API calls — whether websites, mobile apps, IoT devices, or digital signage.

enhancely adds page-specific JSON-LD to Contentful-driven sites so search engines see clean, consistent schema without manual markup. This makes perfect sense — learn more about the schema service in a composable architecture.

graph LR
  A["Browser"] --> B["Next.js / Nuxt App"]
  B --> C["enhancely Plugin"]
  C --> D["enhancely API"]
  D --> E["JSON-LD"]
  E --> C
  C --> F["Cache"]
  B --> G["HTML + JSON-LD"]
  H["Contentful Webhook"] -.-> I["Cache Invalidation"]
  I -.-> F
Fig. 1 — Contentful integration with webhook-based cache invalidation
// How it works

Fetch. Inject. Cache.

The integration is delivered as an npm package and works with any Node.js frontend.
01

Send URL

Your app sends the current page URL to enhancely.
02

Receive JSON-LD

enhancely returns ready-made JSON-LD for that URL.
03

SSR Injection

The plugin injects it during SSR and caches results.
04

Webhook Refresh

Contentful webhooks refresh schema after publish.
// Features

What you get.

SSR
Server-Side Rendering
JSON-LD injected per page, automatically. Consistent schema across Contentful content types.
API
Cache-Aware
ETag-aware caching with Memory, File, or Redis backends for production traffic.
WH
Webhook Ready
Contentful webhooks refresh schema automatically after content publish.
// Getting started

Quick setup.

01
Install package
npm install from GitHub release tarball
02
Copy recipe bundle
Copy from recipes/contentful/next-app-router/template/
03
Set environment variables
Set required env vars for your app
04
Follow guide
Step-by-step guide in recipes/contentful/README.md

Installation

npm install https://github.com/enhancely/headless-cms-plugin/releases/download/v1.0.6/enhancely-headless-cms-plugin-1.0.6.tgz

Caching included

  • ETag-aware caching to reduce API calls
  • Cache backends: Memory, File, or Redis
  • Redis recommended for multi-instance or serverless deployments

API Response Codes

200: JSON-LD ready

201: URL queued for processing

202: Processing

304: Not modified (ETag match)

429: Rate limited

Compatibility & Requirements

Node.js: >= 18

Next.js: >= 13 (App Router recommended)

Nuxt: >= 3

CMS: Contentful (webhook supported)

// FAQ

Contentful & enhancely
FAQ.

Contentful is a cloud-based headless CMS that separates content management from presentation entirely. Content is managed in a central hub with a fully customizable content model and delivered to any frontend — websites, mobile apps, digital signage, IoT — via REST and GraphQL APIs. Contentful's CDN ensures global delivery performance. It's widely used by enterprises managing multi-channel digital experiences where content needs to be authored once and published across multiple platforms.
No. Contentful delivers content as structured JSON via APIs, but does not generate Schema.org markup for the rendered frontend. The consuming application (your Next.js, Nuxt, or custom frontend) must handle structured data generation — which means development effort, ongoing maintenance, and the risk of schema drift when content models change. enhancely removes this burden by connecting via webhooks and automatically generating validated JSON-LD for every page.
Add the enhancely snippet to your frontend application. Configure a Contentful webhook to notify enhancely when content is published or updated. ETag-aware caching minimizes API calls — the system only regenerates schema when content has actually changed. Compatible with Next.js 13+ (App Router) and Nuxt 3+. Redis caching is recommended for multi-instance production deployments to ensure consistent schema delivery across all server instances.
No. enhancely runs entirely in the background. You continue using Contentful's editor as usual — write content, manage assets, hit publish. enhancely automatically detects what type of content you published (article, product, FAQ, event, service) and generates the right Schema.org types with the correct properties. The enhancely dashboard gives you full visibility into schema coverage and Rich Result eligibility without requiring any structured data knowledge.
Every piece of markup passes through a 3-layer curation pipeline before deployment. Layer 1 (Validity) checks against the full Schema.org specification — all 806 types, every property, every value range. Layer 2 (Factuality) cross-references structured data against your actual page content — no hallucinated data, no invented prices, no phantom opening hours. Layer 3 (Compliance) verifies Rich Result eligibility against Google, Bing, and AI search engine guidelines. Peer-reviewed research (Dang et al., Semantic Web Journal, IOS Press, 2025) showed that without such a pipeline, 40–50% of AI-generated markup is invalid or non-compliant.
Yes. Multiple JSON-LD blocks on a single page are valid and supported by all major search engines — Google, Bing, and others evaluate and merge all structured data blocks they find. enhancely adds additional, validated markup without conflicting with or overwriting your existing schema. If enhancely detects invalid or outdated markup from other sources, Schema Healing can automatically identify and repair it — so legacy schema from previous tools or manual implementations gets fixed and kept current.

Stop leaving
bots hungry.

Your content is already great for humans. Let us make it perfect for bots.