SR
Usage

Usage

Learn how to effectively use the Craft Query API


You can fetch elements (such as addresses, assets, entries, and users) using the customQuery endpoint. If you need to retrieve all routes, the allRoutes endpoint is available.

Note

For more details, check out the customQuery and allRoutes documentation.

You can either manually build your URLs or leverage one of the following SDKs for JavaScript frameworks:

  • Vue SDK: A package to use the query builder in Vue.
  • Nuxt SDK: A package to use the query builder in Nuxt.
  • React SDK: A package to use the query builder in React.
  • Next SDK: A package to use the query builder in Next.js.
  • JS SDK: Foundation to build a query builder with your preferred JS framework.

Build Your Own

If your favorite framework isn’t listed here, you can use the JS SDK to create custom queries tailored to your specific needs. Feel free to reach out if you need any help! :)


Copyright © 2026 Samuel Reichör