Skip to main content
Build a React SPA that fetches content from the Publive CDS API via a backend proxy.
Important: Do not call the Publive API directly from the browser. Use a backend proxy (Express, serverless function, etc.) to keep your credentials secure.

Setup

1. Create a Backend Proxy

Create a simple Express endpoint (or use any server framework):

2. Create a React Hook

3. Use in Components

See the Post Listing and Post Details API references for the full response shape.

Advanced

Filtering by Category

See the Category Listing API.

Building Navigation

See the Navbar API. Add a /navbar route to your Express proxy:
Then fetch it in a hook:
Last modified on July 21, 2026