List published posts
const url = 'https://example.com/api/v1/content/posts?locale=th&limit=20';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/v1/content/posts?locale=th&limit=20'Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Content locale.
Maximum items returned.
Opaque cursor returned in the previous response.
Filter posts by category name.
Find the posts that contain every word, in the title, the excerpt or the text, ignoring case. Only the first five words count.
Responses
Section titled “ Responses ”A cursor-paginated page of published posts.
object
object
Native Tiptap document retained for re-editing.
object
A Tiptap node. Runtime input is limited to 100 nested levels.
object
object
A Tiptap text mark.
object
object
object
object
object
Example
{ "data": [ { "contentJson": { "type": "doc" }, "locale": "th", "media": [ { "mimeType": "image/avif" } ], "status": "draft", "translations": [ { "locale": "th" } ], "coverImage": { "mimeType": "image/avif" } } ], "meta": { "locale": "th" }}The cached representation is still current.
The request parameters are invalid.
object
Example
{ "maintenance": { "locale": "th" }}A search was asked for too often, or the server is busy with other searches. Ask again after Retry-After seconds.
object
Example
{ "maintenance": { "locale": "th" }}Headers
Section titled “Headers”Seconds to wait.
The request could not be completed.
object
Example
{ "maintenance": { "locale": "th" }}The content service is not ready, or the site is closed for maintenance; then maintenance carries what the owner wrote for visitors.
object
Example
{ "maintenance": { "locale": "th" }}
