microCMS
Documentation
  • Pricing
  • Blog
  • FAQ
  • Contact
  • Sign In
  • Get started for free
Navigation
Tutorial
Next.js
  • Integration with Next.js
  • Getting Started with App Router
  • Tutorial (App Router)
  • Getting Started with Pages Router
  • Tutorial (Pages Router)
Astro
  • Getting Started
  • Integration with Astro
  • Tutorial
Nuxt
  • Integration with Nuxt
  • Getting Started
  • Tutorial
Gatsby
  • Integration with Gatsby
  • Getting Started
  • Tutorial
JavaScript
  • Integration with JavaScript
  • Getting Started (Browser)
  • Getting Started (Server)
PHP
  • Integration with PHP
  • Getting Started
Ruby
  • Integration with Ruby
  • Getting Started
Go
  • Integration with Go
  • Getting Started with microCMS
Manual
  • Introduction
Account & Login
  • Account Registration
  • Login
  • Email Address Authentication
Services
  • Creating a Service
  • Service Configuration
  • Template
  • Service Deletion
Payment
  • Change of Pricing Plan
  • Registering and Changing Payment Methods
API
  • Creating and Managing APIs
  • API Settings
  • Export/Import of API Schema
Fields
  • Text Field
  • Text Area
  • Image
  • Multiple Images
  • Date
  • Boolean
  • Selectable Field
  • Content Reference
  • Multiple Content References
  • Number
  • File
  • Extended Field
  • Repetition
  • Custom
Contents
  • CSV Export of Content
  • Content Creation
  • Content Editing
  • Content Management
  • View
  • Content Status
  • Custom Status
  • Setting the Content ID
  • Automatically Assigned Values for Content
  • CSV Import of Content
  • API Preview
  • Examples of Using Query Parameters with API Preview
  • Integration Methods by Rendering Type
  • Screen Preview
  • Setting Up Webhooks for Content
Rich Editor
  • How to Use the Rich Editor
  • Rich Editor WRITE API
  • How to Use the Old Rich Editor
Reviews
  • Review
  • AI Review
Media
  • Media Management
  • Changing Media Filters and Display Order
  • Media Tag Configuration
  • Setting Up Media Webhooks
  • Custom Domain Settings for Media
Permission Management
  • Member Management
  • Roles (Permission Management in the Admin Panel)
Environments
  • Multiple Environments (Development Environment)
  • Merging API Settings Between Environments
Connection
  • Amazon S3 Integration
Logs
  • Audit Log
  • Data Transfer Volume
Security
  • Content Update History
  • IP Restrictions for Management Dashboard
  • IP Restrictions for APIs
Authentication
  • Setting Up Two-Factor Authentication
  • Mandatory Two-Factor Authentication
  • Single Sign-On
Specifications & Limitations
  • Recommended Environment
  • Limitations / Precautions
Content API
  • What is the Content API?
Basic Operations
  • GET /api/v1/{endpoint}
  • GET /api/v1/{endpoint}/{content_id}
  • POST /api/v1/{endpoint}
  • PUT /api/v1/{endpoint}/{content_id}
  • PATCH /api/v1/{endpoint}/{content_id}
  • DELETE /api/v1/{endpoint}/{content_id}
API Keys
  • API Key (API Authentication and Authorization Management)
  • Migration from the Old API (X-API-KEY, etc.)
Responses & Error Handling
  • Response format for each field in the GET API
  • Specifying Query Parameters in the GET API
  • Error Responses of the Content API
Management API (Beta)
  • What is the Management API?
Content Operations
  • PUT /api/v1/contents/{endpoint}/{content_id}/reservation
  • GET /api/v1/contents/{endpoint}
  • GET /api/v1/contents/{endpoint}/{content_id}
  • PATCH /api/v1/contents/{endpoint}/{content_id}/status
  • PATCH /api/v1/contents/{endpoint}/{content_id}/createdBy
Media Operations
  • GET /api/v2/media
  • GET /api/v1/media
  • POST /api/v1/media
  • DELETE /api/v2/media
Member Operations
  • GET /api/v1/members
  • GET /api/v1/members/{member_id}
API Operations
  • POST /api/v1/apis
  • GET /api/v1/apis
  • GET /api/v1/apis/{endpoint}
Service Operations
  • GET /api/v1/service
Responses & Error Handling
  • Management API Error Responses
Image API
  • What is the Image API?
Parameters
  • Image Size
  • Quality
  • Resolution and Screen Size
  • Format
  • Text
  • Border
  • Padding
  • Shape
  • Download
  • Watermark
MCP Server
  • microCMS MCP
  • microCMS Document MCP Server
  • Top
  • Manual

Examples of Using Query Parameters with API Preview

Last updated: 2026/06/19

This page utilizes the API preview feature for content (mainly in list format) to showcase examples of how to use various query parameters in different scenarios.

Information

For detailed usage of each query parameter, please refer to the page for GET /api/v1/{endpoint}.

Prerequisites

