Prismic API Explorer
Product · Developer tool by Prismic
Explore your Prismic content, run queries in real-time, and generate code snippets.
Prismic API Explorer is a visual developer tool for querying and exploring Prismic content in real-time. It allows developers to build complex requests, visualize JSON data, and generate ready-to-use code snippets for the @prismicio/client SDK.
- Launched
- 2025-06-06
Category: Developer Tools
- Integrations
- @prismicio/client SDK
- Deployment
- Cloud (Private repository or Public web version)
- Query Methods Supported
- 19 methods
- Output Format
- JSON
- SDK Integration
- @prismicio/client
- Access Modes
- Private Repository and Public Web
- Supports all 19 @prismicio/client query methods
- Generates ready-to-use code snippets for projects
- Visual editor for building complex API queries
- Real-time JSON data visualization in the browser
- Supports advanced orderings and fulltext filters
Overview
Prismic API Explorer is a developer tool designed to help users explore, query, and visualize Prismic content in real-time. It serves as a modern replacement for the legacy API Browser, built specifically for the Prismic Document API and the @prismicio/client SDK. Developers can build complex queries using a visual editor, test filters, and apply advanced orderings to sort results by publication date or custom fields. The tool automatically generates ready-to-use code snippets that can be copied directly into a project's codebase. It is available as a private tool within Prismic repositories and as a public version for general testing.
Querying and Exploration
- Visual Query Builder: The visual editor allows developers to explore API content directly in the browser and build complex queries.
- Full Query Support: The tool supports all 19 @prismicio/client query methods, including fetching by document IDs, UIDs, and tags.
- Advanced Orderings: Developers can sort query results by publication date, alphabetical title, or custom fields like priority or release date.
- Fulltext Filtering: The explorer provides a fulltext filter to fetch specific pages or content based on text matches.
Developer Workflow
- Code Snippet Generation: The tool automatically generates ready-to-use @prismicio/client code snippets as the user builds their request.
- Shareable Requests icon: Users can share specific API requests with coworkers or support teams using shareable links.
- Real-time Data Visualization: The explorer provides real-time visualization of JSON data resulting from the queries.
Access and Deployment
- Private Repository Access: Developers can visit /builder/explorer in any Prismic repository to explore their content privately.
- Public Explorer Version: A public version is available at prismic.io/explorer for testing and public content exploration.
Use cases
- Developers build and test complex content queries visually before implementing them in their application code.
- Technical teams share specific API requests with coworkers or support using shareable links for troubleshooting.
- New users learn the Prismic API by exploring content and seeing the corresponding code snippets generated automatically.
- Content developers sort and filter document results by custom fields to verify data structures in real-time.
Specifications
- Integrations
- @prismicio/client SDK
- Deployment
- Cloud (Private repository or Public web version)
- Query Methods Supported
- 19 methods
- Output Format
- JSON
- SDK Integration
- @prismicio/client
- Access Modes
- Private Repository and Public Web
- Sorting Options
- Publication date, Title, Custom fields
How it works
- Access the Explorer: Developers access the tool either through their private Prismic repository at /builder/explorer or via the public explorer URL.
- Build a Query: Users use the visual editor to select query methods, filters, and orderings to find specific content.
- Review and Copy Code: The tool displays the resulting JSON data in real-time and generates a corresponding @prismicio/client code snippet.
- Implement in Project: The generated code can be pasted directly into the project's codebase to fetch the desired content.
FAQ
Which query methods does the API Explorer support?
The tool supports all 19 @prismicio/client query methods, allowing you to fetch documents by IDs, UIDs, tags, and more.
Can I sort my query results in the API Explorer?
Yes, you can sort results by publication date, title, or custom fields like priority or release date using the 'Advanced' toggle.
How does the tool help with coding?
The API Explorer automatically generates ready-to-use @prismicio/client code snippets as you build your request in the visual editor.
Where can I access the Prismic API Explorer?
You can access it privately by visiting /builder/explorer within your Prismic repository or use the public version at prismic.io/explorer.
Added by AntSpace from public sources (prismic.io).