Get Started
Introduction
Learn how to use the @query-api/next library in Next.js.
The @query-api/next
introduces a powerful query builder to your Next.js app, allowing you to easily fetch data from Craft CMS,
similar to how you would in Twig.
It allows you to connect your Craft CMS sections and entry types to React components, making it easy to render dynamic content in your Next.js applications.
Requirements
- The Craft Query API plugin must be installed and properly configured in Craft CMS.
- Node.js - 20.x or newer (but I recommend the active LTS release)
Supported Element Types
The library supports querying for the following Craft CMS element types:
- Addresses
- Assets
- Entries
- Users
Need Help?
If you encounter bugs or have feature requests, please submit an issue. Your feedback helps improve the library!