As a prerequisite, we assume that the API and each content exist as follows.

  • Blog
  • Category (linked to the blog via "Content Reference")
  • Tag (linked to the blog via "Multiple Content Reference")


▼ Blog API Schema



▼ List of Blog Contents



▼ List of Category Contents



▼ List of Tag Contents

Usage Examples

[Example 1] Retrieve a Specified Number of Contents

To retrieve a specified number of contents, use the limit parameter.
Reference: GET /api/v1/{endpoint} - limit

Below is the specification for retrieving one content item in a blog list.


Information

The default value of the limit parameter is 10 items.

Example 2: Fetching with an Offset

To adjust the starting position for fetching, such as for implementing pagination, use the offset parameter.
Reference: GET /api/v1/{endpoint} - offset

Below is the specification for fetching starting from the second content in a blog list.


Example 3: Retrieve in Order of Newest Publication Date

When specifying the order of content retrieval, use the orders parameter for sorting.
Reference: GET /api/v1/{endpoint} - orders

Below is the specification for retrieving a list of blogs in order of publication date (publishedAt) from newest to oldest (descending order).

[Example 4] Full-text search for "Title" and "Content" in a blog

If you want to perform a full-text search across text fields, text areas, and rich editors, use the q parameter.
Reference: GET /api/v1/{endpoint} - q

Below is the specification for performing a cross-sectional full-text search for the string "framework" in the "Title (text field)" and "Content (rich editor)" fields in the blog list.

Information

The search using the q parameter is performed on the full-text search data created based on the content. Due to the specifications of full-text search, the search results may vary based on uppercase and lowercase letters, symbols, spaces, and how strings are separated. If you need an exact partial match search for a specific field, please consider using the filters parameter with contains.

Example 5: Filtering to Retrieve Content with a Specific Category (Content Reference)

When using a content reference field, if you want to filter and retrieve content that only has a specific referenced content, you can use the filters parameter.
Reference: GET /api/v1/{endpoint} - filters

Below is the specification for retrieving only the content that has "Update Information (Content ID: pk_fl45f4f)" in the blog list.

[Example 6] Filtering to Retrieve Only Content with Specific Tags (Multiple Content References)

When using a multiple content reference field, if you want to filter and retrieve only specific content from the references, you can use the filters parameter.
Reference: GET /api/v1/{endpoint} - filters

Below is the specification for retrieving only the content that has "Tag A (Content ID: zulopdaa50d)" in the blog list.

[Example 7] Retrieve Only Necessary Fields (id, title, etc.)

If you want to retrieve only the necessary fields such as id and title, you can use the fields parameter.
Reference: GET /api/v1/{endpoint} - fields

Below is the specification for retrieving only id and title in a blog list.

Information

The fields parameter helps reduce data transfer by narrowing down the amount of data retrieved.

[Example 8] Retrieve Multiple Contents with Specified Content IDs at Once

If you want to retrieve multiple contents with specified content IDs, use the ids parameter.
Reference: GET /api/v1/{endpoint} - ids

Below is the specification for retrieving contents with the following content IDs (nvlzo5qffq and 8of0r4h9ppc) in a blog list.

Advanced Use Cases

We will introduce advanced use cases, such as cases that combine multiple parameters.

[Example 1] Filter content with a specific category (content reference) and retrieve it sorted by date

If you want to filter only specific content linked by the content reference field and retrieve it sorted by date, you can use the filters parameter and the orders parameter.

The following specifies how to retrieve only the content that has "Update Information (Content ID: pk_fl45f4f)" in the blog list, sorted by the publication date (publishedAt) in descending order.

[Example 2] Perform a full-text search on the "Title" and "Content" of the blog, and retrieve only the necessary fields (id, title)

To perform a full-text search across text fields, text areas, and rich editors, and to narrow down the results to only the necessary fields, you can use the q parameter and the fields parameter.

The following specifies how to conduct a cross-sectional full-text search for the string "framework" in the "Title" and "Content" fields of the blog list, and retrieve only the id and title of those contents.

Contents

  • Prerequisites
  • Usage Examples
  • [Example 1] Retrieve a Specified Number of Contents
  • Example 2: Fetching with an Offset
  • Example 3: Retrieve in Order of Newest Publication Date
  • [Example 4] Full-text search for "Title" and "Content" in a blog
  • Example 5: Filtering to Retrieve Content with a Specific Category (Content Reference)
  • [Example 6] Filtering to Retrieve Only Content with Specific Tags (Multiple Content References)
  • [Example 7] Retrieve Only Necessary Fields (id, title, etc.)
  • [Example 8] Retrieve Multiple Contents with Specified Content IDs at Once
  • Advanced Use Cases
  • [Example 1] Filter content with a specific category (content reference) and retrieve it sorted by date
  • [Example 2] Perform a full-text search on the "Title" and "Content" of the blog, and retrieve only the necessary fields (id, title)
  • Company
  • Legal Notice
  • Terms of Service
  • Privacy Policy

Copyright © microcms.io All rights reserved.